LINUX DVD Drive question...

Moonark

Senior member
Oct 9, 1999
387
0
0
Does anyone know how I can change my linux configuration from /dev/cdrom to /dev/dvd? I have a DVD drive in my linux system, but for some reason it keeps showing up as /dev/cdrom. I have some DVD players and utilities installed but they need to access /dev/dvd. By manually selecting /dev/cdrom the programs crash. I was just wondering if the configuration could somehow be changed to reflect /dev/dvd and getting rid of /dev/cdrom. I can read the files on the DVD's that I put in the drive, but I just can't do anything with them.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
rm /dev/cdrom
ln -s /dev/hdc /dev/dvd

Or something like that. Basically create a symlink to the same device that /dev/cdrom was pointing to, but name this one dvd instead.
 

SinNisTeR

Diamond Member
Jan 3, 2001
3,570
0
0


<< rm /dev/cdrom
ln -s /dev/hdc /dev/dvd

Or something like that. Basically create a symlink to the same device that /dev/cdrom was pointing to, but name this one dvd instead.
>>



i wanted to to that as well.. but my linux partition is hdf5... so it would be like this for me instead right?

rm /dev/cdrom
ln -s /dev/hdf5 /dev/dvd

but i have a burner and a dvd.. and they both show up as cdroms. how do i specify which is the dvd? and can you do this aswell with the burner?

rm /dev/cdrom
ln -s /dev/hdf5 /dev/cdrw? o_O

thanks. and sorry for stealing your thread :eek::eek:
 

Buddha Bart

Diamond Member
Oct 11, 1999
3,064
0
0
umm.... no. (but i think you typo'd)

try to keep this in mind, "h" "d" "letter" "number" is how linux keeps track of items on the IDE Bus. Anything like /dev/dvd or /dev/cdrom is nothing but a symbolic link to one of those, for the purpose of making your life a little easier. So if you ever want to arrange/change them, you are free to delete the symlinks, and make your own.

to figure out what letter your dvd drive is, look at how you cabled it.
Primary Master = hda
Primary Slave = hdb
Secondary Master = hdc
Secondary Slave = hdd
Tertiary Master = hde
Tertiary Slave = hdf
and so on...

right now, your system probably has a symlink for your cdrom already (type "ls -l /dev | grep cdrom" to see)

once you understand that the /dev/dvd and whatever are just symlinks to a device, you'll see how you're free to create your own. I could make /dev/yourmom link to my porn partition.

So, Moonark you can just do this
"ls -l /dev | grep cdrom" then take the "hdX#" it puts out and type
"ln -s /dev/hdX# /dev/dvd"
I suggest you leave /dev/cdrom there, as some programs will probably expect it, and it does no hard to have the two links.

Sinister:
You would need to find out where on the IDE bus each of your drives is connected to, and then using that, determine what thier hdX# is.
From there you can make your own symlinks just like above.



bart <edit> you'll notice there is no # for a cdrom device, thats because CD's don't have partitions, so just type in the hdX sans any trailing number </edit>