LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-13-2004, 07:37 PM   #1
a52b52
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
can't mount /dev/cdrom no matter what I do


I have a Redhat Linux 2.4 server. I can't mount /dev/cdrom using this command: mount -t iso9660 /dev/cdrom /mnt/cdrom

I get a "not a block device" error. I have substituted everything from hda-c, sda-c, sr0-3, scd etc.. as device names and still no luck.

fstab file looks like:
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0

I type : ls -l /dev/cdrom and it is a symbolic link to /dev/hda but using /dev/hda doesn't work either.


What am I missing - Thanks
 
Old 05-13-2004, 09:25 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
For the cdroms and floppy drive I just use the second part...

mount /mnt/cdrom
mount /mnt/cdrom1
mount /mnt/floppy

umount /mnt/cdrom
umount /mnt/cdrom1
umount /mnt/floppy
 
Old 05-13-2004, 09:35 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,696

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Is this a new install?
Used to work but now it doesn't?
Changed anything lately?

Check the output of dmesg. Look for any messages relating to the CD drive.
 
Old 05-13-2004, 10:03 PM   #4
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
are you trying to mount this as root or user???
change fstab line to read..........
Code:
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,users,ro 0 0
 
Old 05-14-2004, 12:10 AM   #5
bluej
LQ Newbie
 
Registered: Mar 2004
Location: japan
Distribution: debian
Posts: 24

Rep: Reputation: 15
have a look at /proc/devices, particularly the lines below "Block devices:".
the first column is the major number, the second is the device group.
For example, my system has two IDE block devices, so i see:
...
Block devices:
3 ide0
22 ide1

the major number helps you find the right device to use to access your devices.
for example, if i do ls -l /dev/hd?, i get:
...
brw-rw---- 1 root disk 3, 0 2002-03-15 06:51 /dev/hda
brw-rw---- 1 root disk 3, 64 2002-03-15 06:51 /dev/hdb
brw-rw---- 1 root disk 22, 0 2002-03-15 06:51 /dev/hdc
brw-rw---- 1 root disk 22, 64 2002-03-15 06:51 /dev/hdd
brw-rw---- 1 root disk 33, 0 2002-03-15 06:54 /dev/hde
brw-rw---- 1 root disk 33, 64 2002-03-15 06:54 /dev/hdf
...
here, the number in the 5th column (after "disk") indicates the major number, from which it is clear that i need to use either /dev/hda or /dev/hdb for the first IDE drive, and either /dev/hdc or /dev/hdd for the second IDE drive.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CDROM refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 10:43 PM
mount /dev/hdc /dev/cdrom doesn't work ShrikesHarvest Linux - Newbie 10 02-21-2009 07:05 AM
I get mount: /dev/cdrom: can't read superblock, How to fix? zLinuxz Linux - General 12 06-18-2008 02:42 AM
mount: /dev/cdrom: can't read superblock raynmune Linux - Hardware 7 07-09-2005 04:02 PM
Help mount usb to same /dev no matter which order plugged in. Brian1 Linux - Hardware 1 10-05-2004 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration