- Pivot_root ok, but umount fail
- Posted by Ken on December 3rd, 2003
Hi.
I made a boot floppy and kernel mounts rootfs on cd.
In this situation, i cannot eject cd-rom.
So i'm trying to change root using pivot_root.
What i did was :
1. make tmpfs on /tmp_mnt
and copy some stuff from /bin /sbin etc.
2. cd /tmp_mnt
3. mkdir tmp_mnt
4. pivot_root . ./mnt_tmp
(now /mnt_tmp is CD mount point)
5. exec /bin/sh < /dev/console > /dev/console 2>&1
I could change root but still old root mounted.
So i cannot eject cd-rom.
#mount
/dev/root on /mnt_tmp type iso9660 (ro)
tmpfs on / type tmpfs (rw)
/proc on /proc type proc (rw)
#fuser -vm /mnt_tmp
/mnt_tmp / root 1...e init
What I have to do is killing init?
Regards
Kenji
Similar Posts
- BGP fail-over (Routers) by yellow
- ASR Fail (Windows Server) by Dan Slaby
- DVD-ROM - about to fail? (Computer Hardware) by S.Boardman
- how umount for reiserfsck (UNIX / Variants) by Evgeniy Petrov
- Re: Sr-1 update fail (Home and office) by Bob Buckland ?:-\)

