Diff between df and mount for root

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Diff between df and mount for root

Postby jca001 » Sun Feb 19, 2012 7:12 pm

Why is there a difference in what df shows and mount shows for the root file system?
Why do both show /dev/root when there is no such device?
Why don't they both show the true device name /dev/sda2 in my case?
Why is there 2 entries for root for df -h?

Disk layout is:
sda1 boot ext2
sda2 root ext3
sda3 swap

mount shows:
    dev/root on / type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=writeback)
    devtmpfs on /dev type devtmpfs (rw,relatime,size=126652k,nr_inodes=31663,mode=755)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    /sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    /run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
    shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
    /dev/sda1 on /boot type ext2 (rw,relatime,errors=continue,user_xattr)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)

df -h shows:
    Filesystem Size Used Avail Use% Mounted on
    rootfs 5.0G 604M 4.1G 13% /
    /dev/root 5.0G 604M 4.1G 13% /

    devtmpfs 124M 0 124M 0% /dev
    /run 124M 144K 124M 1% /run
    shm 124M 0 124M 0% /dev/shm
    /dev/sda1 1008M 6.8M 950M 1% /boot
    tmpfs 124M 0 124M 0% /tmp
-----
Thanks: Jack Allen
jca001
 
Posts: 12
Joined: Sun Jan 29, 2012 4:14 pm

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 8 guests