Multiple USB drives with Fedora Core 8

| |

I ran into a problem recently with needing more external storage for my home server and hopefully the solution will help someone else.

Being the packrat that I am, I ran out of disk space to store my Mythtv recordings, pictures, and backups. No problem, a quick run down to Costco and an hour later I had two shiny new 500GB USB drives to go with the old 150GB USB drive I already had.

I plugged them in, slapped an OS on them, and threw some data on them for testing. It was just happenstance that I had just updated my kernel and had to reboot. Damned if the drives didn't change places and end up on the wrong mount points. MythTV doesn't record well when it can't find its directories. I first blamed the Scotch, but luckily found a solution that didn't involve my quitting drinking.

1. Get the volume’s UUID (universally unique identifier) for the drive (e.g. /dev/sdd1):

/lib/udev/vol_id –uuid /dev/sdd1

2. Use that UUID in /etc/fstab to identify the drive(s) and mount point(s):

UUID=a2c0a99e-e70d-476d-ae34-c5154f451182 /usr/local/mythtv ext3 defaults 1 2

3. Mount the drives to test your fstab entry.

mount -a

I haven't had any problems with the correct drive on the proper mount point since. I was a little worried about using MythTV on external USB drives, but it still works great.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Thanks

That saved my bacon. e2label doesn't do much good when you're running JFS filesystems.


Scott Dowdle's picture

Don't forget e2label

Martin,

You can also label your partitions and use those labels with grub and fstab. Red Hat has been doing that for a long time and some people have found it to be irritating... but the main reason they use it is to avoid the issue that you described.

How to use labels, I'll leave as an exercise for the reader. :)


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.