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

Ron Kelley rkelleyrtp at gmail.com
Tue Jun 12 16:28:52 EDT 2012


Could that be the "label" of the drive?  As in "e2label /dev/sda3 /dev/root"

Thanks,

-----------------------------
Ron Kelley
rkelleyrtp at gmail.com



On Jun 12, 2012, at 4:27 PM, Joseph Mack NA3T wrote:

> 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!
> -- 
> This message was sent to: Ron Kelley <rkelleyrtp at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web	: http://www.trilug.org/mailman/options/trilug/rkelleyrtp%40gmail.com
> TriLUG FAQ          : http://www.trilug.org/wiki/Frequently_Asked_Questions




More information about the TriLUG mailing list