Linux Debian support - cdrom/dvd symlinks strange after udev upgrade.

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > May 2006 > cdrom/dvd symlinks strange after udev upgrade.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author cdrom/dvd symlinks strange after udev upgrade.
Neil Woods

2006-05-24, 1:12 pm

I've just upgraded my kernel from 2.6.12. to 2.6.15 (Debian releases).
In doing so, I now find udev managing my /dev. Previously I used devfs.

Upon rebooting into the new kernel, the symlinks for /dev/cdrom,
/dev/cdrw, /dev/dvd and /dev/dvdrw all point to /dev/vcc/a7

# l /dev/dvd* /dev/cdrom /dev/cdrw
lrwxrwxrwx 1 root root 6 May 24 10:28 /dev/cdrom -> vcc/a7
lrwxrwxrwx 1 root root 6 May 24 10:28 /dev/cdrw -> vcc/a7
lrwxrwxrwx 1 root root 6 May 24 10:28 /dev/dvd -> vcc/a7
lrwxrwxrwx 1 root root 6 May 24 10:28 /dev/dvdrw -> vcc/a7

The drives in question are both ATAPI drives, and appear to have correct
/dev/hd[cd] symlinks:

# l /dev/hdc /dev/hdd
lrwxrwxrwx 1 root root 30 May 24 10:27 /dev/hdc -> ide/host0/bus1/target0/lun0/cd
lrwxrwxrwx 1 root root 30 May 24 10:27 /dev/hdd -> ide/host0/bus1/target1/lun0/cd

(the first (hdc) is a cd-rewriter, the second (hdd) a dvd-rewriter).

Some background:

Previously, I used SCSI emulation for the two drives, by using

image=/boot/vmlinuz
label=Linux
initrd=/boot/initrd.img
append="hdc=ide-scsi hdd=ide-scsi devfs=mount"
read-only

in /etc/lilo.conf. Prior to upgrading my kernel, I removed the "append"
line, as I understand now that using SCSI emulation is not supported
anymore (or at least deprecated); I also made sure to re-run lilo.

Could anyone help explain what's going on here? How can I fix things so
that my /dev/cd* and /dev/dvd* symlinks point to the correct devices?

--
What part of "Phnglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!"
dont you understand?
Neil Woods

2006-05-29, 5:03 pm

Neil Woods <cnw+usenet-0605@pobox.com> writes:

> I've just upgraded my kernel from 2.6.12. to 2.6.15 (Debian releases).
> In doing so, I now find udev managing my /dev. Previously I used devfs.
>
> Upon rebooting into the new kernel, the symlinks for /dev/cdrom,
> /dev/cdrw, /dev/dvd and /dev/dvdrw all point to /dev/vcc/a7
>
> # l /dev/dvd* /dev/cdrom /dev/cdrw
> lrwxrwxrwx 1 root root 6 May 24 10:28 /dev/cdrom -> vcc/a7
> lrwxrwxrwx 1 root root 6 May 24 10:28 /dev/cdrw -> vcc/a7
> lrwxrwxrwx 1 root root 6 May 24 10:28 /dev/dvd -> vcc/a7
> lrwxrwxrwx 1 root root 6 May 24 10:28 /dev/dvdrw -> vcc/a7
>
> The drives in question are both ATAPI drives, and appear to have correct
> /dev/hd[cd] symlinks:
>
> # l /dev/hdc /dev/hdd
> lrwxrwxrwx 1 root root 30 May 24 10:27 /dev/hdc -> ide/host0/bus1/target0/lun0/cd
> lrwxrwxrwx 1 root root 30 May 24 10:27 /dev/hdd -> ide/host0/bus1/target1/lun0/cd
>
> (the first (hdc) is a cd-rewriter, the second (hdd) a dvd-rewriter).


If anyone can shed any light on this I would really appreciate it.

Why is udev assigning virtual console capture devices to these symlinks?

$ l /dev/vcc/a7
crw-rw---- 1 root root 7, 135 May 26 11:32 /dev/vcc/a7

I've searched Google but cannot find anything relevant.

> Some background:
>
> Previously, I used SCSI emulation for the two drives, by using
>
> image=/boot/vmlinuz
> label=Linux
> initrd=/boot/initrd.img
> append="hdc=ide-scsi hdd=ide-scsi devfs=mount"
> read-only
>
> in /etc/lilo.conf. Prior to upgrading my kernel, I removed the "append"
> line, as I understand now that using SCSI emulation is not supported
> anymore (or at least deprecated); I also made sure to re-run lilo.
>
> Could anyone help explain what's going on here? How can I fix things so
> that my /dev/cd* and /dev/dvd* symlinks point to the correct devices?


Do I need to add a new "append" line to /etc/lilo.conf to tell the
kernel that I'm now using the ATAPI ide-cd drivers instead of SCSI
emulation?

If so, what should I use?

Thanks in advance.
--
Neil.
Doubt isn't the opposite of faith; it is an element of faith.
-- Paul Tillich, German theologian.
Bill Marcum

2006-05-29, 5:03 pm

["Followup-To:" header set to alt.os.linux.debian.]
On Sat, 27 May 2006 04:03:06 +0100, Neil Woods
<cnw+usenet-0605@pobox.com> wrote:
> Neil Woods <cnw+usenet-0605@pobox.com> writes:
>
>
> If anyone can shed any light on this I would really appreciate it.
>
> Why is udev assigning virtual console capture devices to these symlinks?
>

Perhaps something is wrong with the udev configuration. Try
reinstalling udev.

> $ l /dev/vcc/a7
> crw-rw---- 1 root root 7, 135 May 26 11:32 /dev/vcc/a7
>
> I've searched Google but cannot find anything relevant.
>
devices?[vbcol=seagreen]
>
> Do I need to add a new "append" line to /etc/lilo.conf to tell the
> kernel that I'm now using the ATAPI ide-cd drivers instead of SCSI
> emulation?
>

Perhaps you can remove the ide-scsi references from lilo.conf.


--
A diplomat is a person who can tell you to go to hell in such a way that you
actually look forward to the trip.
-- Caskie Stinnett, "Out of the Red"
Neil Woods

2006-05-29, 5:03 pm

Bill Marcum <bmarcum@iglou.com> writes:

> ["Followup-To:" header set to alt.os.linux.debian.]
> On Sat, 27 May 2006 04:03:06 +0100, Neil Woods
> <cnw+usenet-0605@pobox.com> wrote:
> Perhaps something is wrong with the udev configuration. Try
> reinstalling udev.


I've tried this. No difference. :-(

> devices?
> Perhaps you can remove the ide-scsi references from lilo.conf.


I removed them after installation of udev (and re-ran lilo, of course).

The relevant lines of /etc/lilo.conf now are:

default=Linux
image=/boot/vmlinuz
label=Linux
initrd=/boot/initrd.img
read-only

I read somewhere that in order to inform the kernel that say /dev/hdc
is an ATAPI CD-ROM device, one should add an "append" line.
Unfortunately, I cannot now find this reference.

--
Neil.
Steal my cash, car and TV - but leave the computer!
-- Soenke Lange <soenke@escher.north.de>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com