While reading this post, you may feel that this question has been asked many times before, but given the different types of situations in all those threads, I'm not quite sure which set of instructions to follow, so I hope you can help me out here.
While installing Ubuntu (trusty), I put / (~ 10GB) and /home (~230 GB) on separate partitions. But only today did I realise, after / started running out of space quickly, that my current home directory (/home/navneeth) is within the / partition and that the separate home (/media/navneeth/a7775a8b-8cbd-445b-a05d-284226b3c3aa/navneeth) is virtually empty. So, how should I proceed to move my files from the first to the second without all the app configurations going awry?
https://askubuntu.com/a/473923/422985 seems like the easiest solution. Would it work? Is there a method that's 'cleaner'? By which I would like to know if there's a way to make the correct home directory the 'go-to' home henceforth.
navneeth@home:/boot$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda7 9.3G 8.8G 62M 100% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 994M 4.0K 994M 1% /dev tmpfs 201M 1008K 200M 1% /run none 5.0M 0 5.0M 0% /run/lock none 1003M 512K 1003M 1% /run/shm none 100M 56K 100M 1% /run/user navneeth@home:~$ sudo fdisk -l Disk /dev/sda: 300.1 GB, 300067970560 bytes 255 heads, 63 sectors/track, 36481 cylinders, total 586070255 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xd6edd6ed Device Boot Start End Blocks Id System /dev/sda1 * 63 114688034 57343986 7 HPFS/NTFS/exFAT /dev/sda3 114690046 586070015 235689985 5 Extended /dev/sda5 582070272 586070015 1999872 82 Linux swap / Solaris /dev/sda6 134690816 582070271 223689728 83 Linux /dev/sda7 114690048 134688767 9999360 83 Linux Partition table entries are not in disk order navneeth@home:/boot$ sudo du -hs /* [sudo] password for navneeth: 9.3M /bin 63M /boot 4.0K /cdrom 4.0K /dev 13M /etc 3.9G /home 0 /initrd.img 0 /initrd.img.old 389M /lib 16K /lost+found 8.0K /media 4.0K /mnt 356M /opt du: cannot access ‘/proc/1948/task/1998/fdinfo/43’: No such file or directory du: cannot access ‘/proc/1948/task/1998/fdinfo/80’: No such file or directory du: cannot access ‘/proc/1948/task/2074/fd/81’: No such file or directory du: cannot access ‘/proc/7123/task/7123/fd/3’: No such file or directory du: cannot access ‘/proc/7123/task/7123/fdinfo/3’: No such file or directory du: cannot access ‘/proc/7123/fd/3’: No such file or directory du: cannot access ‘/proc/7123/fdinfo/3’: No such file or directory 0 /proc 208K /root du: cannot access ‘/run/user/1000/gvfs’: Permission denied 1.6M /run 12M /sbin 4.0K /srv 0 /sys 40K /tmp 3.5G /usr 518M /var 0 /vmlinuz 0 /vmlinuz.old