You are not logged in.

#1 2010-09-02 12:32:11

marfig
Member
From: Portugal
Registered: 2010-07-30
Posts: 189
Website

[SOLVED] root partition displays UUID on df

Hello everyone,

I have a small pet peeve. My fstab mounts the system partitions on UUID as you can see below. When using tools like df, all partitions except for '/' map to their labels in sdx format. Root shows the UUID, instead. This usually affects the friendly display layout of any tool that displays these partitions labels (also below). Is this by design, or can I somehow have root display as the other system partitions?

Here's my fstab:

UUID=724b22d8-0347-45a0-a0ba-ba4caf084eed   swap         swap       defaults                0 0
UUID=838472a1-506b-47b0-8195-86947c1288e3   /            ext4       defaults,noatime        0 1
UUID=d95489f5-0e1c-40c3-81c5-57a3ed63c719   /home        ext4       defaults,noatime        0 1
UUID=e327e889-a85b-49be-91c9-6a27df9bcfd0   /boot        ext2       defaults,noatime        0 1  

Here's output from df:

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
udev                   10M  160K  9.9M   2% /dev
/dev/disk/by-uuid/838472a1-506b-47b0-8195-86947c1288e3
                      8.1G  2.3G  5.5G  29% /
shm                   503M  380K  502M   1% /dev/shm
/dev/sda4             1.5G  222M  1.2G  16% /home
/dev/sda1              99M   15M   80M  16% /boot
.host:/                74G   65G  9.0G  88% /mnt/hgfs

And here's from cdf:

$ cdf
Filesystem      Type    Free    Used   Total Mnt pnt   Capacity
udev         devtmpfs       9       1      10 /dev      [>         ] (10%)
/dev/disk/by-uuid/838472a1-506b-47b0-8195-86947c1288e3    ext4    5988    2265    8253 /         [>>>       ] (27%)
shm            tmpfs     501       1     502 /dev/shm  [          ] (0%)
/dev/sda4       ext4    1245     221    1466 /home     [>>        ] (15%)
/dev/sda1       ext2      84      14      98 /boot     [>         ] (14%)
.host:/       vmhgfs    9122   65900   75022 /mnt/hgfs [>>>>>>>>> ] (88%)
none         vmblock       0       0       0 /proc/fs/vmblock/mountPoint [>>>>>>>>>>] (100%)

Last edited by marfig (2010-09-02 12:54:44)


I probably made this post longer than it should only because I lack the time to make it shorter.
- Paraphrased from Blaise Pascal

Offline

#2 2010-09-02 12:33:29

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] root partition displays UUID on df

Please, use the search function. This has been discussed several times.

Offline

#3 2010-09-02 12:39:06

marfig
Member
From: Portugal
Registered: 2010-07-30
Posts: 189
Website

Re: [SOLVED] root partition displays UUID on df

Maybe my search skills have failed me, but I did try before posting.

search terms were: "partition root label uuid"

What am I looking for?


I probably made this post longer than it should only because I lack the time to make it shorter.
- Paraphrased from Blaise Pascal

Offline

#4 2010-09-02 12:46:26

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] root partition displays UUID on df

This is the thread I was referring to:

https://bbs.archlinux.org/viewtopic.php?id=99417

Offline

#5 2010-09-02 12:54:21

marfig
Member
From: Portugal
Registered: 2010-07-30
Posts: 189
Website

Re: [SOLVED] root partition displays UUID on df

Thank you. That clears it out.

But "df shows root twice" is not the title I would click. Please next time, ask if we used the search function.


I probably made this post longer than it should only because I lack the time to make it shorter.
- Paraphrased from Blaise Pascal

Offline

#6 2010-09-02 13:03:37

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] root partition displays UUID on df

Ok, my bad, maybe the thread wasn't so easy to find as I thought it was. I apologize smile

Offline

#7 2010-09-02 13:49:16

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] root partition displays UUID on df

Offline

Board footer

Powered by FluxBB