Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mount: /dev/cdrom is not a valid block device

378 views
Skip to first unread message

sepp

unread,
May 10, 2004, 6:19:39 AM5/10/04
to
hi

I'm using Fedora FC1 with a self built kernel 2.6.5. mount /dev/cdrom
returns "/dev/cdrom is not a valid block device". Same with "mount -t
iso9660 /dev/hdc1 /mnt/cdrom/"
I also tried sdc0 instead of hdc1, without success.

my fstab:
/dev/cdrom /mnt/cdrom udf,iso9669 noauto,owner,kudzu,ro 0 0

ls -l /proc/ide
r--r--r-- 1 root root 0 May 10 12:16 drivers
lrwxrwxrwx 1 root root 8 May 10 12:16 hda -> ide0/hda
lrwxrwxrwx 1 root root 8 May 10 12:16 hdc -> ide1/hdc
dr-xr-xr-x 3 root root 0 May 10 12:16 ide0
dr-xr-xr-x 3 root root 0 May 10 12:16 ide1
-r--r--r-- 1 root root 0 May 10 12:16 piix

modprobe cdrom returns "Module cdrom already in kernel"

what am I doing wrong?

kuisi

Lenard

unread,
May 10, 2004, 7:38:32 AM5/10/04
to

Did you perhaps miss the IDE-SCSI emulation configuration when you created
your custom 2.6.5 kernel?

CONFIG_BLK_DEV_IDESCSI=m

The CD does not have a partition so 'mount -t iso9660 /dev/hdc /mnt/cdrom'
or 'mount -t iso9660 /dev/sda /mnt/cdrom' (assuming the CD device is the
first scssi device on your system) should work. Also check the symbolic
link 'ls -al /dev/cdrom' and make sure it is to /dev/hdc.

IDE-SCSI emulation is no longer needed with the 2.6 kernels and has not
really been needed since kernel 2.4.20 or so for 'burning' CD media. So
you might want to remove the 'hdc=ide-scsi' section from your boot loader
and re-create your symbolic link (/dev/cdrom).


--
"In short, without this exclusive franchise, called the Windows API,
we would have been dead a long time ago." M$ Senior VP Bob Muglia '96

Michael Heiming

unread,
May 10, 2004, 1:14:08 PM5/10/04
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.setup Lenard <len...@127.0.0.1> suggested:


> On Mon, 10 May 2004 12:19:39 +0200, sepp wrote:

[ problems mounting cdrom ]

> The CD does not have a partition so 'mount -t iso9660 /dev/hdc /mnt/cdrom'
> or 'mount -t iso9660 /dev/sda /mnt/cdrom' (assuming the CD device is the
> first scssi device on your system) should work. Also check the symbolic

/dev/sda is usually the first scsi disk, the first scsi cdrom is
/dev/scd0.

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo zvp...@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAn7hfAkPEju3Se5QRAjgsAJ0Rm/SEa/zQdJ+1Ws+jFfxgJObd5QCgpmnF
cn7o8oKg8LcvhE1NNU9oTVM=
=v67X
-----END PGP SIGNATURE-----

Lew Pitcher

unread,
May 10, 2004, 1:23:58 PM5/10/04
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Heiming wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> NotDashEscaped: You need GnuPG to verify this message
>
> In comp.os.linux.setup Lenard <len...@127.0.0.1> suggested:
>
>>On Mon, 10 May 2004 12:19:39 +0200, sepp wrote:
>
>
> [ problems mounting cdrom ]
>
>
>>The CD does not have a partition so 'mount -t iso9660 /dev/hdc /mnt/cdrom'
>>or 'mount -t iso9660 /dev/sda /mnt/cdrom' (assuming the CD device is the
>>first scssi device on your system) should work. Also check the symbolic
>
>
> /dev/sda is usually the first scsi disk, the first scsi cdrom is
> /dev/scd0.

Or /dev/sr0
lpitcher@merlin:~$ ls -l /dev/scd0 /dev/scd0
brw-r----- 1 root disk 11, 0 Jul 18 1994 /dev/scd0
brw-r----- 1 root disk 11, 0 Jul 18 1994 /dev/scd0

- From /usr/src/linux/Documentation/devices.txt
11 char Raw keyboard device
0 = /dev/kbd Raw keyboard device

The raw keyboard device is used on Linux/SPARC only.

block SCSI CD-ROM devices
0 = /dev/sr0 First SCSI CD-ROM
1 = /dev/sr1 Second SCSI CD-ROM
...

The prefix /dev/scd instead of /dev/sr has been used
as well, and might make more sense.

- --
Lew Pitcher
IT Consultant, Enterprise Application Architecture,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFAn7qragVFX4UWr64RApFBAKDrQyaJE38bEly5cEm0y8PvLlLiKwCeI5cU
O3MPudVG17j/63eEhrRmzoo=
=Jv7w
-----END PGP SIGNATURE-----

Michael Heiming

unread,
May 10, 2004, 2:24:21 PM5/10/04
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.setup Lew Pitcher <Lew.P...@td.com> suggested:


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

> Michael Heiming wrote:

>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> NotDashEscaped: You need GnuPG to verify this message
>>
>> In comp.os.linux.setup Lenard <len...@127.0.0.1> suggested:
>>
>>>On Mon, 10 May 2004 12:19:39 +0200, sepp wrote:
>>
>>
>> [ problems mounting cdrom ]

[..]


>> /dev/sda is usually the first scsi disk, the first scsi cdrom is
>> /dev/scd0.

> Or /dev/sr0
> lpitcher@merlin:~$ ls -l /dev/scd0 /dev/scd0
> brw-r----- 1 root disk 11, 0 Jul 18 1994 /dev/scd0

Typo?

> - From /usr/src/linux/Documentation/devices.txt
[..]

> block SCSI CD-ROM devices
> 0 = /dev/sr0 First SCSI CD-ROM
> 1 = /dev/sr1 Second SCSI CD-ROM
> ...

> The prefix /dev/scd instead of /dev/sr has been used
> as well, and might make more sense.

Seems to depend on your distro, no sr[0-9] devices here (RH) at
all, but I'm sure I have been using them on other distro.

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo zvp...@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAn8jTAkPEju3Se5QRAqPeAJ0Wr+xkkTH4lar8lLGfmG3tWiY97gCfY+5l
MfKVPFj37w0geyQ2cBdhpZo=
=IbGC
-----END PGP SIGNATURE-----

sepp

unread,
May 10, 2004, 5:45:45 PM5/10/04
to
Lenard wrote:

when I remove the 'hdc=ide-scsi' parameter,during mounting I get the error

wrong fs type, bad option, bad superblock on /dev/cdrom,
       or too many mounted file system

do I really need the scsi emulation?

David

unread,
May 10, 2004, 6:08:05 PM5/10/04
to
sepp wrote:
>
> when I remove the 'hdc=ide-scsi' parameter,during mounting I get the error
>
> wrong fs type, bad option, bad superblock on /dev/cdrom,
> or too many mounted file system
>
> do I really need the scsi emulation?

Is the drive jumpered (master, slave) correctly?

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.26 SMP i686 (GCC) 3.3.3
Uptime: 8 days, 12:47, 2 users, load average: 0.01, 0.15, 0.68

Dave Uhring

unread,
May 10, 2004, 7:39:44 PM5/10/04
to
On Mon, 10 May 2004 12:19:39 +0200, sepp wrote:

> hi
>
> I'm using Fedora FC1 with a self built kernel 2.6.5. mount /dev/cdrom
> returns "/dev/cdrom is not a valid block device". Same with "mount -t
> iso9660 /dev/hdc1 /mnt/cdrom/"
> I also tried sdc0 instead of hdc1, without success.

Perhaps you are trying to use the wrong device:

# ls -l /dev/cdrom
lrwxrwxrwx 1 root root 8 Apr 4 16:28 /dev/cdrom -> /dev/sr0

sepp

unread,
May 10, 2004, 8:14:13 PM5/10/04
to
David wrote:

> sepp wrote:
>>
>> when I remove the 'hdc=ide-scsi' parameter,during mounting I get the
>> error
>>
>> wrong fs type, bad option, bad superblock on /dev/cdrom,
>> or too many mounted file system
>>
>> do I really need the scsi emulation?
>
> Is the drive jumpered (master, slave) correctly?
>

I was installing Fedora Linux from CDs, and under WindowsXP, there is no
problem acessing the CD-drive. btw my machine is a Dell Inspiron 8600

0 new messages