LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mounting/umounting (https://www.linuxquestions.org/questions/linux-general-1/mounting-umounting-321804/)

TomalakBORG 05-09-2005 08:02 PM

Mounting/umounting
 
Hey guys, I have a pretty simple problem:

I was installing UT2004, and had to put in multiple disks. Now, I mounted disk 1
Code:

mount /dev/hdc /mnt/cdrom
Then when it came time for disk 2, I had to umount it the same way, but it said disk in use. I did the paper clip trick on my drive, and then it opened/closed at will - allowing me to finish the installation of all 6 disks. Now, what is the way to get around this, and have it just open/close no matter what? (or what am I doing wrong) -Bill

kencaz 05-09-2005 08:29 PM

Were you in root when you tried to umount? you don't need the /dev/hdc to unmount the drive... Just:
# umount /mnt/cdrom
will do...

Also if you were in the directory /mnt/cdrom and issue the umount command it can't unmount because your in it.

KC

Tinkster 05-09-2005 08:31 PM

You have to cd out of the directory you mounted to...
If the directory is the active working directory in a
shell you can't unmount it.


Cheers,
Tink

TomalakBORG 05-09-2005 09:15 PM

Ok, but I was in the root directory - I know that being in there makes it active and stop the unmounting. I'll try that simpler umount command in the furture, but is there a setting ot unlock cdrom drives or to force unmount? -Bill

kencaz 05-09-2005 09:30 PM

# eject /mnt/cdrom

will unmount and eject the CD...

There are way's to disable the autolock but you'll have to search on that one...

KC

keith2045 05-12-2005 12:07 AM

I have the same problem, just with a usb thumb drive. I use the umount command and it says something like it is busy (also with the cd drive), so i just take it out. Well next time i put it in i it gets changed to the next available file. For example, the first time it is /dev/sda, the second time it is /dev/sdb, third /dev/sdc, ect... Well I got to some letter, f i think and i couldnt mount it anymore.

Any thoughts? I'm using Mandrake 10.1. And i am not in that directory.

Keith

keith2045 05-12-2005 12:13 AM

Ok figured it out. Have to have admin rights. Could that be TomalakBORG's problem also?

Keith

TomalakBORG 05-12-2005 09:30 AM

Well, I was in super user mode


All times are GMT -5. The time now is 01:24 PM.