Re: /proc/mounts "stuff"
From: Chris Friesen
Date: Wed Feb 25 2004 - 10:20:55 EST
Richard B. Johnson wrote:
Linux version 2.2.24 (actually since pivot-root), have a
problem with what's in /proc/mounts vs. what's written
to /etc/mtab when mounting file-systems.
/etc/mtab
/dev/sda1 / ext2 rw 0 0
none /proc proc rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0
/dev/sdb1 /usr/src ext2 rw 0 0
/proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext2 rw 0 0
The shutdown scripts on my system seem to be compensating for this.
However, I'm hitting another problem where I do a pivot_root to a tmpfs
filesystem and the shutdown scripts no longer know how to deal with it
and try to unmount the real root filesystem from under themselves,
causing all kinds of problems.
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@xxxxxxxxxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/