Troubles with /home when additional HDD attached

Sources http://forum.ubuntu.ru/index.php?topic=116435.0



You might have a trouble with your home partition unabled to be found when another hard drive being attached to your system. The problem can be solved by pointing partitions ids in /etc/fstab. At first get some information about your drives:

cat /etc/fstab
sudo fdisk -l
sudo blkid

Now make appropriate changes to /etc/fstab:

sudo gedit /etc/fstab

It will look like:

UUID=cc96b3f8-657d-4be3-bb58-61e57554bbd1 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda6 during installation
UUID=3a3b37dc-61d0-4d30-88b4-dba06f9252cd /home           ext4    defaults        0       2
# /media/asutp was on /dev/sda7 during installation
UUID=363d7f28-0ec9-4f1c-bf93-f366a1f96b5e /media/asutp    ext4    defaults        0       2
# swap was on /dev/sda5 during installation
UUID=050e35b8-bf87-49b0-9114-9aa6dd7e65a4 none            swap    sw              0       0