🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.redhat.misc
Article #56

Re: mount /mnt/cdrom ==> the kernel does not recognize /dev/cdrom as a block device

#56
From: Marc Childress
Date: Fri, 17 Mar 2000 00:00
59 lines
2821 bytes
Here's your problem- My setup is slightly different since I use a SCSI
cdrom, but you should get the idea.  /dev/cdrom is only a symlink see
below-

[root@childm /mnt]# ls -la /dev/cdrom
lrwxrwxrwx   1 root     root            4 Mar 13 06:51 /dev/cdrom ->
scd0

When the link is correct, it mounts correctly-

[root@childm /mnt]# mount /dev/cdrom cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only

Your symlink points to the wrong device, and you should get the same
error as below ( I don't have a hda1, since I have UDMA/66)

[root@childm /mnt]# mount /dev/hda1 cdrom
mount: the kernel does not recognize /dev/hda1 as a block device
       (maybe `insmod driver'?)
[root@childm /mnt]#

What you need to do to fix your problem is
1. "ls -la /dev/cdrom"  This should produce somthing similar to what I
have above, probably like this

/dev/cdrom -> /dev/hdb1

here are the hd()....  The letter after hd represents the controller,
and the number after that represents the partition number.  (e.g. hdd5
is the fifth partition on the secondary slave)

hda - primary master
hdb - primary slave
hdc - secondary master
hdd - secondary slave

So when you were mounting your /dev/cdrom before you moved it, it was
probably on /dev/hdd1, and your symlink pointed to /dev/hdb1.  Deleting
/dev/cdrom, and re-linking it (ln -s $realpath $alias) to the apropriate
hd controller / partition should fix your problem.

HTH, any other questions feel free to email me as well,

Marc Childress
Rensselaer Polytechnic Institute, Troy NY
childm@rpi.edu



Lawn Greene wrote:
> 
> Hi!
> 
> I had exactly the same trouble.
> After moving the Cd-rom from the secondary Ide (as master) to
> the primary Ide (as slave) everything works okay.
> Don't know really what was the trouble begore, but since it
> works now thats okay with me.
>
Technical Details
Message-ID: <38D27719.36535560@rpi.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8965l3$5aa$1@kermit.esat.net> <896al2$stc$1@nnrp1.deja.com> <89ogta$hg7$1@kermit.esat.net> <89oh0e$hm3$1@kermit.esat.net> <38d26acd.307942@nntpserver.swip.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111240,1df486cca2d2101b
X-Google-Attributes: gid111240,public
X-Google-Thread: 102983,a73c7782e94325ef
X-Google-Attributes: gid102983,public
X-Google-Thread: f9b51,a73c7782e94325ef
X-Google-Attributes: gidf9b51,public
From: Marc Childress <childm@rpi.edu>
Subject: Re: mount /mnt/cdrom ==> the kernel does not recognize /dev/cdrom as a  block device
Date: 2000/03/17
Message-ID: <38D27719.36535560@rpi.edu>
X-Deja-AN: 598885718
Content-Transfer-Encoding: 7bit
References: <8965l3$5aa$1@kermit.esat.net> <896al2$stc$1@nnrp1.deja.com> <89ogta$hg7$1@kermit.esat.net> <89oh0e$hm3$1@kermit.esat.net> <38d26acd.307942@nntpserver.swip.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Rensselaer Polytechnic Institute, Troy NY, USA
Mime-Version: 1.0
Newsgroups: linux.redhat.misc,comp.os.linux.setup,aus.computers.linux