LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-14-2005, 11:00 AM   #1
d1l2w3
Member
 
Registered: May 2004
Location: Amboy WA USA
Distribution: Mandriva 2007
Posts: 366

Rep: Reputation: 30
mount / umount problems


sys is 1.7ghz, 512m ram
/dev/hda 160g, /dev/hdb 120g
/dev/hdc is a dual cd/dvd-rw, /dev/hdd is a cd-rw
MDK 10.1, KDE 3.2

/etc/fstab:
/dev/hdb5 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users,unhide 0 0
/dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hda1 /mnt/windows vfat umask=0,iocharset=iso8859-1,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hdb1 swap swap defaults 0 0

[root@localhost don]# umount /mnt/cdrom
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
[root@localhost don]#
There is no cd or dvd in /dev/hdc.
No program that uses /dev/hdc is open.

When inserting a cd or dvd, 'mount /mnt/cdrom' gives this error.
[root@localhost don]# mount /mnt/cdrom
mount: /dev/hdc already mounted or /mnt/cdrom busy
mount: according to mtab, /dev/hdc is already mounted on /mnt/cdrom

After opening /dev/hdc the first time with a file manager or k3b, I have to reboot to use it again.
When it is mounted, I can open and close the cd/dvd at will.
Any ideas on how to solve this?
Also, is there a way that /dev/hdc is always mounted?
I am the only user on this box so it doesn't matter if it's always mounted.

dlw
 
Old 03-14-2005, 11:41 AM   #2
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
Backup your current fstab and then try setting your /dev/hdc filetype to iso9660, and removing all of your options with the exception of user.
 
Old 03-14-2005, 12:15 PM   #3
d1l2w3
Member
 
Registered: May 2004
Location: Amboy WA USA
Distribution: Mandriva 2007
Posts: 366

Original Poster
Rep: Reputation: 30
Same as before.
No difference.

In order to use /dev/hdc again the sys has to be rebooted.

dlw
 
Old 03-14-2005, 12:38 PM   #4
Tovad
LQ Newbie
 
Registered: Mar 2005
Posts: 8

Rep: Reputation: 0
I have the same problem - a solution for me is to use the lazy umount
The fam (file alteration monitor) daemon (famd) sometimes refuse to relaese the cdrom/floppy and can then not unmount - use the umount -l option
 
Old 03-14-2005, 03:16 PM   #5
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
If it doesn't matter if its always mounted, I suppose you could look into submount, and do it that way. I don't know whats going on though.
 
Old 03-14-2005, 03:22 PM   #6
d1l2w3
Member
 
Registered: May 2004
Location: Amboy WA USA
Distribution: Mandriva 2007
Posts: 366

Original Poster
Rep: Reputation: 30
The -l option works.
Shutting down and booting up again is over... hopefully.
I'll keep working on it.

Thanks,
dlw
 
Old 03-14-2005, 04:23 PM   #7
RemusX2
Member
 
Registered: Oct 2003
Location: Bozeman, Montana
Distribution: Gentoo 2010, Ubuntu 9.04
Posts: 175

Rep: Reputation: 30
Another thing you could try is

Code:
/sbin/fuser/ -m /mnt/mount point
This will display the PID that is keeping the device from umounting. Then when you get the PID you can kill it with

Code:
kill PID
And of course changing mount point with where it's mounted and PID with the corresponding PID to the device.

Hope this helps too =]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mount and umount problem salahuddin_66 Debian 3 05-03-2005 07:49 AM
mount/umount devit Linux - General 4 02-19-2004 12:37 PM
Serious mount/umount problems... Veratien Linux - Software 8 03-23-2003 05:05 PM
mount and umount wr3ck3d Linux - Newbie 4 12-14-2002 04:04 PM
mount, umount cdrom Opaque Linux - Newbie 3 06-21-2001 09:30 PM


All times are GMT -5. The time now is 06:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration