Re: [gentoo-dev] unmounting a filesystem mounted by /init (initramfs)

2005-07-29 Thread Rafael Ávila de Espíndola
On Thursday 28 July 2005 23:50, Jeff Walter wrote: Rafael, I have no clue if this will work, but maybe try the -n option. The man says that it won't write to /etc/mtab, but I'm hoping it will ignore it as well and just go for the mount. Also, you'll be remounting / as read-only

Re: [gentoo-dev] unmounting a filesystem mounted by /init (initramfs)

2005-07-29 Thread Ned Ludd
On Fri, 2005-07-29 at 08:48 -0300, Rafael Ávila de Espíndola wrote: On Thursday 28 July 2005 23:50, Jeff Walter wrote: Rafael, I have no clue if this will work, but maybe try the -n option. The man says that it won't write to /etc/mtab, but I'm hoping it will ignore it as well and

[gentoo-dev] unmounting a filesystem mounted by /init (initramfs)

2005-07-28 Thread Rafael Espíndola
I am trying to build a system that uses a unionfs as root. The init script is based on the one used by gentoo and uses initramfs. The problem is how to remount the unionfs constituents read only during halt. cat /proc/mounts displays /dev/hda1 (ext2) mounted rw in /memory. The problem is that

Re: [gentoo-dev] unmounting a filesystem mounted by /init (initramfs)

2005-07-28 Thread Jeff Walter
Rafael, I have no clue if this will work, but maybe try the -n option. The man says that it won't write to /etc/mtab, but I'm hoping it will ignore it as well and just go for the mount. Also, you'll be remounting / as read-only effectively, so you won't be able to write /etc/mtab anyways.