Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
umount /mnt/gentoo : device is busy - troubleshooting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
needlern1
Guru
Guru


Joined: 16 Jul 2002
Posts: 376
Location: Marietta, Ga 30068

PostPosted: Fri Feb 14, 2003 12:37 am    Post subject: umount /mnt/gentoo : device is busy - troubleshooting Reply with quote

help is needed. I'm in the final throes of installation :D , 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
View user's profile Send private message
Larde
Guru
Guru


Joined: 07 Jun 2002
Posts: 313
Location: Duesseldorf, Germany

PostPosted: Fri Feb 14, 2003 12:41 am    Post subject: Reply with quote

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
View user's profile Send private message
needlern1
Guru
Guru


Joined: 16 Jul 2002
Posts: 376
Location: Marietta, Ga 30068

PostPosted: Fri Feb 14, 2003 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Woland
Apprentice
Apprentice


Joined: 02 Aug 2002
Posts: 248
Location: Russian Jack, Alaska

PostPosted: Fri Feb 14, 2003 3:35 am    Post subject: Reply with quote

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
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Fri Feb 14, 2003 3:28 pm    Post subject: Reply with quote

Try unmounting /mnt/gentoo/mnt/.init.d

--rtn
Back to top
View user's profile Send private message
DarkJedi9
Apprentice
Apprentice


Joined: 28 Oct 2002
Posts: 204

PostPosted: Fri Feb 14, 2003 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
needlern1
Guru
Guru


Joined: 16 Jul 2002
Posts: 376
Location: Marietta, Ga 30068

PostPosted: Sat Feb 15, 2003 10:50 am    Post subject: Reply with quote

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 :P . Bill
Back to top
View user's profile Send private message
Woland
Apprentice
Apprentice


Joined: 02 Aug 2002
Posts: 248
Location: Russian Jack, Alaska

PostPosted: Sat Feb 15, 2003 6:47 pm    Post subject: Reply with quote

The unmounted boot threw me at first too, & I even considered changing that. Then I realized, that on more than one occasion, it kept me from contributing here:
https://forums.gentoo.org/viewtopic.php?t=17076&highlight=dumb+mistakes
and I just kept it the way it was.
Back to top
View user's profile Send private message
torque2k
n00b
n00b


Joined: 08 Aug 2002
Posts: 29
Location: MI

PostPosted: Sat Feb 22, 2003 4:34 pm    Post subject: This works. Reply with quote

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
View user's profile Send private message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Sat Feb 22, 2003 8:48 pm    Post subject: Re: This works. Reply with quote

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
View user's profile Send private message
Woland
Apprentice
Apprentice


Joined: 02 Aug 2002
Posts: 248
Location: Russian Jack, Alaska

PostPosted: Sat Feb 22, 2003 11:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
padma
n00b
n00b


Joined: 23 Feb 2003
Posts: 2
Location: St. Louis

PostPosted: Sun Feb 23, 2003 4:21 pm    Post subject: Same problem using GRP cd Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum