Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > Fix Symlink Cdrom DVD

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 02-25-2007   #1 (permalink)
Just Joined!
 
ouellettesr's Avatar
 
Join Date: Feb 2007
Posts: 47
Fix Symlink Cdrom DVD

Hello, I am having a problem where evertime i mount my cdrom it mounts my dvd instead. If I mount the dvd it works fine. Its just when I mount the cd it always says its busy if there is something in the dvd drive. and I can see the contents of the dvd through the cdrom. I was told I have a symlink problem. Any help is appreciated.
ouellettesr is offline  



Reply With Quote
Old 02-25-2007   #2 (permalink)
Linux Engineer
 
aliov's Avatar
 
Join Date: Dec 2006
Location: Geneva,Beirut
Posts: 1,079
Quote:
Originally Posted by ouellettesr
I can see the contents of the dvd through the cdrom .
You can see this content of your DVD from the /mnt/cdrom directory ,i don't remember now can you check the content of your fstab
/dev/dvd /mnt/cdrom , if it like this so cdrom directory supposed to read the dvd device ,one other idea go to /dev/ and see if something like
cdrom -> dvd (symlink) .
try also to unmount the dvd and the cdrom and after mount your cdrom when there is no dvd inside the dvd rom (your dvd is RW).

tell me about any news

hope this help
aliov is offline   Reply With Quote
Old 02-25-2007   #3 (permalink)
Just Joined!
 
ouellettesr's Avatar
 
Join Date: Feb 2007
Posts: 47
I have tried just about every possible way mount and umount the devices. Through command line and in KDE. If I am at the command line, i type mount /dev/cdrom, it mounts the dvd. If i then type mount dvd it says its already mounted.

Here is fstab:

Code:
/dev/hda1        swap             swap        defaults         0   0
/dev/hda2        /                reiserfs    defaults         1   1
/dev/hda3        /usr             reiserfs    defaults         1   2
/dev/hda4        /home            reiserfs    defaults         1   2
/dev/dvd         /mnt/dvd         auto        noauto,users,ro  0   0
/dev/cdrom       /mnt/cdrom       auto        noauto,users,rw  0   0
/dev/sda1        /mnt/flash       vfat        noauto,users,rw,exec,umask=000  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
if I go to /dev/ i dont see anything that says symlink or anything, but if i click on the properties of dvd, and cdrom, they both point to /dev/hdc
ouellettesr is offline   Reply With Quote
Old 02-25-2007   #4 (permalink)
Linux Engineer
 
aliov's Avatar
 
Join Date: Dec 2006
Location: Geneva,Beirut
Posts: 1,079
try to find something called /dev/hdb should be the cdrom drive (hdx x related to the hardware master or slave position) find out and change your fstab as that.

hope this help
aliov is offline   Reply With Quote
Old 02-25-2007   #5 (permalink)
Just Joined!
 
ouellettesr's Avatar
 
Join Date: Feb 2007
Posts: 47
I tried changing the /dev/dvd and /dev/cdrom to /dev/hdc and /dev/hdc1, /dev/hdb, /dev/hdb1, and i set one to /dev/hdb, and one to /dev/hdc.

Every combination not working.






--------EDIT--------------------------------------------------------------------------------------------------------------------

Problem solved on another forum, here is the link:

http://www.linuxquestions.org/questi...91#post2645991

Thanks aloiv for your help.
ouellettesr is offline   Reply With Quote
Old 02-26-2007   #6 (permalink)
Linux Engineer
 
aliov's Avatar
 
Join Date: Dec 2006
Location: Geneva,Beirut
Posts: 1,079
Sorry but i don't understand how you solve it with just a symlinc and when you put the inicial device name in your fstab it dosen't work? a symlinc is just to say the following name point to another for example.
/dev/cdrom /mnt/cdrom default 0 0
and under /dev you have cdrom-->hdb, so if you put in your fstab file hdb instead of cdrom should works,or if the symlinc dosen't exist yet you can create it.
aliov is offline   Reply With Quote
Old 02-26-2007   #7 (permalink)
Just Joined!
 
ouellettesr's Avatar
 
Join Date: Feb 2007
Posts: 47
I understand what you were saying, and I even tried to replace, /cdrom with /hdb or /hdd, but it did not work for me.
I did notice however that if I clicked on properties of both of them in Konqueror they both said they pointed to /hdc.

I had to reboot before the new symlinks worked.

I did NOT reboot after i edited the fstab. Maybe that was my problem. I will try it to se if it works, I would like to know as well.
ouellettesr is offline   Reply With Quote
Old 02-26-2007   #8 (permalink)
Just Joined!
 
ouellettesr's Avatar
 
Join Date: Feb 2007
Posts: 47
You were right aloiv, all i needed to do was edit fstab. No reboot required.

I think the problem was that I had bad symlinks to start with, and all I needed to do was remove them, then edit the fstab.

Here is what fstab looks like now:

Code:
/dev/hda1        swap             swap        defaults         0   0
/dev/hda2        /                reiserfs    defaults         1   1
/dev/hda3        /usr             reiserfs    defaults         1   2
/dev/hda4        /home            reiserfs    defaults         1   2
/dev/hdc      /mnt/dvd         auto        noauto,users,ro  0   0
/dev/hdd    /mnt/cdrom       auto        noauto,users,rw  0   0
/dev/sda1        /mnt/flash       vfat        noauto,users,rw,exec,umask=000  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
ouellettesr is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 06:20 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1