LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-13-2005, 06:20 AM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
mount: /dev/cdrom is not a valid block device


Hi

I've just installed Slackware 10.0 on a USB hard drive attached to an IBM T30. I've got everything working except the CDROM. When I try to mount I get -

root@darkstar:~# mount /dev/cdrom /mnt/cdrom
mount: /dev/cdrom is not a valid block device

when I cdrecord -scanbus I get -

root@darkstar:~# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

The appropriate section in my lilo.conf looks like -

# Linux bootable partition config begins
image = /boot/vmlinuz
initrd=/boot/initrd.gz
append="hdc=ide-scsi"
root = /dev/sda1
label = Linux
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

and I've done lilo.

The interesting section in dmesg is -

hdc: attached ide-scsi driver.
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.04
Type: CD-ROM ANSI SCSI revision: 02

whereas on my desktop I would, in dmesg, get the extra line with the channel, id and lun.

hdc: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: AOPEN Model: CD-RW CRW5232 Rev: 1.03
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0

In /proc/scsi/scsi I've got

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: HITACHI_ Model: DK23DA-20 Rev: 0 0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: MATSHITA Model: UJDA730 DVD/CDRW Rev: 1.04
Type: CD-ROM ANSI SCSI revision: 02

My fstab has the line

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0

and lsmod reveals., for sake of clarity I've removed the sound modules -

Module Size Used by Tainted: P
eepro100 19252 1
mii 2272 0 [eepro100]
pcnet_cs 11444 1
8390 6000 0 [pcnet_cs]
crc32 2880 0 [8390]
ds 6548 4 [pcnet_cs]
yenta_socket 10336 2
pcmcia_core 39972 0 [pcnet_cs ds yenta_socket]
ntfs 51424 1 (autoclean)
ide-scsi 9360 0
agpgart 43940 0 (unused)
usb-storage 65960 2
uhci 24236 0 (unused)
usbcore 59084 1 [usb-storage uhci]
sd_mod 10556 4
scsi_mod 55768 3 [ide-scsi usb-storage sd_mod]
ext3 61787 0 (unused)
jbd 38087 0 [ext3]


If I remove the append from lilo I can mount the drive as /dev/hdc


Any suggestions as to where to look? Could it be the contents of the initrd.gz?

I've got zipslack on a 256MB usbpen and that seems to work ok.


Thanks
 
Old 01-13-2005, 07:00 AM   #2
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
Just curious. IF this is a cdrom and not a cdrw why did you append ide-scsi in lilo? YOu state yourself it works without the append. The only reason generally to do that to the device is to get scsi emulation working to burn cds.
 
Old 01-13-2005, 07:31 AM   #3
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Original Poster
Rep: Reputation: 153Reputation: 153
Sorry.

It's a CDRW.

Regards
 
Old 01-13-2005, 12:17 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
what is your /dev/cdrom linking to??
 
Old 01-13-2005, 01:07 PM   #5
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
It should be linked to dev/sr0 instead of /dev/hdx
 
Old 01-13-2005, 01:15 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally posted by mago
It should be linked to dev/sr0 instead of /dev/hdx
you'd have to make sure it's sr0, cuz it could be sr1, etc.... depending on the setup... i haven't read through the setup description above, so i'm not sure...

but yeah, it's usually /dev/sr0
 
Old 01-13-2005, 02:57 PM   #7
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Original Poster
Rep: Reputation: 153Reputation: 153
it's attached to sr0

/dev/cdrom -> /dev/sr0

on my desktop, which works, it's attached to /dev/scd0 !!!!!

Regards
 
Old 01-15-2005, 02:36 AM   #8
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Original Poster
Rep: Reputation: 153Reputation: 153
Well. Tried all sorts of things as a result of googling the problem various bits&bobs in modules.conf. Recompiling the Kernel. All to no avail.

So I've taken out the hdc=ide-scsi from lilo.

I can now mount the CDRW with mount /dev/hdc /mnmt/cdrom

and

record with

cdrecord dev=ATAPI:0,0 -v xxxxx.iso

If someone can explain why I can't get the hdc-scsi solution working it would be greatly appreciated. Now also noticed that I'm getting an entry in /etc/var/syslog about once a second. The entry is -

"can't locate module block-major-11"

It would appear from a cursory google that it may be a problem with /dev/sr and CDRW. Something to investigate.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/cdrom is not a valid block device cannot mount eatmars Linux - Hardware 1 10-02-2005 07:50 AM
/dev/cdrom is not a valid block device ukrainet Linux - Newbie 1 12-27-2004 04:29 AM
mount: /dev/cdrom is not a valid block device FXRS Slackware 2 05-24-2004 11:32 PM
/dev/cdrom is not a valid block device kryptotronic Debian 8 04-04-2004 05:11 PM
mount: /dev/cdrom is not a valid block device abruneau Linux - General 19 02-16-2004 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration