changing the mountpoint for CD-ROM|RW
Hi
After installing debian sarge (net install) and upgrading to testing my
CD-ROM and CD-writer were correctly added to /etc/fstab:
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/hdd /media/cdrom1 iso9660 ro,user,noauto 0 0
However in /media there was only a 'corrupted' symlink /media/cdrom
to /media/cdrom0. /media/cdrom0 and /media/cdrom1 didn't exist.
I added these directories manually (as root) so /media/ now looks like:
m8ram@imladris:~$ ls -lh /media/
total 0
lrwxrwxrwx 1 root root 6 2004-12-17 20:12 cdrom -> cdrom0
drwxr-xr-x 2 root root 48 2004-12-30 19:35 cdrom0
drwxr-xr-x 2 root root 48 2004-12-30 19:35 cdrom1
lrwxrwxrwx 1 root root 7 2004-12-17 20:12 floppy -> floppy0
drwxr-xr-x 2 root root 48 2004-12-17 20:12 floppy0
I can mount CD's with mount /media/cdrom but I have to remember to use
ls -lh /media/cdrom0 to display the CD's contents because ls
-lh /media/cdrom simply shows:
m8ram@imladris:~$ ls -lh /media/cdrom
lrwxrwxrwx 1 root root 6 2004-12-17 20:12 /media/cdrom -> cdrom0
Is there a reason why I shouldn't remove the symlink /media/cdrom so I
can edit the dirs in /media to:
drwxr-xr-x 2 root root 48 2004-12-30 19:35 cdrom
drwxr-xr-x 2 root root 48 2004-12-30 19:35 cdwriter
Obviously I would have to edit /etc/fstab to:
/dev/hdc /media/cdrom iso9660 ro,user,noauto 0 0
/dev/hdd /media/cdwriter iso9660 ro,user,noauto 0 0
Are there apps that look for /media/cdrom(0|1) that would break after
these changes?
TIA
Bram
--
# Mertens Bram "M8ram" <bram-mertens@linux.be> Linux User #349737 #
# debian testing kernel 2.6.8-1-686 i686 512MB RAM #
# 17:22:29 up 15 days, 17:47, 13 users, load average: 0.67, 0.55, 0.45 #
Reply to: