This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[SOLVED] reinstall OS while reducing root and boot

carmar

Mon May 18, 2020 3:42:47 pm

I'm trying to increase space for /home on my wife's laptop by doing a reinstall of the OS (Core). I was frivolous with the original install. The only requirement is that I maintain the files in her existing /home partition.

The partitions:
Filesystem Size Used Avail Use% Mounted on
udev 3.8G 0 3.8G 0% /dev
tmpfs 780M 1.7M 778M 1% /run
/dev/sda2 94G 9.2G 80G 11% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/loop1 55M 55M 0 100% /snap/core18/1705
/dev/loop0 47M 47M 0 100% /snap/minetest/1370
/dev/loop3 49M 49M 0 100% /snap/minetest/1521
/dev/loop2 94M 94M 0 100% /snap/core/9066
/dev/loop4 63M 63M 0 100% /snap/gtk-common-themes/1506
/dev/loop5 102M 102M 0 100% /snap/p7zip-desktop/220
/dev/loop6 256K 256K 0 100% /snap/gtk2-common-themes/5
/dev/loop9 94M 94M 0 100% /snap/core/8935
/dev/loop7 55M 55M 0 100% /snap/core18/1754
/dev/loop8 55M 55M 0 100% /snap/gtk-common-themes/1502
/dev/loop10 256K 256K 0 100% /snap/gtk2-common-themes/9
/dev/sda1 96G 6.4M 96G 1% /boot/efi
/dev/sda4 714G 636G 42G 94% /home
tmpfs 780M 44K 780M 1% /run/user/1000

If following viewtopic.php?f=6&t=14472 , I do the following:
1. not format the /home but label it as /home
2. reduce / to 20~30GB
3. reduce /boot/efi to 50MB
How would I reallocate the 70~80GB+95.9GB from /root and /boot to the new /home? Is this even possible? If not, would she at least be able to access the freed up space as an additional mounted volume?

Swarfendor437

Mon May 18, 2020 8:25:12 pm

Hi, to resize partitions you would have had to select LVM at point of original install! I personally never use LVM as there have been cases where it can cause problems. My advice to you is:

1. Backup all of your good lady's /home to a different drive - don't forget Ctrl+ H to backup all application settings e.g., .mozilla which stores firefox settings - when you do your new install overwrite this file with the one from /home you backed up.

2. If not sure you will need to give your good lady more space, then install LVM at point of install. Traditionally in Linux you could never make partitions bigger, only smaller.

https://serverfault.com/questions/27957 ... nd-caveats

You have been warned! ;) :D

carmar

Mon May 18, 2020 10:03:09 pm

Thanks, Swarf.