Quote:
Originally posted by ssabljic
This is my fstab
Code:
/dev/hda5 / ext3 defaults 1 1
/dev/hda1 /mnt/hd/disc-c ntfs ro,users,uid=1000,gid=100,umask=666 1 0
/dev/hda6 /mnt/hd/disc-d vfat ro,users,uid=1000,gid=100,umask=666 1 0
/dev/cdrom /mnt/cdrom auto noauto,owner,ro,users 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,users 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults
|
First, your device
/dev/cdrom actually is a symbolic link to the real device. Try to see what it points to (mostly with IDE drives, that will be /dev/hdb or /dev/hdc or /dev/hdd). Run
.
Now you know what your DVDRW is: it is the device that /dev/cdrom is pointing to. You say that this link should rather be pointing to your CDRW drive instead... that would be nicer indeed.
So, the next thing would be to discover what device is your CDRW? You can run the command
and look in the output if you can discover the device name of the CDRW, or perhaps you already know it. Remember, in the Linux console you can scroll up by using
<SHIFT><PgUp> and
<SHIFT><PgDn> keys. In an X terminal such as Konsole, scrolling back will be much easier of course.
Now, for the sake of example, suppose that your CDRW drive is
/dev/hdb and the DVDRW drive is
/dev/hdd . If yours are different, you just substitute the correct device names in the examples that follow.
First, create the correct links to the two drives, we will call the CDRW
/dev/cdrom and the DVDRW
/dev/dvd .
Run these commands as user root:
Code:
cd /dev
ln -sf hdb cdrom
ln -sf hdd dvd
Now, you have two correctly pointing symbolic links. Verify that by running:
Code:
ls -l /dev/cdrom
ls -l /dev/dvd
Also, create the mount point for your DVD drive if it does not yet exist:
Finally, this is what your
/etc/fstab file should look like if you want to use the DVD and CD drive, and also get write permissions on your D-drive (FAT32):
Code:
/dev/hda5 / ext3 defaults 1 1
/dev/hda1 /mnt/hd/disc-c ntfs ro,users,uid=1000,gid=100,umask=000 1 0
/dev/hda6 /mnt/hd/disc-d vfat rw,users,uid=1000,gid=100,umask=000 1 0
/dev/cdrom /mnt/cdrom auto noauto,owner,ro,users 0 0
/dev/dvd /mnt/dvd auto noauto,owner,ro,users 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,users 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults
Hope this helps a little.
Also, if you run a 2.4 kernel, you might have to use ide-scsi for the CD and DVD writer, to be able and burn CD's and DVD's with them (the devices will get a SCSI name like /dev/sr0 and /dev/sr1). The following line should be placed in the top section of /etc/lilo.conf:
Code:
append=" hdb=ide-scsi hdd=ide-scsi"
Please remember to use the correct device names here, I only use hdb and hdd as examples. After modifying /etc/lilo.conf you will need to run the "lilo" command and then reboot:
With 2.6 kernels, you can use the ATA driver (the drives keep their name hdb hdd etc...)