LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-24-2006, 08:53 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Mounting Problems


I have the hardest time throwing disks in my optical drives and getting them to show up so I can copy of execute files from them.

I have 2 identical IDE burners on my Linux machine.

This is what my "fstab" looks like...

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 ro,user,auto 0 0
/dev/hdb /media/cdrom1 udf,iso9660 ro,user,auto 0 0


When I boot my system up from scratch with a disk in the drive, it auto mounts it which is great. I can verify the files and copy them with no problem.

Can someone please explain this to me?

Code:
striker:/usr/local/games# cd /media/cdrecorder
striker:/media/cdrecorder# ls
00000000.016  autorun.inf  DrvMgt.dll     Launch.exe  setup.exe
00000000.256  DirectX      instmsia.exe   Launch.ini  Setup.ini
00000001.TMP  Docs         instmsiw.exe   SECDRV.SYS  Splash.bmp
0x0409.ini    Doom 3.msi   ISScript9.Msi  Setup       version.inf
striker:/media/cdrecorder# umount /media/cdrecorder
umount: /media/cdrecorder: device is busy
umount: /media/cdrecorder: device is busy
striker:/media/cdrecorder# cd ..
striker:/media# umount /media/cdrecorder
striker:/media# cd /media/cdrecorder
striker:/media/cdrecorder# ls
striker:/media/cdrecorder# mount /media/cdrecorder
mount: can't find /media/cdrecorder in /etc/fstab or /etc/mtab
 
Old 01-24-2006, 09:15 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You can't unmount a file system while something is using it - in this case your shell is using it while your current directory is on that file system. That's why you had to cd out of the file system before you could unmount it.

The next time you boot your system and it mounts /media/cdrecorder for you, can you type `mount` at a prompt and post its output as well as your /etc/fstab file? If in fact /media/cdrecorder isn't in your fstab file, it's possible that something in your startup scripts is mounting with a hard coded command line. Can you use grep to find where mount or cdrecorder occurs in your startup scripts?
 
Old 01-25-2006, 02:48 AM   #3
tvynr
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 143

Rep: Reputation: 15
Carlwill: It might also be helpful to note that it is possible to determine who is responsible for causing this error.

Code:
root@nestor:~# umount /static/archives/video/
umount: /static/archives/video: device is busy
umount: /static/archives/video: device is busy
root@nestor:~# lsof | grep "/static/archives/video"
konqueror 11567     zpalmer  140r      DIR                8,1       4096  2 /static/archives/video
The utility lsof lists the open files on the machine. In this case, a Konqueror process (the filesystem browser for KDE) is currently using the path in question.

I found this snippet of information very helpful lately as Konqueror processes were occasionally staying open when the windows had been closed. Just a relatively unrelated piece of information that I picked up only a bit ago.
 
Old 01-25-2006, 07:51 AM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I understand that I can't umount a file system because I was currently in the directory. That is why I "cd" out of it. I just don't understand why I am able to unmount the file system with one command and then when I turn right around and use the same directory with the mount command, my system is clueless.

I did post my FSTAB above which has not changed so I dont understand why you asked for it again. I will check and see if it is a start up script but this is way too confusing for such a simple task.
 
Old 01-25-2006, 08:12 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Code:
striker:/media/cdrecorder# mount /media/cdrecorder
mount: can't find /media/cdrecorder in /etc/fstab or /etc/mtab
As it says, there is no line like this in your /etc/fstab. seems pretty clear to me!

use
mount /dev/hda
or
mount /dev/hdb
same for umount
or
change your /etc/fstab to put /media/cdrecorder in the place of /media/cdrom0 or cdrom1

I don't know who is mount /media/cdrecorder , maybe kde?

And I don't understand why you post under debian forum, it is not a debian specific question. THis puts more mess on LQ..

edit:
when you unmount /media/cdrecord, it looks in /etc/mtab (list of currently mounted partitions) and then sees it uses /dev/hda or /dev/hdb and it issues umount /dev/hda or /dev/hdb

Last edited by nx5000; 01-25-2006 at 08:15 AM.
 
Old 01-25-2006, 08:19 AM   #6
esje
Member
 
Registered: Mar 2004
Location: Holland
Distribution: Debian Etch, Gentoo 2005.1/SUSE 10
Posts: 52

Rep: Reputation: 15
The strange thing is that there's not one mention of /media/cdrecorder or /dev/cdrecorder in your fstab. Our big magic friend HAL and its nephew udev create entries for them during boot-up, based on some configurations you did in the past.

Anyhow... Check out what the output mount has to tell you. Perhaps you can change your fstab accordingly. It's not too strange that /media/cdrecorder does not mount, since you have to mount a device, listed in /dev/. So either you have to start mounting /dev/cdrecorder or /dev/hdX or you have to make an alias that mounts /dev/hdX when you use the command "mount /media/cdrecorder"
 
Old 01-25-2006, 05:38 PM   #7
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by nx5000
[CODE]

And I don't understand why you post under debian forum, it is not a debian specific question. THis puts more mess on LQ..

edit:
when you unmount /media/cdrecord, it looks in /etc/mtab (list of currently mounted partitions) and then sees it uses /dev/hda or /dev/hdb and it issues umount /dev/hda or /dev/hdb
I posted this in Debian specifically. I don't feel this creates a mess as every distro handles mounting partions in their own unique way. Slackware as completely different to Fedora as is to Debian.
 
  


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
Mounting problems Thunderhawk Linux - Software 5 10-09-2004 07:49 AM
mounting problems? HELP!? mr.gizm0 Linux - Newbie 7 05-11-2004 12:07 PM
Mounting Problems praveen_2003 Linux - Software 5 04-24-2003 05:33 AM
problems mounting ewto Linux - Newbie 18 04-11-2003 03:34 AM
Mounting problems tsitras Linux - Newbie 3 03-23-2003 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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