Ok, I had a chance to test this and was able to do what I had suggested (although on F7 and not FC6). Here's what I have:
- External 250GB USB hard drive with 2 ext3 partitions
- External USB floppy with vfat floppy disk
Now, without adding anything to /etc/fstab if I plug these in while booted and logged in the combination of hal and the desktop environment will detect they were plugged in and automatically mount them under /media/labelname. If the file system does not have a label I believe it mounts them as disk, disk-1, disk-2 etc as you mention. So I create the labels:
# e2label /dev/sdb1 hdpart1
# e2label /dev/sdb2 hdpart2
# dosfslabel /dev/sdc floppy
Now if I plug them in they get mounted as /media/hdpart1, /media/hdpart2, and /media/floppy. I realize that you want to have them automatically mounted at boot time so I added this to my /etc/fstab:
- Code: Select all
LABEL=hdpart1 /mnt/hdpart1 ext3 defaults 1 2
LABEL=hdpart2 /mnt/hdpart2 ext3 defaults 1 2
LABEL=floppy /mnt/floppy vfat defaults 1 2
and created my mount points:
# mkdir /mnt/hdpart1
# mkdir /mnt/hdpart2
# mkdir /mnt/floppy
Now I rebooted but they didn't get automatically mounted. I realized that the usb modules didn't get loaded since they were plugged in before the system was booted. So, I just added a /etc/sysconfig/modules/usb.modules script containing this:
- Code: Select all
#!/bin/sh
modprobe usb_storage
Don't forget to make it executable (chmod +x /etc/sysconfig/modules/usb.modules). Now when I reboot the partitions are mounted exactly where I want them without specifying what the underlying device name is (/dev/sdb1, /dev/sdc, etc). Again, this is F7 and not FC6 so I can't say for sure that this works the same way on FC6. I also am not sure if adding the /etc/sysconfig/modules/usb.modules script is the best way to load the usb module at boot, just the first thing that came to mind.