LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mount questions ..... (https://www.linuxquestions.org/questions/linux-general-1/mount-questions-27415/)

purpleburple 08-07-2002 10:09 AM

mount questions .....
 
Hi. I had to add append="hdc=ide-scsi" to my lilo.conf so I could burn with linux. Everything went fine and I can now burn cd's. Now I use the command >
mount /dev/sr0 /mnt/cdrom as 'su' to mount the cd

1. Does anyone know what /dev/sr0 is?
2. How come back in Redhat even with scsi enabled and I could burn cd's I only had to type /mnt/cdrom to mount a cd and now I have to type mount /dev/sr0 /mnt/cdrom?? I am not complaining about the command rather just am curious as to their differences.

Also after mounting and then umounting the cd I give the eject command and get this error message>
eject: unable to eject, last error : Input/output error

anyone know what this means?


thanks :)

neo77777 08-07-2002 10:15 AM

You need to edit your /etc/fstab file to reflect changes you made. Also I advise you to create a symlink to /dev/sr0, for instance
ln -s /dev/sr0 /dev/cdrw
and for convinience create a mount poit /mnt/cdrw
and your /etc/fstab entry for CD-R/RW should look like
/dev/cdrw /mnt/cdrw misc options and fs 0 0

abrakadabra 08-07-2002 01:58 PM

Hi purpleburple, I'll try to answer your questions
1. Does anyone know what /dev/sr0 is?

A) what this means is that you have a device that is SCSI recorder with an ID of 0 that's why you'll see this entry
/dev/sr0

2. How come back in Redhat even with scsi enabled and I could burn cd's I only had to type /mnt/cdrom to mount a cd and now I have to type mount /dev/sr0 /mnt/cdrom??

A) there is a chance that RedHat created the symlink that neo77777 mentions and there was no need to mount the device to the mounting point with mount /dev/sr0 /mnt/cdrom

3.Also after mounting and then umounting the cd I give the eject command and get this error message>
eject: unable to eject, last error : Input/output error

A)Just make sure that when you are ejecting the device you are not sitting on it. What I mean is that if you are in mnt/cdrom and try to eject from here Linux will not let you. You need to cd to mnt and eject from there.

I hope this helps.

:cool:

purpleburple 08-07-2002 04:23 PM

thanks ... guys ..

I was out of the /mnt/cdrom directory when I issued the command and got the error. However I found that this command did work >

$ eject /dev/sr0

I guess I had to point the eject command to the device .... :)

DavidPhillips 08-07-2002 05:49 PM

ln -s /dev/sr0 /dev/cdrom

eject

purpleburple 08-07-2002 08:17 PM

thanks Dave ! I've never done symbolic links before. Is there a file where they are all stored when I create a symbolic link? Like when I issue that command above (i am assuming at a $ prompt) does the reference to /dev/cdrom being connected to /dev/sr0 stored in some file?

thanks :)

linuxcool 08-07-2002 09:05 PM

Symbolic links are small files that are created when you run the ln command. There is no master file containing all the symbolic links. If you run the command DavidPhillips gave you, you'll find a file named cdrom in the /dev directory and in it will be a reference to /dev/sr0. Run the command ls -l /dev/cdrom after you create the symbolic link and you'll see what the link is pointing to
( /dev/cdrom ---> /dev/sr0 ).

purpleburple 08-07-2002 09:42 PM

thnx


All times are GMT -5. The time now is 05:50 AM.