LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2020, 08:30 PM   #16
linuxsurfer
LQ Newbie
 
Registered: Nov 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled

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.
 
Old 11-16-2020, 11:20 AM   #17
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by linuxsurfer View Post
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.

Last edited by computersavvy; 11-16-2020 at 11:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] MINT just told me 'screw you I am not rebooting into me" boot crash/stuck BW-userx Linux Mint 1 11-17-2018 01:09 PM
Major Screw-up with Mint Install TooTall Linux - General 12 11-19-2016 09:34 AM
I'm not sure how this happened but I'm sure there is a lesson in there somewhere mreff555 Linux - Newbie 6 09-24-2012 02:09 AM
[SOLVED] Updating Bios on Laptop - help make sure I don't do something stupid Alex_Dc Linux - Laptop and Netbook 14 01-06-2010 05:13 PM
Did I screw up my filesystem with tune2fs? Thaidog Linux - General 2 02-19-2008 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration