LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2004, 07:59 AM   #1
spedsta
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: mandrake 9.1
Posts: 36

Rep: Reputation: 15
Red face Simple mounting questions


Ok this is reallysimple but I take it this the place to go once you really out of ideas.

I have mdk 10.0 CE installed. I love it , its just great, except for this little niggle, maybe its not a niggle maybe its a dumb user (me)

I have a dvd and its mounted as cdrom1(hdc) and a cdrw mouted at cdrom2(hdd).

Inserting a cd works great, it brings up the correct app and everything for the dvd drive, but for the cdrw it always says "incorrect Medium ..." and I cant access the drive. I can use it in writing a cd but not to read.
I have tried mounting it in konquoror as root but no luck, same message.

aslo, please tell me the correct way to change a cd in the dvd drive. When i eject using the button on the drive itself , linux sorta still sees the cd there, and right clicking it in konquoror to unmount afterwards doesn't help either, then i reboot and only then i can use the drive again for another cd.

another little niggle is that i inserted a flash drive and voila, it appeared as a drive on the desktop, no user intervention, but i thought maybe the same was relevant for removing it, except i shut down and when i fired it up again it still had the drive mounted there on my desktop, except this time there was no flash drive there at all.

to me it seems all the above are sorta related. seeing that i didn't first unmount before removing the media.

thanks ahead of time
really simple things but
 
Old 05-27-2004, 09:00 AM   #2
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
I'm not sure whether this is true for Mandrake, too, (I'm speaking from a SuSE 9 perspective) but in KDE 3.2 Konqueror gives you the possibility to access your drives under 'devices' (I suppose, as I am also translating from German ), and the various drives will be auto-mounted. If you can access the DVD drive by that means but not the other one, the mounting process is probably failing.

In oder to find out about how the drives are mounted, look at the file 'fstab' located in your /etc directory. In it you'll find a single line for each device you can mount. The ones applying to your cd-rom drives have the words cdrom1 and cdrom2 in them respectively. If the line applying to your cdrom2 is different to that applying to cdrom1, you could first try to copy the line applying to cdrom1 and change it so that it refers to the other drive (hdc becomes hdd, cdrom1 becomes cdrom2). Then you have to comment out the old line applying to cdrom2 by putting a # in front of it. That might do the trick. If not, post the content of your fstab file here.

Normally I suppose your DVD drive should not be able to eject a CD as long as it is mounted, but maybe it cannot be software-locked. The correct way to eject a CD is to first umount it (which is easy to forget when KDE does the mounting for you). In Konqueror you can do that by a command in the context menu of the drive (available by right-click), and there is a second command which will then eject the CD from the drive, too.

Likewise the flash drive should have been umounted before removal. Again, you can use the context menu for that.

Robin
 
Old 05-27-2004, 09:02 AM   #3
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
Quote:
aslo, please tell me the correct way to change a cd in the dvd drive. When i eject using the button on the drive itself , linux sorta still sees the cd there, and right clicking it in konquoror to unmount afterwards doesn't help either, then i reboot and only then i can use the drive again for another cd.
Quote:
another little niggle is that i inserted a flash drive and voila, it appeared as a drive on the desktop, no user intervention, but i thought maybe the same was relevant for removing it, except i shut down and when i fired it up again it still had the drive mounted there on my desktop, except this time there was no flash drive there at all.
it appears that you are not unmounting the devices. in linux, you can be set up to automount devices, as it appears that you are, since it recognizes cd's and the flash drive without you manually mounting them. your mistake comes i think when you just remove the media without unmounting the device, so linux thinks that it is still there.

you can find out what filesystems are mounted by simply giving the command:
Code:
mount
then you can unmount the particular device using for example:
Code:
umount /mnt/cdrom
please note that the spelling of that command it is umount, not unmount.

you can also take a look in /etc/fstab. this contains entries as to which filesystems the linux system should mount when you boot up. if there are any here that you do not want the system to mount each time you boot you can delete those lines or just comment them out by putting a # in front of each line.

a note of caution, be careful with this file, as you certainly do not want to remove your root filesystem for example.

hope this helps.
 
Old 05-27-2004, 09:07 AM   #4
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Always unmount before removing disks/drives. Linux won't let you eject a CD-ROM until all the write buffers are clear. This should be the case for USB sticks as well, but unfortunately you can pull out a stick before unmounting possibly causing writes to the drive not to be finished. This can ruin a stick really quick as I can atest.

If you cannot unmount a drive for some reason, make sure no processes are in that drive. Writes, file managers being there, terminals cd to there. Don't be in the drive and then you can unmount it.

The CD-RW I'm not sure about. If possible, remove the drive and try it in another computer, preferably a Windows machine. If you get problems there, then it is most likely a hardware problem. Other than that I can't think of anything.

Good luck and I hope you get it solved.
 
  


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
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 01:40 PM
Simple-seeming problem mounting CDROM in 2.6 eyeoft Linux - Hardware 2 05-25-2004 05:51 PM
simple questions... pabloromero Linux - Networking 2 11-29-2003 04:27 PM
Two simple questions Bigun Linux - General 12 09-13-2002 07:44 AM
Simple mounting question. x^n Linux - Newbie 3 05-12-2002 11:45 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration