LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DVD-ROM Drive Location (https://www.linuxquestions.org/questions/linux-newbie-8/dvd-rom-drive-location-293896/)

Slayer097 02-23-2005 11:06 AM

DVD-ROM Drive Location
 
How do I figure out the location (/dev/...) of my DVD-ROM drive? Thanks.

satinet 02-23-2005 11:19 AM

Hello,

which kernel are you running?
if it's a 2.6X you will be using udev, which creates devices dynamically.....

The drive should already be in /dev/

is it not?

maybe it's /dev/hdc

you can link a file to /dev/hdc, but i don't see the point.

What problem are you having with the drive?

Slayer097 02-23-2005 11:23 AM

Well, I am trying to update my kernel (currently 2.4 to 2.6), and I am using the kernel on the Slack install CD. I know--I think--where the kernel is on the disk (/testing/packages/kernel26XXX or something like that), I just can't navigate to the DVD-ROM drive. BTW, I'm not running KDE or anything.

Slayer097 02-23-2005 11:46 AM

I tried cd /dev/hdc to see if that was the drive, but all I got back was "/dev/hdc is not a directory". Does anyone know how to navigate to a DVD-ROM in the console?

Slayer097 02-23-2005 12:17 PM

B-U-M-P

Sorry :(

detpenguin 02-23-2005 12:39 PM

can you mount it when you're in kde or gnome or such? if so, in command, try

mount /dev/hdd (or /dev/hdc, if thats where your dvd lives...)

cd /mnt/dvd

Itzac 02-23-2005 12:50 PM

You won't be able to cd directly into the device. What you need to do is mount the device to a directory. If you take a look in your /etc/fstab file, you should see a line that looks like
Code:

/dev/hdc  /mnt/cdrom iso9660 defaults,ro 0 0
If that's the case, then all you have to do as root is
Code:

mount /dev/hdc
cd /mnt/cdrom

and you should now be looking at the contents of your CD.

If the line is missing let us know and we'll help you out from there.

Slayer097 02-23-2005 12:52 PM

Finally figured it out.

In /etc/fstab it will tell you. From there I just mounted /dev/cdrom and navigated to mnt/cdrom.


All times are GMT -5. The time now is 11:00 AM.