Two general points. For removable drives, don't use the device node in your fstab file. Use the UUID for that device instead. Then if the device is /dev/sde1 one time and /dev/sdd1 the next, it will still mount.
The first column should look like:
UUID=14D23645D2362AFE
Unfortunately, the udevinfo program may not be available anymore. It was easier to use and didn't need to be run as root. Here I am learning the UUID of a partition using the "udevadm" program:
sudo /sbin/udevadm info --query=all --name=/dev/sda1
P: /devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1
N: sda1
W: 16
S: block/8:1
S: disk/by-id/ata-TOSHIBA_MK2049GSY_48CYT01OT-part1
S: disk/by-id/scsi-SATA_TOSHIBA_MK2049G_48CYT01OT-part1
S: disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part1
S: disk/by-uuid/14D23645D2362AFE
I only need to do this once however. You could also list "/dev/disk/by-uuid/" to learn this information.
The second point is that you can't mount audio CDs. Audio CDs do not have filesystems.
Last edited by jschiwal; 01-14-2010 at 07:10 AM.
|