Re: "/dev/cdrom1/ is not a valid block device"

From: Spamless (Spamless_at_Nil.nil)
Date: 07/02/03


Date: 2 Jul 2003 10:30:25 -0400

In article <pan.2003.07.02.11.40.19.184366@hotmail.com>, Samhain wrote:
> Hi everybody,
> i was running into some troubles with my linux box. I have RedHat 8.0.A
> installed on my K6-2/300.
> For some reasons i had to recompile the kernel and i decided to switch to
> a 2.4.20 one.
> After the installation of the new kernel things seems to run quite
> smoothly, but I am able no more to access my cd-rw drive, an IDE LG 4/4/24
> (Secondary IDE Master).

It looks like you had it set to used ide-scsi (since it is a burner)
so /dev/cdrom1 likely is a symbolic link to a SCSI item and now your
new kernel would like to treat it as IDE but the /dev/cdrom is pointing
to scsi.

> Since when i mount the cd-rw drive with the original 2.4.18 kernel
> i got log messages about the mounting of a SCSI device, i've recompiled
> the new kernel with some SCSI stuff enabled, but with no result.

You can do it with kernel changes, but then, if you have a second CD drive
you will lose that unless you make changes.

If you want to do it with kernel changes you would NOT include IDE CDROM
support at all! You would include SCSI CDROM support, IDE-SCSI emulation
and the basic SCSI driver (with vendor options). The you would set
/dev/cdrom1 as a symbolic link to the correct SCSI item in /dev,
such as scd0. If you have another CD drive it will also come up as SCSI
and its entry in /dev/ should be set as a symbolic link to whatever.

The kernel most likely came with everything compiled as modules.
The old kernel probably had a line in lilo.conf to block the
drive from being recognized as IDE but to use ide-scsi on it (one
can use modules and such a command instead of making the change in
the kernel - or one can make the change in the kernel - but one
has to remove the IDE CDROM capability or else the drive will
come up on its native IDE handler).

cdrecord uses the scsi interface, so to use the burner, one
does not consider it as an ide device but uses a scsi driver
and the ide-scsi emulation.



Relevant Pages

  • PROBLEM: SCSI failure resulting in kernel panic - also 2.6.6 kernel
    ... SCSI failure resulting in kernel panic ... a IDE disc partition, results almost immediately in the following panic ... (see earlier problem report using 2.4.26 kernel based setup). ... # ACPI Support ...
    (Linux-Kernel)
  • Re: Prevent
    ... requirements is that the internal disks ... Make your own kernel without support for IDE / SATA / SCSI ...
    (Ubuntu)
  • Re: PROBLEM: Oops when doing disk heavy disk I/O
    ... Kernel Oopses when doing I/O to a disk. ... When writing to disk (IDE or SCSI), the kernel will Oops after ...
    (Linux-Kernel)
  • Re: CD writer
    ... The simplest way is to pass the following boot option to the kernel ... 'IDE/ATAPI CDROM support', ... and don't forget to enable SCSI CDROM and SCSI generic support. ...
    (Debian-User)
  • Re: cdrecorder ?
    ... No such file or directory.Cannot open scsi driver. ... You must set up your CD-RW drive to use IDE-SCSI emulation. ... kernel, they should be provided. ...
    (comp.os.linux.hardware)