LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 07:20 AM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 387

Rep: Reputation: 40
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 Jrg 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, 08:00 AM   #2
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
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, 08:31 AM   #3
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 387

Original Poster
Rep: Reputation: 40
Sorry.

It's a CDRW.

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

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
what is your /dev/cdrom linking to??
 
Old 01-13-2005, 02: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, 02:15 PM   #6
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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, 03:57 PM   #7
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 387

Original Poster
Rep: Reputation: 40
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, 03:36 AM   #8
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 387

Original Poster
Rep: Reputation: 40
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:50 AM
/dev/cdrom is not a valid block device ukrainet Linux - Newbie 1 12-27-2004 05:29 AM
mount: /dev/cdrom is not a valid block device FXRS Slackware 2 05-25-2004 12:32 AM
/dev/cdrom is not a valid block device kryptotronic Debian 8 04-04-2004 06:11 PM
mount: /dev/cdrom is not a valid block device abruneau Linux - General 19 02-16-2004 05:56 AM


All times are GMT -5. The time now is 06:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration