Quote:
Originally Posted by linuxsurfer
Sorry I haven't responded but I got sick and my head wasn't clear enough the few times I logged in and read the responses.
I'm going to make a larger filesystem partition and move the current files in the new filesystem. Could someone help with a tutorial for this as all I've been able to find uses the terminal command in the partition you've trying to fix.
This won't work as I'm accessing everything through a live USB stick with Mint 20 on it. I'm familiar with using G-Parted and can use it or the terminal to create this new partition and specify it was a filesystem.
I just need help on doing it with the live USB.
After I do this, I'll back up both Linux and windows partitions to a cloud backup like iDrive and then reformat the disk for new partitions with windows being around 100GBs and the rest Linux since I don't use Microsoft except for work-related tasks.
Thanks for the help.
|
STEPS:
1. reduce your windows partition from within windows using the disk manager to shrink the partition. Possibly 200 GB would be adequate, or if you wish you can make it even smaller.
2. Boot to the live USB (you will need to be root to do all the following)
3. using gparted (or similar) create a new ext4 partition in the space just freed up from windows.
4. Make 2 new directories under /mnt. I could suggest /mnt/old & /mnt/new
5. mount your old /home (/dev/sda7) on /mnt/old
6. mount the new partition (/dev/sda8) on /mnt/new
7. Copy the entire content of /mnt/old/ to /mnt/new. I would use
Code:
rsync -arv /mnt/old/ /mnt/new
as retaining ownership and permissions is important and rsync will copy all the hidden (.??*) files/directories that cp ignores as well as the normal ones.
8. unmount both /mnt/old and /mnt/new
9. Now back to gparted
a. remove the old /dev/sda7 partition
b. resize the old /dev/sda6 partition to fill the space from the partition just removed
10. Finally the last step.
a. mount /dev/sda6 on /mnt
b. edit /mnt/etc/fstab and change the line for /home to use the newly created /dev/sda8
At this point you should be able to reboot to the HDD and have plenty space in both / and /home.
Backup to the cloud and re-partitioning the entire drive should not be necessary. Windows requires the 4 partitions it began with and it expects the layout originally seen with the 4 windows partitions in that order. I am not certain how it would work in a recovery situation if partition 4 (windows recovery) is relocated on the drive. Although I would not anticipate problems I have never tried it.