Friday, November 25

Where has root gone?

You may of noticed you can no longer check which physical drive root is mounted on via "mount"

tim.bowers@localhost ~ $ mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,noatime,errors=continue,barrier=0,data=writeback)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
Herpa derpa!

So.... how do we now check where / is mounted? We could check fstab....

cat /etc/fstab
 ...some stuff...

/dev/sda3        /        ext3        noatime        0 1
But I'm not sure /etc/fstab is always readable.... another way is :

tim.bowers@localhost ~ $  ls -ilah /dev/root
1744 lrwxrwxrwx 1 root root 4 Oct 21 08:50 /dev/root -> sda3

Enjoy!
Post a Comment

Search This Blog