[TriLUG] / is /dev/root and not /dev/sda?

Joseph Mack NA3T jmack at wm7d.net
Tue Jun 12 16:27:10 EDT 2012


I'm used to doing stats on my disks by looking at the output 
of df and mount. Heres my / from /etc/fstab showing that the 
root fs is on /dev/sda3

/dev/sda3 /  ext3 defaults 1   1

however df (and mount) says

/dev/root        9851340  461472   8889444   5% /

I'd like to programmatically know which disk my / is on 
(hda, sda, sd?). How did sda3 become "root"? (I tell grub to 
boot off /dev/sda3). Is there anyway to tell what disk / is 
on?

Thanks Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!



More information about the TriLUG mailing list