LinuxQuestions.org
Help answer threads with 0 replies.
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 09-11-2001, 03:09 AM   #1
forrest
LQ Newbie
 
Registered: Mar 2001
Distribution: Red Hat 7.0
Posts: 4

Rep: Reputation: 0
Question How could I find my device name?


I want to mount my cdrom in RH7 but I forget the device name, how should I do? is there any command to find the device name I used?
 
Old 09-11-2001, 03:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it should be listed in /etc/fstab. I'm not aware of any concrete way to find out which devices there are available, but assuming it's an IDE device it will be /dev/hdX x={a/b/c/d}. probably c in a standard MoBo configuration. Most device names such as /dev/cdrom are usually ( i think ) just soft links to the hdX device anyway. I'm not sure why my IDE cdrw is listed as a sd (scsi) device tho...
 
Old 09-11-2001, 04:57 AM   #3
forrest
LQ Newbie
 
Registered: Mar 2001
Distribution: Red Hat 7.0
Posts: 4

Original Poster
Rep: Reputation: 0
does dmesg work?

Another guy told me that use dmesg|grep cdrom, because my computer out of works now, I can not view the help system,I am not sure if it works.
if it does work, pls let me know
 
Old 09-11-2001, 05:43 AM   #4
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Acid_kewpie is right; the cdrom entry in /dev is just a symlink to the actual device. Just do
Code:
ls -l /dev/cdrom
The output will tell you, among other things, what device the link points to (hdc on my box). That information is only true if you haven't physically moved devices around on your IDE channels, of course. CD-ROM drives follow the same device-labelling convention as IDE hard drives: primary master= hda, primary slave= hdb, etc. I think IDE CD burners are different because they work under SCSI emulation in Linux (hence the "ide-scsi" entry in /etc/lilo.conf).

Last edited by DMR; 09-11-2001 at 06:04 AM.
 
Old 09-11-2001, 08:02 AM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Lightbulb

A bit off topic but...

I tend to have a line in /etc/fstab that contains the the noauto option so its doesn't attempt to mount at boot time, however associates /dev/hdd with /cdrom (or /mnt/cdrom or wherever takes your fancy), this way I can just issue mount /cdrom to mount the correct device to the correct directory... saves a bit of typing.

cheers

Jamie...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't find sound device WanglessOlasov Linux - Hardware 21 12-11-2005 10:56 AM
Find out which program is using which device d_dallis_gr Linux - Software 5 06-19-2005 11:39 PM
Kinternet - Cannot find device JimmySmith SUSE / openSUSE 0 01-01-2005 07:40 AM
cdrecord - can't find the device MD3 Linux - Software 2 09-28-2004 07:46 AM
How can I find out the name of a device? Norrin Linux - Newbie 6 08-17-2003 09:22 PM

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

All times are GMT -5. The time now is 01: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