I created a mountpoint of /mnt/mediaStorage and chmodded it 755.
I then plugged in a Verbatim Store N Go usb flash drive. When I looked at dmesg, my sda line was:
mounting the sda1 partition failed. mounting the sda5 partition succeeded and it contained my media files.
Code: Select all
sda: sda1 < sda5 >
However, I know that my friends don't have the same usb drives. If I plug in a different USB drive, it doesn't give me the < sda5 > bit and instead just gives me sda1.
This will cause me problems I think! If I set my fstab entry to mount sda5 to /mnt/mediaStorage then when I pass my saved image on to my friends, their USB drives won't mount if they only have sda1!
Also what if my drive is FAT32 (it is) and theirs is ntfs? They are totally non-technical and just want to be able to plug and play. They also want to be able to change USB drives around so they can have some with films, some with music, some with both...
Is the only solution for me to have an fstab with an entry for every possible sda from, say, 1 to 9 and the same for sdb in case they plug in two drives at once? So I would have /mnt/mediaStorage1 through to /mnt/mediaStorage18 to cope with sda1->sda9 and sdb1->sdb9?
Seems massively inefficient but I can't see how I can set it up any other way so that the system can serve up every possible drive plugged in, whether usb flash in fat32 through to USB HDD in ntfs or even ext3 or ext4.
Am I missing a trick here? I'm a windows person not Linux so it's all a bit confusing!