LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-25-2005, 02:08 PM   #1
raid517
Member
 
Registered: Feb 2002
Posts: 393

Rep: Reputation: 30
Can't unmount my drives?!?!


Hi for some reason that I cannot figure out, I cannot unmount devices as an ordinary user - or even as root any more. I can mount them no problem, but I just cannot unmount them. If I try I get an error message saying:

Code:
sudo umount /dev/hda1
umount: /mnt/hda1: device is busy
umount: /mnt/hda1: device is busy
But the same is true if I try to unmount any of my devices.

Here is myfstab file.

Code:
/dev/hda3  /  reiser4  defaults  0  1
/dev/hda7  /home  reiser4  defaults,auto  0  2
/dev/hda6  /boot  ext3  defaults,auto  0  2
proc  /proc  proc  defaults  0  0
/dev/fd0 /mnt/floppy subfs fs=floppyfss,iocharset=iso8859-1,users,sync,umask=000
usbfs  /proc/bus/usb  usbfs  devmode=0666  0  0
tmpfs  /dev/shm  tmpfs defaults  0  0
/dev/hdc /cdrom subfs fs=cdfss,iocharset=iso8859-1,users,ro,exec,umask=0000 0 0
/dev/hdd /dvd  subfs fs=cdfss,iocharset=iso8859-1,users,ro,exec,umask=0000 0 0
/dev/hda5 none swap defaults 0 0
/dev/sda1 /mnt/ntfs_1 ntfs noauto,users,ro,exec,umask=0000 0 0
/dev/hda1 /mnt/hda1 vfat auto,uid=1000,gid=1000,exec,umask=000,shortname=mixed,quiet 0 0
/dev/hdb1 /mnt/hdb1 vfat auto,uid=1000,gid=1000,exec,umask=000,shortname=mixed,quiet 0 0
none /sys sysfs defaults 0 0
Has anyone got any idea what is going on?

It was working fine a few days ago. I have probably installed some updates since then, but beyond this I haven't changed my fstab at all.

GJ
 
Old 09-25-2005, 02:26 PM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
try umount /mnt/hda1 -l (lowercase letter "L")

Code:
-l     Lazy  unmount.  Detach the filesystem from the filesystem hierarchy
       now, and cleanup all references to the filesystem as soon as it  is
       not busy anymore.  (Requires kernel 2.4.11 or later.)

Last edited by slackhack; 06-27-2006 at 05:52 PM.
 
Old 09-25-2005, 07:31 PM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
/dev/hda1 /mnt/hda1

sudo umount /mnt/hda1

Try unmounting the mounting point and not the device. let us know if that works. Also try to su to root then umount. sudo won't do somethings.

Last edited by teckk; 09-25-2005 at 07:33 PM.
 
Old 09-26-2005, 07:54 AM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Also make sure that no processes or apps are currently using the drive.
 
Old 06-27-2006, 12:30 PM   #5
Killerkop
LQ Newbie
 
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
I am running Red Hat 9, in a lab environment in school, and I've encountered this problem trying to umount the floppy at times, as well as a usb device.

For the usb, I checked the processes and killed them -9 baby, and it worked like a charm then. However, that didn't work for my floppy. But I read this and got the Lazy Umount command, and it worked fine.

Just FYI, I'd thought I'd let you guys know that it worked for my problem, and thanks.
 
Old 06-27-2006, 05:52 PM   #6
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
wow, that's really bringing a thread back from the dead. but glad to know it worked for you. i'll also take this opportunity to change a small typo in my original post.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding additional drives/resizing drives in RAID arrays kheldar Linux - Hardware 1 10-19-2005 01:21 PM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM
command 'unmount' not found - how can i unmount??? GloVe Linux - General 1 10-04-2003 06:33 AM
redhat won't reboot also doesn't unmount drives Smerk Linux - Distributions 3 03-24-2003 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration