LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-09-2005, 08:02 PM   #1
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
Posts: 245

Rep: Reputation: 30
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
 
Old 05-09-2005, 08:29 PM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 47
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
 
Old 05-09-2005, 08:31 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 05-09-2005, 09:15 PM   #4
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
Posts: 245

Original Poster
Rep: Reputation: 30
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
 
Old 05-09-2005, 09:30 PM   #5
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 47
# 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
 
Old 05-12-2005, 12:07 AM   #6
keith2045
Member
 
Registered: Feb 2005
Location: Missour, USA
Posts: 83

Rep: Reputation: 15
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
 
Old 05-12-2005, 12:13 AM   #7
keith2045
Member
 
Registered: Feb 2005
Location: Missour, USA
Posts: 83

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

Keith
 
Old 05-12-2005, 09:30 AM   #8
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
Posts: 245

Original Poster
Rep: Reputation: 30
Well, I was in super user mode
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
umounting NFS jonfa Linux - Networking 9 12-14-2007 03:01 PM
Automatic mounting/ umounting USB key on FC3 kubokubik Fedora 3 12-01-2004 03:16 AM
samba mounting and umounting problem urkhaa1975 Linux - Networking 0 07-30-2004 04:17 AM
mounting-umounting cdrom in KDE Real-Pain mickeyboa Fedora 1 06-19-2004 04:17 PM
umounting NFS Syncrm Linux - General 4 10-11-2002 07:55 PM


All times are GMT -5. The time now is 07:17 PM.

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