/ listed twice in /proc/mounts
The other day, I upgraded the components of a software package that I maintain, including updating the kernel from 2.4.18 to 2.4.20.
I noticed something strange: / is now listed twice in /proc/mounts like this
rootfs / rootfs rw 0 0/dev/root / ext2 rw 0 0
It confused one of my scripts, so I had to implement a quick workaround.
Is this a feature or a bug?
Signature · 2 lines
Best regards
Christian LaursenQuoted 7 lines · Christian Laursen
The other day, I upgraded the components of a software package that I maintain, including updating the kernel from 2.4.18 to 2.4.20.
I noticed something strange: / is now listed twice in
/proc/mountslike this
Quoted 7 lines
rootfs / rootfs rw 0 0
/dev/root/ ext2 rw 0 0It confused one of my scripts, so I had to implement a quick workaround.
Is this a feature or a bug?
Is your /etc/mtab a symlink to /proc/mounts ? That is generally
thought not to be a good idea.
Ken
Signature · 2 lines
Out of the darkness a voice spake unto me, saying "smile, things could be worse". So I smiled, and lo, things became worse.
Quoted 12 lines · Ken Moffat
Quoted 10 lines · Christian Laursen
The other day, I upgraded the components of a software package that I maintain, including updating the kernel from 2.4.18 to 2.4.20.
I noticed something strange: / is now listed twice in
/proc/mountslike thisrootfs / rootfs rw 0 0
/dev/root/ ext2 rw 0 0
Quoted 7 lines
Quoted 4 lines
It confused one of my scripts, so I had to implement a quick workaround.
Is this a feature or a bug?
Is your
/etc/mtaba symlink to/proc/mounts? That is generally
thought not to be a good idea.
No, I'm running in a minimal environment without all the normal stuff, so there isn't even an /etc/mtab.
Signature · 2 lines
Best regards
Christian LaursenQuoted 8 lines · Christian Laursen
Quoted 3 lines
Is your
/etc/mtaba symlink to/proc/mounts? That is generally
thought not to be a good idea.No, I'm running in a minimal environment without all the normal stuff, so there isn't even an
/etc/mtab.
Sorry, I didn't even know that could be done in a useable system. I
guess it attracts the same difficulty.
Best Wishes.
Signature · 2 lines
Out of the darkness a voice spake unto me, saying "smile, things could be worse". So I smiled, and lo, things became worse.
Quoted 11 lines · :-> "Ken" == Ken Moffat <[email protected]> writes:
Quoted 10 lines · Christian Laursen
The other day, I upgraded the components of a software package that I maintain, including updating the kernel from 2.4.18 to 2.4.20.
I noticed something strange: / is now listed twice in
/proc/mountslike thisrootfs / rootfs rw 0 0
/dev/root/ ext2 rw 0 0
Quoted 7 lines
Quoted 4 lines
It confused one of my scripts, so I had to implement a quick workaround.
Is this a feature or a bug?
Is your
/etc/mtaba symlink to/proc/mounts? That is generally
thought not to be a good idea.
I have the same "double root":
# cat /proc/mounts rootfs / rootfs rw 0 0 /dev/root / ext3 rw 0 0 [...]
# ls -las /dev/root 0 lr-xr-xr-x 1 root root 4 Mar 22 15:07 /dev/root -> md/0
# ls -als /etc/mtab 1 -rw-r--r-- 1 root root 345 Mar 23 15:55 /etc/mtab
# cat /etc/mtab /dev/md0 / ext3 rw 0 0 [...]
could it be a 'feature' of devfs, or maybe of raid devices ?
kernel version is 2.4.21-pre5-ac3
Pf
Signature · 4 lines
------------------------------------------------------------------------------- Pierfrancesco Caci | ik5pvx | mailto:[email protected] - http://gusp.dyndns.org Firenze - Italia | Office for the Complication of Otherwise Simple Affairs Linux penny 2.4.21-pre5-ac3 #1 Sat Mar 15 22:04:18 CET 2003 i686 GNU/Linux