/dev/cdrom is not a valid block device.

David A. De Graaf dad at datix.2y.net
Sun Aug 22 18:21:21 UTC 2004


On Tue, Aug 17, 2004 at 03:53:02PM +1000, Geoff Hacker wrote:
> Hi all,
> 
> I have upgraded from FC1 to FC2. Now I cannot access my CD-ROM drive.
> When I type 'mount /mnt/cdrom', it says '/dev/cdrom is not a valid
> block device.'
> 
> My investigations so far have included the following:
> 
> 2. 'cat /etc/fstab | awk /cdrom/' produces:
> 
> /dev/cdrom /mnt/cdrom udf, iso9660 noauto, owner, kudzu, ro 0 0 

This line has too many fields.  'man fstab' says there must be 6; 
you have 9.  It should be thus:

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


But you used awk, not grep, to extract the line.  Why?
Awk might (but doesn't in this case) introduce confusion.
Grep is simpler and more precise in this instance, eg

	grep cdrom /etc/fstab 

> 
> I have run out of things to try. Anyone else have any suggestions?

-- 
	David A. De Graaf    DATIX, Inc.    Hendersonville, NC
	dad at datix.2y.net    (828) 696-8646;  fax (828) 694-1037





More information about the fedora-list mailing list