still can't access cdrom
Joel Hammer
joel
Mon May 17 11:58:41 PDT 2004
On Mon, Jan 26, 2004 at 03:41:10PM +0700, Yosua wrote:
>
> these are what i know
>
> i use one ide harddisk and one cdrom
> btw, how can i know i use devfs?
>
> i use Samsung cdrom, it used no special drivers. i had ever mounted and
> used
> it to read data(not video) from that cdrom.
>
> there is /dev/cdrom that link to /dev/hdd and fstab file contain the
> following
> /dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro
> 0 0
>
> here is the output of "ls -l /dev/cdrom"
> lrwxrwxrwx 1 root root 8 Dec 10 07:20 /dev/cdrom ->
> /dev/hdd
This says that your setup thinks that your cdrom is
attached to hdd, or is the slave device on the 2nd ide
channel.
To find out if you have devfs, look in /dev/. Without
devfs, there are premade devices like hdd hdd1 hdd2 hdd3,
etc. With devfs, you won't see them, unless you have,
for this example, a slave device on the 2nd ide channel
with three partitions. devfs makes up the devices only
as required.
So, you have to see if there is a /dev/hdd present in /dev.
Now, this still doesn't tell us where your cdrom is
attached. It could be on hdb (primary slave) hdc (secondary
master) or hdd (secondary slave).
Looking in /var/log/messages will tell you where the cdrom is. For example:
cat /var/log/messages | grep -i cdrom
shows me this.
Jan 25 19:41:54 hammer11 kernel: hdd: attached ide-cdrom driver.
Or, you can muck around in /proc/ide/ide1/hdd. If there
is no geometry file in there, then that suggests that hdd
attaches to your cdrom.
There is likely some nifty command which shows you all
your hardware, but I don't know what that command is on
most machines.
Joel
More information about the Linux-users
mailing list