View previous topic :: View next topic |
Author |
Message |
nomadicME n00b
Joined: 24 Mar 2012 Posts: 46
|
Posted: Mon Feb 04, 2013 11:38 pm Post subject: udev-179 - /dev/root gone, which partition mounted on / |
|
|
used to do:
# ls /dev/root
and there it was, a symlink showing which partition was mounted on /
OK, times change. What other methods are available for checking which partition is mounted on / ?
# mount
does not work. Strangely, it still reports /dev/root is mounted on / ???
Thanks |
|
Back to top |
|
|
jrussia Tux's lil' helper
Joined: 29 Aug 2012 Posts: 89 Location: Chicago
|
Posted: Mon Feb 04, 2013 11:48 pm Post subject: |
|
|
blkid -o list
lsblk |
|
Back to top |
|
|
nomadicME n00b
Joined: 24 Mar 2012 Posts: 46
|
Posted: Tue Feb 05, 2013 12:06 am Post subject: |
|
|
sweet !!!
lsblk is even shorter than my old method
Any ideas on why mount still shows /dev/root mounted on / ? |
|
Back to top |
|
|
jrussia Tux's lil' helper
Joined: 29 Aug 2012 Posts: 89 Location: Chicago
|
Posted: Tue Feb 05, 2013 12:21 am Post subject: |
|
|
Good question, but I don't have an answer for it. Probably something early in the init process that I don't understand. |
|
Back to top |
|
|
dekeonus n00b
Joined: 14 Mar 2005 Posts: 9
|
Posted: Thu Feb 14, 2013 8:11 pm Post subject: |
|
|
I'd like to know why /dev/root symlink is gone and that the init scripts still manage to mount /dev/root because it causes quotacheck to fail to check the root filesystem o.O |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
|
Back to top |
|
|
Dr.Willy Guru
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
Posted: Fri Feb 15, 2013 12:27 pm Post subject: |
|
|
jrussia wrote: | blkid -o list
lsblk |
mount -vf / |
|
Back to top |
|
|
floppymaster Developer
Joined: 07 Jul 2010 Posts: 229 Location: Detroit, MI, USA
|
Posted: Sat Feb 16, 2013 4:56 pm Post subject: |
|
|
nomadicME wrote: | Any ideas on why mount still shows /dev/root mounted on / ? |
It has to do with the way the kernel mounts the root filesystem when you do not use an initramfs.
It translates the root=/dev/sdXY on the command line to a major and minor device number.
Then it creates a temporary device node with that major and minor number as "/dev/root".
Finally, it mounts the root filesystem using that temporary device node.
This is all done by the code in the "init" folder in the kernel sources.
Ideally, someone would modify the kernel code to use /dev/sdXY as the temporary device node name, but that is probably more work that it seems. |
|
Back to top |
|
|
|