[ubuntu-za] Home Directory on Wrong Partition

Wesley Werner wesley.werner at gmail.com
Sat Apr 26 06:33:20 UTC 2014


On Sat, 26 Apr 2014 01:16:07 +0200
Marius Kruger <amanic at gmail.com> wrote:

> Here is an example from my /etc/fstab:
> UUID=20e48712-3b8f-4546-9d99-135d667143c0 /home    ext4    defaults
>  0       2

Also you can see the UUID you need by using 'ls -l /dev/disk/by-uuid/'.

UUID's are nice because they stay the same when you add or remove disks
to a PC, whereas the /dev/sdxn assignment may change.

Also Bill you old home dotfiles, all files that begins with a '.',
store configs for you apps, and if you experience weird application
behaviour it is due to old configs not being compatible with newer app
versions.

A safest bet is to copy them all to a temporary location for safe
keeping, in case you need some of them, and replace them with the
ones from your newest install. If you wish to do this, here are some
steps:

Mount your old home partition temporarily to somewhere
like /mnt/oldhome, then back up the old config files with:

mkdir /mnt/oldhome/_old-dotfiles && \
cp -vr ~/.??* /mnt/oldhome/_old-dotfiles/

...that should copy them to "_old-dotfiles" in your old home. 

Then update the old configs with the new ones:

cp -vr ~/.??* /mnt/oldhome/

Update fstab and reboot. If you miss any important settings you can
locate them in ~/_old-dotfiles, and after 4 weeks if you are happy with
how things are running you can safely delete ~/_old-dotfiles.

Cheers
Wes



More information about the ubuntu-za mailing list