Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev-179 - /dev/root gone, which partition mounted on /
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
nomadicME
n00b
n00b


Joined: 24 Mar 2012
Posts: 46

PostPosted: Mon Feb 04, 2013 11:38 pm    Post subject: udev-179 - /dev/root gone, which partition mounted on / Reply with quote

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
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Mon Feb 04, 2013 11:48 pm    Post subject: Reply with quote

blkid -o list
lsblk
Back to top
View user's profile Send private message
nomadicME
n00b
n00b


Joined: 24 Mar 2012
Posts: 46

PostPosted: Tue Feb 05, 2013 12:06 am    Post subject: Reply with quote

sweet !!!

lsblk is even shorter than my old method

Any ideas on why mount still shows /dev/root mounted on / ?
Back to top
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Tue Feb 05, 2013 12:21 am    Post subject: Reply with quote

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
View user's profile Send private message
dekeonus
n00b
n00b


Joined: 14 Mar 2005
Posts: 9

PostPosted: Thu Feb 14, 2013 8:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Thu Feb 14, 2013 8:24 pm    Post subject: Reply with quote

dekeonus wrote:
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


Looks like you may want to CC yourself in this bug:

https://bugs.gentoo.org/show_bug.cgi?id=438028

More of similar:

https://bugs.gentoo.org/show_bug.cgi?id=438380

So, workaround, perhaps in some init script, until quota is fixed:

So if your partition is /dev/sda1 for / you can symlink /dev/sda1 to /dev/root

Like here:

http://blog.wlindley.com/tag/devroot/
Back to top
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 547
Location: NRW, Germany

PostPosted: Fri Feb 15, 2013 12:27 pm    Post subject: Reply with quote

jrussia wrote:
blkid -o list
lsblk

mount -vf /
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 229
Location: Detroit, MI, USA

PostPosted: Sat Feb 16, 2013 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum