View previous topic :: View next topic |
Author |
Message |
needlern1 Guru
Joined: 16 Jul 2002 Posts: 376 Location: Marietta, Ga 30068
|
Posted: Fri Feb 14, 2003 12:37 am Post subject: umount /mnt/gentoo : device is busy - troubleshooting |
|
|
help is needed. I'm in the final throes of installation , but can not get /mnt/gentoo unmounted
I ran 'etc-update', 'exit', cd'd to /, and:
# umount /mnt/gentoo/boot
# umount /mnt/gentoo/proc
# umount /mnt/gentoo/dev
(/dev did not unmount, it had not been mounted)
# umount /mnt/gentoo
umount /mnt/gentoo : device is busy
I also had two other terminals open, F2 and F3, when I did my 'umount's. After reading some forum posts on the topic, I closed them. They each now just show the 'cdimage login: _' .
I also did a '^d' (logout) and logged back in (I had set a root passwd). 'Mount' shows:
Code: | cdimage root # mount
proc on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /mnt/.init.d type tmpfs (rw,mode=0644,size=1024k)
tmpfs on /dev/shm type tmpfs (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/dcroms/cdrom0 on /cdroot type iso9660 (ro)
tmpfs on / type tmpfs (rw)
/dev/hda3 on /mnt/gentoo type reiserfs (rw)
|
Is there something in the mtab above that I still need to remove? If not, how do I find what's preventing me from umounting gentoo? TIA, Bill |
|
Back to top |
|
|
Larde Guru
Joined: 07 Jun 2002 Posts: 313 Location: Duesseldorf, Germany
|
Posted: Fri Feb 14, 2003 12:41 am Post subject: |
|
|
Probably some background process you started while being chrooted to /mnt/gentoo. Perhaps you can find out the process number using fuser /mnt/gentoo and kill that process.
Hth,
Larde. _________________ Someday this will be my home... http://moonage.net/
I'll make you a deal
I'll say I came from Earth and my tongue is taped
|
|
Back to top |
|
|
needlern1 Guru
Joined: 16 Jul 2002 Posts: 376 Location: Marietta, Ga 30068
|
Posted: Fri Feb 14, 2003 2:53 am Post subject: |
|
|
Thank your Larde. The output does not look promising?
Code: | cdimage / # fuser -v /mnt/gentoo
/mnt/gentoo root kernel mount /mnt/gentoo |
What next. Bill
Edit - I just saw a new post by Larde. I just ran:
Code: | cdimage / # cat /proc/mounts
rootfs / rootfs rw 0 0
tmps / tmpfs rw 0 0
devfs /dev devfs rw 0 0
/newroot/dev/cdromscdrom0 /cdroot iso9660 ro 0 0
proc /proc proc rw 0 0
tmpfs /mnt/.init.d tmpfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
usbdevfs /proc/bus/usb usvdevfs rw 0 0
/dev/hda3 /mnt/gentoo reiserfs rw 0 0
tmpfs /mnt/gentoo/mnt/.init.d tmpfs rw 0 0 |
Does this offer anything more useable? Bill |
|
Back to top |
|
|
Woland Apprentice
Joined: 02 Aug 2002 Posts: 248 Location: Russian Jack, Alaska
|
Posted: Fri Feb 14, 2003 3:35 am Post subject: |
|
|
I had the same prolem, and just maunally re-booted. I know this is a bad thing but if you sync first, you should not get any corruptions in your file system. --And durning the install, your root file system is in RAM anyway, so its not going to be around to get corrupted. Worst come to worst, you can always reboot again with the install CD and fsck away. I know this is not an elegant solution, but I am not sure that this is a problem that you want to waste too much time on. |
|
Back to top |
|
|
rtn Guru
Joined: 15 Nov 2002 Posts: 427
|
Posted: Fri Feb 14, 2003 3:28 pm Post subject: |
|
|
Try unmounting /mnt/gentoo/mnt/.init.d
--rtn |
|
Back to top |
|
|
DarkJedi9 Apprentice
Joined: 28 Oct 2002 Posts: 204
|
Posted: Fri Feb 14, 2003 4:26 pm Post subject: |
|
|
Pretty much everytime I've installed Gentoo this has happened. I've always just crossed my fingers and rebooted. It's never caused a problem. |
|
Back to top |
|
|
needlern1 Guru
Joined: 16 Jul 2002 Posts: 376 Location: Marietta, Ga 30068
|
Posted: Sat Feb 15, 2003 10:50 am Post subject: |
|
|
Thanks to all for the tips. I wound up doing a sync (per Woland) and rebooted, as rtn hadn't posted at that time. It rebooted successfully, but with numerous modules broken.
I then rebuilt my kernel and modules a couple of times and copied the bzImage to what I finally remembered was my unmounted /boot partition. I'm not used to having an unmounted /boot. Once I copied bzImage to my mounted /boot (I'm pointing this out as there must be countless numbers of people who may repeat just what I've gone through) all was well in paradise . Bill |
|
Back to top |
|
|
Woland Apprentice
Joined: 02 Aug 2002 Posts: 248 Location: Russian Jack, Alaska
|
|
Back to top |
|
|
torque2k n00b
Joined: 08 Aug 2002 Posts: 29 Location: MI
|
Posted: Sat Feb 22, 2003 4:34 pm Post subject: This works. |
|
|
rtn wrote: | Try unmounting /mnt/gentoo/mnt/.init.d
--rtn |
Just thought I'd let someone know, this does indeed work perfectly. Thanks so much! _________________ INTEL INSIDE:
It's not just a label, it's a warning... |
|
Back to top |
|
|
gilesjuk Guru
Joined: 11 Feb 2003 Posts: 412 Location: Staffordshire, UK
|
Posted: Sat Feb 22, 2003 8:48 pm Post subject: Re: This works. |
|
|
Quite often you're in the directory that is being unmounted, you just need to cd /
Or you've become superuser from a normal user account and that user is still in that dir.
CTRL D or exit to reverse the SU and cd / fixes that.
(not applicable in this case, but useful to know). |
|
Back to top |
|
|
Woland Apprentice
Joined: 02 Aug 2002 Posts: 248 Location: Russian Jack, Alaska
|
Posted: Sat Feb 22, 2003 11:43 pm Post subject: |
|
|
In this case you have a (virtual) file system mounted on a file system which you are trying to unmount. So running the mount command by itself should show you what is mounted where.
As for being in a directory, yes, that is usullay a problem, except if you are running a "shutdown" script, this shouldn't matter---shutdown sends a kill signal to all running processes, including the shells. |
|
Back to top |
|
|
padma n00b
Joined: 23 Feb 2003 Posts: 2 Location: St. Louis
|
Posted: Sun Feb 23, 2003 4:21 pm Post subject: Same problem using GRP cd |
|
|
I had the same problem while installing using a GRP live cd.
The install directions don't mention umounting the GRP directory, as soon as I umounted it all was fine. |
|
Back to top |
|
|
|