LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-12-2006, 10:14 AM   #1
mathewzhao
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Rep: Reputation: 0
why can't I find /dev/cdrom


I want to use my CDROM driver by the following command:
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
However,it doesn't work.
At last,I found /dev directory doesn't exist cdrom file at all.
So,could anyone tell me how to find cdrom under /dev? (I guess it changes a new name )

Have a nice day
 
Old 07-12-2006, 10:25 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
/dev/cdrom is a link to the real device, e.g. /dev/hdx.
In my system it is the master device on the second IDE controller.
Code:
[root@gold ~]# ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 Jul 12 04:55 /dev/cdrom -> hdc
[root@gold ~]#
You need to found yours. The best way is look the files named /proc/ide/*/model.
Mine is
Code:
[root@gold ~]# cat /proc/ide/hdc/model
TSST CD-RW/DVD-ROM TSH492B
[root@gold ~]#
so my cdrom is hdc as I told you.

After you know what device is your cdrom, create the proper link with the command:

Code:
cd /dev
ln -s hdx cdrom
ln -s hdx cdrw
ln -s hdx dvd
of course, you don't need links to cdrw and dvd. It is just a hint.
 
Old 07-12-2006, 10:29 AM   #3
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
/dev/cdrom is usually a link to /dev/hdb, /dev/hdc or /dev/hdd depending on which interface your drive is mounted on. Use the command `dmesg | grep ATAPI` to show you the drives and their devices, then make a link from the device file to /dev/cdrom using the utility ln (take a look at `man ln`). Once you have /dev/cdrom linked to /dev/hd* then you can mount /dev/cdrom on /mnt/cdrom.
 
Old 07-12-2006, 12:51 PM   #4
Waggs
LQ Newbie
 
Registered: Feb 2003
Location: SC
Distribution: Slackware, Zenwalk, Mepis
Posts: 16

Rep: Reputation: 0
Is the drcom listed in /etc/Fstab/? The only time I've had issues with the mount /dev/xyz was when the device was not lited in /Fstab/...
 
Old 07-12-2006, 01:29 PM   #5
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
It wouldn't necessarily need to be in his /etc/fstab. He can mount it using something like ` mount -t iso9660 /dev/hdx /mnt/cdrom` or `mount -t iso9660 /dev/cdrom /mnt/cdrom`. But you are right in implying that once he has the link set up between /dev/hdx and /dev/cdrom, he could put a line in his /etc/fstab something like this:

/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro,exec 0 0
 
Old 07-12-2006, 02:07 PM   #6
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
Please post the output of these 2 commands
Code:
dmesg | grep CD
Code:
dmesg | grep ide
 
Old 07-12-2006, 07:04 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Also, you can only mount a CD when it contains a data disk. Trying to mount an empty drive, or an audio CD will fail. There's nothing to mount if it's empty, and audio CD's lack a valid filesystem. In other words, the difference between Windows and Linux in this regard is that Windows will always show the "D:\" drive (regardless of whether there's anything in it) but Linux will show it only when it contains a data CD and it has been mounted.
 
Old 07-13-2006, 08:14 AM   #8
Hondro
Member
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102

Rep: Reputation: 15
The output of commands: "dmesg | grep CD" and "dmesg | grep ide"

Quote:
# dmesg | grep CD:
hdd: TEAC DW-548D, ATAPI CD/DVD-ROM drive
hdd: ATAPI 48X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Quote:
# dmesg | grep ide:
BIOS-provided physical RAM map:
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0: BM-DMA at 0x4000-0x4007, BIOS settings: hdaio, hdbio
ide1: BM-DMA at 0x4008-0x400f, BIOS settings: hdcio, hddio
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hdd: attached ide-cdrom driver.
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,6), internal journal
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,5), internal journal

Last edited by Hondro; 07-13-2006 at 08:16 AM.
 
Old 07-13-2006, 08:53 AM   #9
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
Quote:
The names of orginal poster and the poster of "output the 2 commands" are different??
Alright, then the device file for your CDROM is /dev/hdd
1) Make a directory /mnt/cdrom
Code:
mkdir /mnt/cdrom
2) Your /etc/fstab must have this line
Code:
/dev/hdd   /mnt/cdrom   auto   ro,noauto,user,exec  0 0
In place of auto, we can use iso9660 also, but auto is recommended.
3) Insett any CD with some data (necessary) in the CD drive and run this command
Code:
mount -a
4) If you don't get any errors, then u r done. See if can access the files on CD
Code:
ls /mnt/cdrom

Last edited by manishsingh4u; 07-13-2006 at 09:01 AM.
 
Old 07-13-2006, 09:00 AM   #10
contiguous
LQ Newbie
 
Registered: Jul 2006
Location: Palestine
Distribution: Red Hat Enterprise Linux V.4
Posts: 8

Rep: Reputation: 0
The default mount folder is mentioned in the man page of 'mount'. Try to review it there.
 
Old 07-13-2006, 09:19 AM   #11
mathewzhao
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you!
My cdrom doesn't list in /etc/fstab/,and I had found my cdrom is /dev/hdc.

However,when I type the following command,
mount /dev/hdc /mnt/cdrom
(or: mount -t iso9660 /dev/hdc /mnt/cdrom)

I get error messages:
hdc:driver not present
hdc:driver not present
mount:Mounting /dev/hdc on /mnt/cdrom failed:No such file or address

Could anyone exlpain the error messages?
 
Old 07-13-2006, 09:57 AM   #12
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
try adding this to your fstab
/dev/cdrom /mnt/cdrom auto ro,noauto,owner,user 0 0 :wq
 
Old 07-13-2006, 10:42 AM   #13
mathewzhao
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Original Poster
Rep: Reputation: 0
I had added the following line to /etc/fstab and reboot
/dev/hdc /mnt/cdrom auto ro,noauto,user,exec 0 0
,but nothing happen!

Last edited by mathewzhao; 07-13-2006 at 12:01 PM.
 
Old 07-13-2006, 11:16 AM   #14
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
try changing /dev/hdd to /dev/cdrom
 
Old 07-14-2006, 08:48 AM   #15
Waggs
LQ Newbie
 
Registered: Feb 2003
Location: SC
Distribution: Slackware, Zenwalk, Mepis
Posts: 16

Rep: Reputation: 0
So after editing your /etc/fstab, you rebooted and attempted to *mount /cdrom, and nothing happened? Or were you expecting it to auto mount on reboot?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 05:46 PM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 08:11 PM
/dev/cdrom constantly linked to /dev/hdd r_jensen11 Linux - Hardware 6 09-24-2004 02:51 PM
mounting CD, CDRW... /dev/cdrom -> /dev/hda kersten78 Slackware 9 09-24-2004 12:53 AM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:03 AM.

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