Disks mounting etc

I was wondering about my partitions that I set up during my new install on my new computer. First, everything seems to be working. I am curious about the mounts. My / is on sda5 home on sdb1. My question is why are these not in order and in comparable filesystems? Seems all over the place. Is there any problem with the way they are configured?

[email protected]:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           1.6G  2.1M  1.6G   1% /run
/dev/sda5       110G   20G   85G  19% /
tmpfs           7.8G  5.2M  7.8G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
/dev/sda1       140M  5.3M  135M   4% /boot/efi
/dev/sdb1       916G  174G  696G  21% /home
tmpfs           1.6G  248K  1.6G   1% /run/user/1000
/dev/sdf1       1.8T  1.6T  180G  90% /media/mickee/Masonic
/dev/sdd1       932G  393G  539G  43% /media/mickee/Cinosam
/dev/sdg1       3.7T  349G  3.3T  10% /media/mickee/new
/dev/sdc2       1.8T  1.4T  339G  81% /media/mickee/GAOTU

df -h | sort will sort on the first column so sda1, sda2, sda5, sdb1, etc.

tail +2 will chop the first line (headers). All together, df | tail +2 | sort

you can make your own alias ... alias mydf='df | tail +2 | sort'

mydf produces the desired output.

EDIT:
if you really want the headers, df | head -1 will output the headers only.

alias mydf='df | head -1; df | tail +2 | sort'

1 Like

so / on sd5 is not a problem? Like why not on sd0 or sd1?

sda is your first disk (about 120GB),
-- sda1 is /boot/efi,
-- sda2 is probably a logical partition and inside that,
---- sda5 which is / ... all is well.
You can use sudo parted -l /dev/sda and post the output.

sdb is a second disk (about 1TB) and
-- sdb1 is /home ... fine.

you have other disks ... sdc, sdd, sdf, sdg -- each have one partition indicated with 1 with the exception of sdc that has sdc2 (what happened to sdc1 ?)

2 Likes

Thanks @pavlos_kairis !