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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-11-2001, 03:09 AM
|
#1
|
LQ Newbie
Registered: Mar 2001
Distribution: Red Hat 7.0
Posts: 4
Rep:
|
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?
|
|
|
09-11-2001, 03:32 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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...
|
|
|
09-11-2001, 04:57 AM
|
#3
|
LQ Newbie
Registered: Mar 2001
Distribution: Red Hat 7.0
Posts: 4
Original Poster
Rep:
|
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
|
|
|
09-11-2001, 05:43 AM
|
#4
|
Member
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986
Rep:
|
Acid_kewpie is right; the cdrom entry in /dev is just a symlink to the actual device. Just do 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.
|
|
|
09-11-2001, 08:02 AM
|
#5
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 01:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|