Re: [gentoo-dev] unmounting a filesystem mounted by /init (initramfs)
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 effectively, so you won't be able to write /etc/mtab anyways. The halt.sh script copies /proc/mounts to /etc/mtab before trying to unmount, so I think that this is not the problem. Thanks anyway, Rafael pgpDiW4SjDffk.pgp Description: PGP signature
Re: [gentoo-dev] unmounting a filesystem mounted by /init (initramfs)
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 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. The halt.sh script copies /proc/mounts to /etc/mtab before trying to unmount, so I think that this is not the problem. In the embedded world /etc/mtab is often a symlink to ../proc/mounts and everything works well. -- Ned Ludd [EMAIL PROTECTED] -- gentoo-dev@gentoo.org mailing list
[gentoo-dev] unmounting a filesystem mounted by /init (initramfs)
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 /memory is no longer visible after the init script did a chroot and a mount -o remount,ro /dev/hda1 says that /dev/hda1 is not mounted! does any anyone has an idea? Thanks, Rafael -- gentoo-dev@gentoo.org mailing list
Re: [gentoo-dev] unmounting a filesystem mounted by /init (initramfs)
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. -- Jeff Walter [EMAIL PROTECTED] Rafael Espíndola wrote: 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 /memory is no longer visible after the init script did a chroot and a mount -o remount,ro /dev/hda1 says that /dev/hda1 is not mounted! does any anyone has an idea? Thanks, Rafael -- gentoo-dev@gentoo.org mailing list