Linux Newbie help
 help / color / mirror / Atom feed
* /dev/cdrom is not a valid block device?
@ 2003-04-03 12:35 Amin
  2003-04-03 15:44 ` pa3gcu
  2003-04-03 16:33 ` Ray Olszewski
  0 siblings, 2 replies; 4+ messages in thread
From: Amin @ 2003-04-03 12:35 UTC (permalink / raw)
  To: linux-newbie

Hi all,

Shortly after recompiling my kernel (ignoring numerous
warnings and errors therein), I tried to mount my CD drive
in the normal way:

mount /mnt/cdrom

But I'm getting a ``mount: /dev/cdrom is not a valid block
device''.  Does anyone have any idea why this is appearing?

Thanks,
Yawar Amin
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /dev/cdrom is not a valid block device?
  2003-04-03 12:35 /dev/cdrom is not a valid block device? Amin
@ 2003-04-03 15:44 ` pa3gcu
  2003-04-03 16:33 ` Ray Olszewski
  1 sibling, 0 replies; 4+ messages in thread
From: pa3gcu @ 2003-04-03 15:44 UTC (permalink / raw)
  To: Amin, linux-newbie

On Thursday 03 April 2003 12:35, Amin wrote:
> Hi all,
>
> Shortly after recompiling my kernel (ignoring numerous
> warnings and errors therein),

If you saw an "error" then your compile woul;d have stopped period, warnings 
on the otherhand do NOT stop a compile, i expect you think a warning is the 
same as an error however this is not the case when compiling a program or a 
kernel.

> I tried to mount my CD drive in the normal way:
>
> mount /mnt/cdrom
>
> But I'm getting a ``mount: /dev/cdrom is not a valid block
> device''.  Does anyone have any idea why this is appearing?

You have forgotten to include cdrom support as per the CDROM-HOWTO.
Or simply no iso9660 or cdrom support in your kernel or compiled as modules.

I cannot say more as you did not say if the device is a SCSI device IDE or 
whatever.

>
> Thanks,
> Yawar Amin
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

-- 
Regards Richard
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /dev/cdrom is not a valid block device?
  2003-04-03 12:35 /dev/cdrom is not a valid block device? Amin
  2003-04-03 15:44 ` pa3gcu
@ 2003-04-03 16:33 ` Ray Olszewski
  2003-04-04  4:45   ` Amin
  1 sibling, 1 reply; 4+ messages in thread
From: Ray Olszewski @ 2003-04-03 16:33 UTC (permalink / raw)
  To: Amin, linux-newbie

At 06:35 PM 4/3/2003 +0600, Amin wrote:
>Hi all,
>
>Shortly after recompiling my kernel (ignoring numerous
>warnings and errors therein), I tried to mount my CD drive
>in the normal way:

It is normal to get manay, many **warnings** while compiling a kernel. But 
if you got **errors**, you better go back and look at them. (Personally, I 
doubt you really did get errors, since they are supposed to cause the 
compile process to abort ... you cannot, in practice, "ignore" actual 
errors. But since I can't see through your eyes, I have only what you wrote 
to go on.)

>mount /mnt/cdrom
>
>But I'm getting a ``mount: /dev/cdrom is not a valid block
>device''.  Does anyone have any idea why this is appearing?


The most likely cause is that you omitted some kernel driver needed to 
access the device when you recompiled your kernel.

Next most likely is that you compiled what you needed as a module, but the 
module is not loading. Check either /etc/modules or /etc/modules.conf (or 
maybe /etc/conf.modules ... distros vary a bit here) to see that you are 
loading everything you need to.

Next is that there is something wrong with the /dev/cdrom symlink. What 
does it point to, and is that the right real device? (BTW, I am assuming 
there is a CD with an iso9660 filesystem in the drive when you try to mount.)

Last (and least likely) is a problem in /etc/fstab. What does the line for 
/mnt/cdrom look like?

It is also possible that you missed some step in the process of 
configuring, compiling, and installing the kernel. Since your prior message 
indicated that you successfully installed the NIC module, I'm classing this 
as a remote possibility.

Like Richard, I cannot be more specific without knowing:

A. What sort of CD-ROM drive is involved (ATAPI, SCSCI, one of the ones 
that requires a special driver).

B. Where is it really mounted (not just a symlink).

C. What kernel options you selected relevant to whatever sort of drive it 
is. (For example, if it is an ATAPI drive, did you select "ide-cd" support 
when configuring the kernel?)

D. The basics: what distro, what version, and what kernel version.



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /dev/cdrom is not a valid block device?
  2003-04-03 16:33 ` Ray Olszewski
@ 2003-04-04  4:45   ` Amin
  0 siblings, 0 replies; 4+ messages in thread
From: Amin @ 2003-04-04  4:45 UTC (permalink / raw)
  Cc: linux-newbie

On Thu, Apr 03, 2003 at 08:33:04AM -0800, Ray Olszewski
wrote:

> The most likely cause is that you omitted some kernel
> driver needed to access the device when you recompiled
> your kernel.

Ray, that was it exactly.  I did indeed somehow manage to
leave out support for my CD-ROM drive during the creation of
the kernel configuration file.  I guess this just goes to
show that we have to be very careful when doing that.  The
option I think I left out by mistake was ``ATA/IDE/MFM/RLL
support ---> IDE, ATA and ATAPI Block devices ---> Include
IDE/ATAPI CDROM support''.

Anyway, I recompiled again, making doubly sure that
everything was in order this time.  I had previously gone to
the CDROM-HOWTO, as Richard suggested, and decided that
recompilation was the first thing to do.

Barring a few hitches, I got the new kernel working, and now
I've got CD-ROM support as well.  Thanks, everybody!

Yawar Amin
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-04-04  4:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-03 12:35 /dev/cdrom is not a valid block device? Amin
2003-04-03 15:44 ` pa3gcu
2003-04-03 16:33 ` Ray Olszewski
2003-04-04  4:45   ` Amin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox