
The Issue:
You have external USB drives that you want to be mounted the same way every time, but the /dev/sdX device name keeps changing.
The Solution:
First, unmount the drive:
$ sudo umount /media/disk
Then, look in /dev/disk/by-id to find the correct device file:
/dev/disk/by-id/usb-WDC_WD30_00JB-00KFA0_DEF107679C83-0:0-part1
Add this to /etc/fstab:
/dev/disk/by-id/usb-WDC_WD30_00JB-00KFA0_DEF107679C83-0:0-part1 /mnt/data01 ext3 defaults 0 0
Create the mountpoint:
$ sudo mkdir /mnt/data01
Mount the volume:
$ sudo mount /mnt/data01
Now, this device should always be mounted on /mnt/data01.
One thing that I really enjoy is to be able to watch my DVDs from any computer in the house, or from (almost) any of the TVs, without having to deal with physical media. The way I do this is to “rip” the movies to my media server, and then transcode them to a smaller format. This guide will discuss part one of this — ripping a DVD. I know there are several utilities which will do this for me, but since I have very specific needs, and like things to be as automated as possible, I wrote a script to do this (naturally).
Recent Comments