LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   mounting a usb dvd writer (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-a-usb-dvd-writer-614533/)

gymnart 01-18-2008 09:51 AM

mounting a usb dvd writer
 
According to hwinfo --cdrom, the DVD writer is /dev/sr0
So I have the usb DVD writer mounted like:
mount /dev/sr0 /media/hpwriter

So now I can read what is on the DVD. Also, I have to remount the usb DVD drive each time I use it and I noticed that I have to umount before I can take the disk out. Should I add the DVD writer to the fstab entries if I want it to be mounted and unmounted automatically every time I use it?

I'm using SuSE 10.0.

So, my fstab entries are this:

Code:

cat /etc/fstab
/dev/hda2            /                    reiserfs  acl,user_xattr        1 1
/dev/hda1            swap                swap      defaults              0 0
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0
/dev/cdrecorder      /media/cdrecorder    subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/cdrecorder2    /media/cdrecorder2  subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0            /media/floppy        subfs      noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0
none                /subdomain      subdomainfs  noauto        0 0

So, would I add it like this?:
Code:

/dev/sr0            /media/hpwriter  subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
Can/should the dvd writer be turned on when I add the fstab entry?

I have another question:
Why is it that a usb pen-drive gets mounted automatically for reading and writing and unmounted automatically after closing the session but the DVD writer does not?

bigrigdriver 01-19-2008 10:38 PM

Quote:

Why is it that a usb pen-drive gets mounted automatically for reading and writing and unmounted automatically after closing the session but the DVD writer does not?
The pen drive has storage media that can be mounted immediately. The dvd drive does not. It can't be mounted if there is no disk in the drive. It can't be mounted if the disk in the drive contains music or video. It can only be mounted if the disk in the dive has a filesystem, such as an .iso or data files.

As far as adding an entry to fstab to automatically mount the drive, read my remarks above. With usb, in order to have a persistent mount in fstab, there is at least one file in /etc that you will have to edit to make the dvd mount point persistent, plus adding it to fstab. I can't put my fingers on the htm I used a couple of years ago in a similar situation.

www.google.com/linux is your friend. Search for usb and persistent mount points.


All times are GMT -5. The time now is 11:40 PM.