Re: 2.6.12 and 2.6.13 won't access cdrom
On 10 Oct 2005, Stephen R Laniel wrote:
> On Mon, Oct 10, 2005 at 02:35:09PM +0100, Anthony Campbell wrote:
> > 2.6.13 won't access /cdrom and 2.6.12 segfaults when I try this. It is
> > then impossible to log out normally and I have to pull the plug on the
> > computer!
>
> Well, that sounds a touch drastic. First of all, do you mean
> /cdrom? There should be no such file. Do you mean
> /dev/cdrom? That used to exist, but I believe it's been
> deleted: it used to be a symlink to something like /dev/hdc
> (or whatever your CD-ROM drive device was), but lots of
> people have multiple CD/DVD drives; how is Linux supposed to
> know which one to symlink to?
>
> The proper approach now, I believe, is to use sysfs. See
> below for the info on my system. It says that my CD drive is
> /dev/hdc, which I can then -- if I want -- make a symlink
> to. I don't know how to make that symlink permanent, such
> that /dev/cdrom is there when I reboot.
>
> (09:39) slaniel@TheloniousMonk:~/private$ cat /proc/sys/dev/cdrom/info
> CD-ROM information, Id: cdrom.c 3.20 2003/12/17
>
> drive name: hdc
> drive speed: 24
> drive # of slots: 1
> Can close tray: 1
> Can open tray: 1
> Can lock tray: 1
> Can change speed: 1
> Can select disk: 0
> Can read multisession: 1
> Can read MCN: 1
> Reports media changed: 1
> Can play audio: 1
> Can write CD-R: 1
> Can write CD-RW: 1
> Can read DVD: 1
> Can write DVD-R: 0
> Can write DVD-RAM: 0
> Can read MRW: 1
> Can write MRW: 1
> Can write RAM: 1
>
> --
> Stephen R. Laniel
> steve@laniels.org
> +(617) 308-5571
> http://laniels.org/
> PGP key: http://laniels.org/slaniel.key
We seem to be at cross-purposes here. I have a directory called /cdrom.
My /dev/cdrom is a symlink to /dev/hdc. With this, mounting /cdrom has
always worked in the past (for years).
I don't know anything about sysfs.
Anthony
--
Anthony Campbell - ac@acampbell.org.uk
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews,
on-line books and sceptical articles)
Reply to: