Re: unmounting a filesystem mounted by /init (initramfs)

From: Denis Vlasenko (vda_at_ilport.com.ua)
Date: 07/29/05

  • Next message: Michael Krufky: "Re: isa0060/serio0 problems -WAS- Re: Asus MB and 2.6.12 Problems"
    To: Rafael EspĂ­ndola <rafael.espindola@gmail.com>, gentoo-dev@gentoo.org, gentoo-catalyst@gentoo.org, linux-kernel@vger.kernel.org
    Date:	Fri, 29 Jul 2005 08:34:35 +0300
    
    

    On Friday 29 July 2005 01:49, you 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

    "A chroot"? Better provide exact sequence of mounts, chroots which you
    execute. Otherwise people need to guess.
     
    > mount -o remount,ro /dev/hda1
    >
    > says that /dev/hda1 is not mounted!
    >
    > does any anyone has an idea?

    Use lazy umount (umount -l) while fs is still visible

    --
    vda
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Michael Krufky: "Re: isa0060/serio0 problems -WAS- Re: Asus MB and 2.6.12 Problems"

    Relevant Pages

    • unmounting a filesystem mounted by /init (initramfs)
      ... I am trying to build a system that uses a unionfs as root. ... script is based on the one used by gentoo and uses initramfs. ... problem is that /memory is no longer visible after the init script did ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Solaris 10: cannot gracefully shutdown legacy services?
      ... Oracle starts up just fine. ... > processes with a SIGTERM. ... > Reading `man init`, I find: ... > This invokes the script, ...
      (comp.unix.solaris)
    • Re: Python init
      ... that is needed for scripts running at init time. ... I think 2.5Mb would be sufficient to serve as an init platform and natively ... cover more than 80-90% of any operation an init script would need. ... python stuff to /bin and /lib and remove it from /usr, ...
      (Debian-User)
    • Re: Python init
      ... that is needed for scripts running at init time. ... I think 2.5Mb would be sufficient to serve as an init platform and natively ... cover more than 80-90% of any operation an init script would need. ... python stuff to /bin and /lib and remove it from /usr, ...
      (Debian-User)
    • Re: [SLE] SUSE 9.3: buggy as hell
      ... The thing is that once upon a time I made a temporary backup of an init ... script while I decided which to use. ... * service postfix did not start on boot, nor did it stop on halt ... network named syslog xntpd ldap ypbind ...
      (SuSE)