On Thu, Feb 12, 2009 at 1:00 PM,  <sf...@users.sourceforge.net> wrote:
>
> Nitin Bhardwaj:
>> > (shutdown)
>> > umount /sysroot/bin
>> > # you may specify $PATH
>> > mount -o remount,ro,mod:/bin=ro /aufs/bin
>> >
>> After the kernel starts executing init ( and comes out of the initrd
>> ), there is no /sysroot - it becomes /
>> Hence this command gives error:
>> umount: /sysroot/bin not found.
>>
>> So, If I try "umount /bin" it says:
>> umount: /bin: device is busy
>
> I see.
> Probably your umount command exists under /bin.
> Then I'd suggest you to "umount -l /bin".

Yes. mount,umount are on /bin in RHEL. And shutdown binary in on /sbin.
Tried "umount -l". That has a cyclic dependency: unmounting /bin
renders any command(s) thereafter unable to execute.

What I want is this:
1. Somehow, I should be able to unmount the union of
/.mount/{bin,sbin,usr,lib} and /aufs/{bin,sbin,usr,lib} (since at this
point I no longer require read-write facilities).
2.remount /.mount/{bin,sbin,lib,usr} on /bin,/sbin,/lib,/usr  , so
that the shutdown can go ahead as earlier ( before adding aufs logic )
>
>> However, the remount goes ahead fine.
>
> And cleanly unmounted? No more fsck messages?
>
No. The read-only remount goes ahead fine, but while shutdown I get
the same errors:
umount2:/tmp:Device or resource busy
umount2:/usr/:Device or resource busy
umount2:/sbin:Device or resource busy
umount2:/bin:Device or resource busy

And the fsck messages on the boot up again:
/dev/hda1:Superblock last mount time is in the future. FIXED.
/dev/hda1:Superblock last write time is in the future. FIXED.
/dev/hda1: clean, xxx files, yyy blocks           [  OK  ]


Thanks,
Nitin.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com

Reply via email to