# Device content listing for size

**URL:** https://dietpi.com/forum/t/device-content-listing-for-size/14711
**Category:** General Discussion
**Created:** [23 October 2022 21:50 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711 "2022-10-23T21:50:36Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![eglider86](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@eglider86](https://dietpi.com/forum/u/eglider86)
#### Post date: [23 October 2022 21:50 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/1 "2022-10-23T21:50:36Z")

</div>

Hi, i am running dietpi on RB3. There is an external HDD mounted and two USB device also mounted in a raid1 configuration. LSBLK gives me the list of the devices sda,sdb,sdc.  
I would like to see the contents of each device separetly. How do i do it? Using ls -l for the mount point does not give me the information in which device files are located. SDB device mounted in /mnt/raid1 SDC device mounted /mnt/raid1/SMB. I guess it is not the wisest solution…  
thanks

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [23 October 2022 22:17 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/2 "2022-10-23T22:17:05Z")

</div>

You need to mount the raid drive and not the individual raid members.

And why not mounting the separate individual disk to an own mount point?

Can you share following

```auto
lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid

```

---

<div class="post-metadata">

### Author: ![eglider86](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@eglider86](https://dietpi.com/forum/u/eglider86)
#### Post date: [24 October 2022 06:54 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/3 "2022-10-24T06:54:37Z")

</div>

```auto
NAME FSTYPE LABEL SIZE RO TYPE MOUNTPOINT PARTUUID UUID
sda 57.3G 0 disk
└─sda1
     linux_ DietPi:0
                   57.3G 0 part 7e0debd7-3acf-e0dd-f5ca-3dcb7c4912df
sdb 57.3G 0 disk
└─sdb1
     linux_ DietPi:0
                   57.3G 0 part 7e0debd7-3acf-e0dd-f5ca-3dcb7c4912df
  └─md0
     ext4 57.3G 0 raid1 /mnt/raid1 85620b2c-7041-40d9-b866-82dc9557c89a
sdc 298.1G 0 disk
└─sdc1
     ntfs Transcend
                  298.1G 0 part /mnt/raid1 eab207c0-01 3464FF2D64FEF08A
mmcblk0
│ 14.8G 0 disk
├─mmcblk0p1
│ vfat 128M 0 part /boot 0e2887fb-01 6725-6501
└─mmcblk0p2
     ext4 14.7G 0 part / 0e2887fb-02 98fa3b6b-e750-4e39-8191-3b4eae912463

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 October 2022 07:11 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/4 "2022-10-24T07:11:48Z")

</div>

> [@eglider86](#):
>
> `57.3G 0 raid1 /mnt/raid1`

> [@eglider86](#):
>
> `298.1G 0 part /mnt/raid1`

You are mounting the external Transcend device to the very same location as your raid is mounted on. Still I would recommend to mount SBC to an own mount point.

---

<div class="post-metadata">

### Author: ![eglider86](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@eglider86](https://dietpi.com/forum/u/eglider86)
#### Post date: [24 October 2022 12:05 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/5 "2022-10-24T12:05:24Z")

</div>

Yes that is what i thought too. However i still would like to see what is on raid volume sdb1. It is 60GB the nextclud\_data occupies only 18GB according to du -sh. How can i monitor the sole content of that device md0?

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [24 October 2022 12:32 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/6 "2022-10-24T12:32:19Z")

</div>

I think you can do this with [mdadm](https://linux.die.net/man/8/mdadm)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 October 2022 14:02 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/7 "2022-10-24T14:02:17Z")

</div>

> [@eglider86](#):
>
> However i still would like to see what is on raid volume sdb1

you can’t mount individual raid member. It always needs to be the whole raid `md0`.

To check 20 biggest files on our raid, ensure to `umount` the flash drive first or mount it somewhere else. Once done, you can do following

```auto
du -a /mnt/raid1 | sort -n -r | head -n 20

```

---

<div class="post-metadata">

### Author: ![eglider86](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@eglider86](https://dietpi.com/forum/u/eglider86)
#### Post date: [24 October 2022 20:47 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/8 "2022-10-24T20:47:25Z")

</div>

So i have to unmount both flash drives first?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 October 2022 21:19 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/9 "2022-10-24T21:19:07Z")

</div>

> [@eglider86](#):
>
> └─sdc1  
> ntfs Transcend

`umount` the Transcend device `sdc`

`sda` and `sdb` needs to be connected as they are member of raid group `md0`

---

<div class="post-metadata">

### Author: ![eglider86](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@eglider86](https://dietpi.com/forum/u/eglider86)
#### Post date: [26 October 2022 04:23 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/10 "2022-10-26T04:23:43Z")

</div>

Thank you so much. All my questions have been answered. It works perfectly.  
Thank you

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [27 October 2022 20:10 UTC](https://dietpi.com/forum/t/device-content-listing-for-size/14711/11 "2022-10-27T20:10:14Z")

</div>

A post was merged into an existing topic: [Install/move DietPi on RAID](https://dietpi.com/t/install-move-dietpi-on-raid/14735/19)
