tell me how to properly mount a cd-rom/optical drive in linux

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
I put Knoppix 3.4 on my brothers pc and only have one problem: the links to the optical drives on the desktop are (at least this is what im told) symlinks, that stop working after a random time.

So, i looked at TLDP and did what i was told to do, and got one of the optical drives working; except i have to unmount it to change discs, and mount it again.

So im missing something, or did something I didnt need to do.

Anyway, i know at least a few you of this could probably do this in a coma, so Id really appreciate it if you could tell me what to do, how to do it, and what i can do to troubleshoot in case something comes up.

When knoppix is booting it shows the 3 drives
hda maxtor hard drive
hdb liteon dvd/rw
hdc sony cd-rom

and the optical drives are
/dev/sr0
/dev/sr1

any other info needed? id post his fstab file but im not on his pc right now. id really appreciate the help, its starting to annoy me and nothing ive read yet has gotten it work quite right.

Thanks in advance.
 

eigen

Diamond Member
Nov 19, 2003
4,000
1
0
.it sounds like everything is working correctly. As far as the mounting/unmounting that just the way it is unless you have some sort automounter. The helpful "automount" may in fact be the problem as it perpetually tries to mount the disk,m thus causing the symlink to think the device is in use or the mount point is not available. I amy be way offfff here though. Although my FC2 install was acting like this a while ago.

I am assuming the /etc/fstab looks something like

.......
/dev/sr0 /mnt/optical1 filetype options
/dev/sr1 /mnt/optical2 filetype options

If so thats prolly right.
 

erichbf

Junior Member
Jun 27, 2004
21
0
0
yeah that always bothered me too--i mean why add the exta step of mounting/unmounting. The best solution I have seen so far ids to add a mount/unmount menu to the root menu (asplinux does that--you just right click anywhere on the screen and you have a neet little sub menu just for mounting and unmounting) Also some minimal window managers have really slick tools for this--I am thinking of blackbox with bbmount tool.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
-i mean why add the exta step of mounting/unmounting

Windows mounts and umounts all the devices too, it just doesn't enforce coherency with optical drives.
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
mounting and unmount is not that hard, and you can easily create a script to mount a device and put that script as an icon in your desktop. You can use also options in the command mount. For example if you use "mount -a" it will mount al your devices in the /etc/fstab. Also you could set up shortcuts/links to your optical devicesi in the form of a scrip which would mount the device before trying to opening it using a file manager.

Good luck,
pitupepito