Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently got a digital camera and found a way to get the images off the camera by editing the /etc/fstab file. After adding one new line to the file my cdrom/dvd drive is not recognized anymore. After adding the new line to my fstab file it looked like this:
The last line is the line I added. Now it looks like there is no reference to /dev/cdrom anymore. So I looked in the /etc/fstab.REVOKE file and this line was in there:
/dev/cdrom /mnt/cdrom auto defaults
I figured that somehow this line got taken out of the /etc/fstab file so I put it back in and tried to mount /mnt/cdrom but it said there was no such directory. So I did:
mkdir /mnt/cdrom
Okay so now it says:
special device /dev/cdrom does not exist
What happened? If I create the /dev/cdrom will it work and if so how do you create the /dev/cdrom? HELLLPPPP!
Ok, well it seems like a little bit of ide-scsi might've gotten being involved, what
cdrecord -scanbus
reports? Of course if you have cdrecord installed
Secondly do you know on what channels you CD-ROM/DVD-ROM reside? Primary slave, secondray master, etc?
the devices are
/dev/hda for prim. master
/dev/hdb for prim slave
/dev/hdc for sec master
/dev/hdd for sec slave
also check if the symlink /dev/cdrom is still there
ls -l /dev/cdrom
for it to function it must point to the actual device (see above), if you played with ide-scsi emulation for your CD-ROM (it referes to setting up CD burner, do you have one btw?) then your ide device for cdrom is no longer seen by the system.
So tell us what exactly did you do to set up your camera.
Originally posted by Crashed_Again
how do you create the /dev/cdrom? HELLLPPPP! [/B]
It's really just a symlink to the actual device file.
Even if you've never played with it, you do have scsi-emulation enabled on your cd drive (otherwise it wouldn't have showed up w/ 'cdrecord -scanbus')
cd /dev
ln scd0 cdrom
Check out your /etc/lilo.conf or grub.conf file, it should say something about append="hdc=ide-scsi" or something similar. your cdrom would be /dev/hdc, but since it's a scsi drive now, it's /dev/scd0
Now when I plug my digital camera into the USB port and mount the /mnt/fuji I somehow lose my cdrom mount. The last line(/dev/scd0 /mnt/cdrom auto defaults) gets taken out of the /etc/fstab file and put into /etc/fstab.REVOKE. Every time I mount my digital camera I have to go back and put this line back into the /etc/fstab file and then create the symlinks. Also the /mnt/cdrom directory gets deleted as well so I have to do mkdir /mnt/cdrom everytime. Whats up with this?
Last edited by Crashed_Again; 02-10-2003 at 08:52 PM.
More-so I believe it's a kudzu issue. Isn't kudzu's job to discover and create entries for new hardware? Turn it off and see if you find yourself in a much happier place (assuming you know your hardware better than RH ).
And FYI, I really doubt it'd get more attention in hardware You probably have it in the best forum for this problem, since it's not surely hardware, nor is it surely software, networking, security, or newbie.
Well now I shut kudzu off and removed it from the runlevel. Then I set up my /etc/fstab file so that it recognized the cdrom drive again. After uploading another picture from the digital camera my cdrom drive is no longer detected again. This is extremly frustrating. Please read the whole thread for more info.
Ok, thanks for suggesting another read. I see at least 2 things wrong. You have no fsck/dump values. The 2 numbers at the end of each entry. For your cdrom's and camera entries, place a 0 and a 0 next to it, so it should look like this:
/dev/sda1 /mnt/fuji vfat noauto,owner,ro,user 0 0
/dev/scd0 /mnt/cdrom auto defaults 0 0
I don't know how this would cause things to be removed, however it's worth looking into since I am not sure how the revoke script works.
ahh, dear old linux -
I have a SCSI host adpater, USB card reader and use SCSI emulation for my CD. I have configured so when I boot, my SCSI drives are not mounted,
I have noticed that if I "mount" my USB reader, I can't mount/read my SCSI devices - I might have the same problem with the CD, but havent seen it.
The problem is with the modules ide-scsi and scsi_mod. The 1st guy in gets the LUN. I also vaguely recall that scsi emulation hides the physical cd (typically hdb).
Try unmounting the USB (I assume it uses SCSI emulation) and
rmmod ide-scsi and scsi_mod. maybe also sr_mod
I assume rmmod is used to remove the modules. The thing that is different in my situatuion is that when I mount the USB it removes the /mnt/cdrom and then when I unmount the USB the /mnt/cdrom is still gone. I am a little weary about erasing these modules. Sell me on this.
It's nothing needing selling, it simply removes modules. Modules can easily be loaded back up. They aren't removed from the system for good. rmmod is the opposite of insmod. So, if you rmmod a module, and want it back, simply insmod it and it'll return No worries here, this person isn't suggesting to bork your system, simply rmmod a module
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.