Search This Blog

Sunday 19 September 2010

Ubuntu: Mount points

A combination of an upgrade to Lucid and setting up a new home partition meant that I needed to sort out how drives were mounted.

First stage, as advice suggested I would be best to mount drives by UUID, was to use the command:


$ ls -la /dev/disk/by-uuid/

Then to work through etc/ fstab. This took several iterations, and reference to http://ubuntuforums.org/showthread.php?t=283131 and https://help.ubuntu.com/community/MoveMountpointHowto

Within a relatively short period of time, the 1TB drive and the 102GB drive were mounting perfectly each time. But home just would not. Repeatedly. Until, finally, I realised there was an "8" missing from the end of the UUID. Added this to fstab, and success!

This is the revised, working, /etc/fstab:

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#                                            

# swap was on /dev/sda5 during installation
UUID=ae74bd28-c1a4-4b47-a5fe-f9526e134a59  none            swap    sw                                 0  0 

# /sdc1
UUID=54c66aed-9cb1-4253-b718-172a75b1de28  /media/sdc1  ext3    relatime,errors=remount-ro         0  1

# /home
UUID=6b7511e6-5ece-47a3-94c1-0aa5f91fe4f8  /home          ext2    nodev,nosuid,relatime            0  2

# /sda1 - the 120GB drive with videos
UUID=14075d78-b883-47c2-a7ef-4898f1dab9f7 /media/sda1      ext3    defaults                           0  0 

# /sdb1 - the 1TB drive
UUID=7ba6e23a-2b1f-4e65-b735-ff4724e1c2d5 /media/1TB     ext3     user,grpid,suid,dev,exec,relatime  0  0 

proc                       /proc         proc       defaults                           0  0 

# Uninstalled / unmounted drives

# No CD present
#/dev/scd0                                 /media/cdrom0     udf,iso9660  user,noauto,exec,utf8              0  0 

# No floppy present
#/dev/scd0                                 /media/floppy0    auto         rw,user,noauto,exec,utf8           0  0