So I’ve been at school leading a few events so I’ve finally returned to my desk. I should be around a lot more next week. I wanted to post a solution to a simple problem people have:
Many people have partitions mounted in their fstab as such:
/dev/hda1 /mnt/BSDPartition ext3 auto 0 0
However, the use of hd*, sd*, is not the proper way to mount partitions, but rather byUUID. I had always used /dev/hda1 to mount a partition because I didn’t know how to make a UUID. Turns out its rather easy in the command line. If I list the partitions, I get something like this:
freddy@sepa:~$ sudo fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 1 22568 181277428+ 83 Linux
/dev/sda2 22569 30349 62500882+ 83 Linux
/dev/sda3 30350 30401 417690 82 Linux swap / Solaris
My music, video, document partition is /dev/sda1 so I do the following:
freddy@sepa:~$ sudo vol_id /dev/sda1
I can then take the line and add something like this in /etc/fstab:
UUID=1ced8e6e-7ee4-450e-b572-012386e1dfc8 /mnt/BSDPartition ext3 auto 0 0
Warning: Use at your own risk, I am no expert at anything so I’m not liable for you messing up your system.
Also, you might notice the host name, there was talk about this on Aaron’s blog. All my computers are named after medical diseases.