Which /dev/block is my CD at ?

Which /dev/block is my CD at ?

Post by tvn198 » Tue, 31 Jul 2001 19:25:50



hi,

I recompile my kernel for scsi simulation support (for CDRW stuff) --- it
seems that the simulation support feature works .  This is the line taken
from dmesg

SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: PLEXTOR   Model: CD-R   PX-W1210A  Rev: 1.08
  Type:   CD-ROM                             ANSI SCSI revision: 02

but now once I boot into the system, I have no idea where the cdrom is (I
can't mount it)... it's not in /dev/hdc  , /dev/scd0 , /dev/cdrom    -- is there
something I can do to check what /dev/block my cdrom is on ?

btw, I have this line in my lilo.conf  -- don't know if that affects
anything
append="hdc=ide-scsi"

 
 
 

Which /dev/block is my CD at ?

Post by Swif » Tue, 31 Jul 2001 19:49:51


[snip]

Quote:>  SCSI subsystem driver Revision: 1.00
>  scsi0 : SCSI host adapter emulation for IDE ATAPI devices
>    Vendor: PLEXTOR   Model: CD-R   PX-W1210A  Rev: 1.08
>    Type:   CD-ROM                             ANSI SCSI revision: 02

>  but now once I boot into the system, I have no idea where the cdrom is (I
>  can't mount it)... it's not in /dev/hdc  , /dev/scd0 , /dev/cdrom    --
>  is there something I can do to check what /dev/block my cdrom is on ?

>  btw, I have this line in my lilo.conf  -- don't know if that affects
>  anything
>  append="hdc=ide-scsi"

You probably have cdrecord installed on your system, don't you?

If "cdrecord -scanbus" sais something like this:

scsibus0:
        0,0,0     0) 'PLEXTOR ' 'CD-R   PX-W8432T' '1.05' Removable CD-ROM

then it should be /dev/scd0. Your's is probably another number: scd1 or
higher.

Also check that the necessary devicefiles do exist.

--
 SwifT                     -    Key-ID CDBA2FDB
 LUG: http://www.lugwv.be  -    http://www.keyserver.net

 
 
 

Which /dev/block is my CD at ?

Post by Duane Clar » Wed, 01 Aug 2001 00:44:00



> hi,

> I recompile my kernel for scsi simulation support (for CDRW stuff) --- it
> seems that the simulation support feature works .

Oh, since I see you recompiled the kernel, I should have added to make
sure that you should have enabled, either in the kernel or as a module,
SCSI CD-ROM support.

The "SCSI CD-ROM support" is sr (if compiled into the kernel - I
recommend this) or sr-mod if compiled as a module. It is the one used
for mounting CDROMs.

--

 
 
 

Which /dev/block is my CD at ?

Post by Duane Clar » Wed, 01 Aug 2001 00:26:42



> hi,

> I recompile my kernel for scsi simulation support (for CDRW stuff) --- it
> seems that the simulation support feature works .  This is the line taken
> from dmesg

> SCSI subsystem driver Revision: 1.00
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
>   Vendor: PLEXTOR   Model: CD-R   PX-W1210A  Rev: 1.08
>   Type:   CD-ROM                             ANSI SCSI revision: 02

> but now once I boot into the system, I have no idea where the cdrom is (I
> can't mount it)... it's not in /dev/hdc  , /dev/scd0 , /dev/cdrom    -- is there
> something I can do to check what /dev/block my cdrom is on ?

> btw, I have this line in my lilo.conf  -- don't know if that affects
> anything
> append="hdc=ide-scsi"

Try this:
# insmod sr-mod

Then try mounting the CDROM. Another thing to look at is
# dmesg

Look for lines like:

Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray

In that case the device file is /dev/sr0, which is generally the same as
/dev/scd0.

If that works, then you just don't have things set up to automatically
load the sr module (which is what is used for mounting when using ide-scsi).

--

 
 
 

Which /dev/block is my CD at ?

Post by tvn198 » Wed, 01 Aug 2001 08:33:27


I got it working guys - thanks
the problem is when I recompiled the kernel, I did choose scsi simulation
but not the scsi cdrom support  ...  recompiled with scsi cdrom support
and it works out  .. /dev/hdc  

thanks



> hi,

> I recompile my kernel for scsi simulation support (for CDRW stuff) ---
> it seems that the simulation support feature works .  This is the line
> taken from dmesg

> SCSI subsystem driver Revision: 1.00
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
>   Vendor: PLEXTOR   Model: CD-R   PX-W1210A  Rev: 1.08 Type:   CD-ROM  
>                            ANSI SCSI revision: 02

> but now once I boot into the system, I have no idea where the cdrom is
> (I can't mount it)... it's not in /dev/hdc  , /dev/scd0 , /dev/cdrom  
> -- is there something I can do to check what /dev/block my cdrom is on ?

> btw, I have this line in my lilo.conf  -- don't know if that affects
> anything
> append="hdc=ide-scsi"

 
 
 

1. CD-ROM: mount: /dev/mcd is not a valid block device

  I recently purchased the Walnut Creek CD-ROM release of Slakware
Linux 1.2.1, and began to try to install it on my Gateway 2000 486SX/25.
I have an ancient CD-ROM drive made by a company called "Smart and Friendly"
installed in it.  When I first went to install it, it would not recognize
the CD-ROM drive at all.  I then tried the Mitsumi bootdisk, and when
it loaded, it recognized my drive as Mitsumi-compatible, but didn't
mount it.  I then tried to manually mount the drive on the command-line
using the command 'mount -t iso9660 -r /dev/mcd /cdrom'.  This returned
the error message 'mount: /dev/mcd is not a valid block device'.  I then
searched EVERY document that I have (which is every one on tsx-11 and sun-
site.unc) for the error message, and came up with nothing.  Can someone
out there help me with this?  I am wanting to install as much as I can
(excluding the 'a' disk set, of course) from the CD-ROM drive itself, but
I can't mount it, so I'm stuck.

  My PC configuration is: Gateway 2000 80486SX/25 with Overdrive Processor;
8Mb RAM; 340 Mb Western Digital HDD; "Smart and Friendly" CD-ROM drive, etc.

Thanks,
matt();

2. PPP problems w. null modem link & Linux

3. What is the difference between /dev/sg0, /dev/scd0 /dev/hdd and /dev/cdrom ?

4. LILO IDE, DOS & EXT2FS

5. /dev/dsp, /dev/audio, /dev/midi., /dev/sndsta

6. modules for a new card

7. Non blocking socket blocks; says 'read would block' ?

8. UMSDOS Utilities

9. Getting value of file pointer for socket, OR am I blocked on a write?

10. Corrupted super block. Am I totally hosed?

11. BAD SUPER BLOCK hang... how hosed am I?

12. Can't find /dev/nst0....What am I doing wrong?

13. >/dev/msglog 2<>/dev/msglog </dev/console