DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
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.
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.
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
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"
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.