LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 09-09-2023, 09:33 PM   #1
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Rep: Reputation: Disabled
Partition Problems - Dual boot; too much unallocated space; too little for Linux files


Hello,

Linux Mint 20.3 wanting to upgrade to 21.2. Mint 21.2 iso burned to usb.

Large (450gb) unallocated space. See either attachment. Want to grow partition sda6 (filesystem) into unallocated space.

Dual boot but lost ability to boot into windows, sda4, after moving a partition around.

I have a Timeshift file of the Linux side and have Windows files backed up.

Any ideas on how to get out of this snake pit?

Thanks for reading!
Attached Thumbnails
Click image for larger version

Name:	2023-09-09_20-49.png
Views:	21
Size:	57.5 KB
ID:	41606   Click image for larger version

Name:	2023-09-09_21-08.png
Views:	14
Size:	57.0 KB
ID:	41607  
 
Old 09-10-2023, 12:26 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Adding the space to sda6 is simple enough - you merely have to grow the Extended partition (/dev/sda2) to encompass that space first. Then do sda6. gparted will do it.
No idea how to resurrect Win - I rarely screw with it, just re-install when needed.
 
1 members found this post helpful.
Old 09-10-2023, 05:13 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
First thing I'd try is running "grub2-mkconfig". That thingy is looking for operating systems all over the place and should find your windows at its new(?) position.
 
Old 09-10-2023, 05:47 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,522

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
If you moved the windows system partition (sda4), grub won't find its boot files as they are in a new location (sectors) so run grub-mkconfig or on Mint, update-grub. Which version of windows are you using? Newer windows are almost always EFI and yours is not. As indicated above, using gparted should add unallocated space after sda6 to that partition as it appears to be contiguous with sda6.

Last edited by yancek; 09-10-2023 at 05:48 AM.
 
Old 09-10-2023, 07:52 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <Linux Mint> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
1 members found this post helpful.
Old 09-10-2023, 08:00 AM   #6
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Adding the space to sda6 is simple enough -
You were correct. It was simple and now I have some "breathing room" for my Linux file system.
Still working on getting the windows side to boot up.

Quote:
Originally Posted by JZL240I-U View Post
...I'd try is running "grub2-mkconfig"
Couldn't run grub2-mkconfig but did run grub-mkconfig to no avail. Should I persue grub2?

Thanks all
 
Old 09-10-2023, 08:06 AM   #7
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
If you moved the windows system partition (sda4),...
Yes, that is what I did. All of the unallocated space was shown to the far right. In my infinite wisdom I thought I needed to make unallocated space contiguous to sda6.

And I am dual booting into windows 10.
 
Old 09-10-2023, 08:14 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
What partition do you want to make bigger?
For windows you will need a windows dvd/usb to fix repair windows bootloader.

Last edited by colorpurple21859; 09-10-2023 at 08:17 AM.
 
Old 09-10-2023, 11:40 AM   #9
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
For windows you will need a windows dvd/usb to fix repair windows bootloader.
The sda6 partition size is resolved per syg00 instructions.

I have windows10 usb. Need a short guide as how to use it. Do I boot to the installer and use it just for repair? Or do I have to start with Linux livecd? Sorry but I'm drifting here a little.

Thanks again.
 
Old 09-10-2023, 11:46 AM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,522

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Quote:
Should I persue grub2?
No. Some Linux systems use grub2 as the name of the directory and have grub2 in the mkconfig command, Mint is no one of them.

What output did you get when you ran grub-mkconfig from Mint?. Was a windows system detected? You might run it again and post the output here.

Quote:
All of the unallocated space was shown to the far right
I'm not sure what your plans are. Were you planning to install the new Mint alongside the old Mint? You could have simply selected the unallocated space on which to install the new Mint. OR, if you were planning to install the new Mint over the old Mint, you could have done that also. If you needed more space for Mint, you could have simply created a new partition for data and moved your data there or moved your /home directory there and modified /etc/fstab.

Did you do this install yourself or is this an upgrade from windows 7? It is extremely unusual for windsows 10 to be installed in Legacy mode rather than UEFI.
 
Old 09-10-2023, 12:31 PM   #11
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
"You might run it again and post the output here."
see attached

"I'm not sure what your plans are."
Now that I have resolved the sda6 partition size, I would like to resolve the dual boot into windows, then upgrade from Mint 20.3 to 21.2.
Referring to the gparted screenshot (attached) it did not occur to me that I had to increase sda2 in order to increase sda6. I now know that gparted makes that crystal clear by looking at the partition tree!

"is this an upgrade from windows 7?"
Not sure. I have been running dual boot with windows10 for many years now. Maybe 8? And can't recall but I do have a windows10 usb.
Attached Thumbnails
Click image for larger version

Name:	2023-09-10_12-12.png
Views:	12
Size:	30.7 KB
ID:	41619   Click image for larger version

Name:	2023-09-09_20-49.png
Views:	9
Size:	57.5 KB
ID:	41620  
 
Old 09-10-2023, 01:45 PM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
The bcd store is probably the problem,
Maybe this will help to fix windows:
https://recoverhdd.com/blog/how-to-r...ows-guide.html
https://petri.com/windows-boot-manag...tartup-errors/

Do have a linux live usb ready to reinstall grub just in case the mbr gets overwritten by windows.

Last edited by colorpurple21859; 09-10-2023 at 01:49 PM.
 
Old 09-11-2023, 04:56 AM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,522

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Your grub-mkconfig output shows windows found on sda3 which is not going to help in your case as that is a reserved partition which is only 500+MB. The gparted output shows the largest partition is the one you moved, sda4 so you would need to use your windows device (DVD/USB) to repair it and in all likelihood, it will overwrite the MBR code with grub so you will need to reinstall Grub.

I'm not 'aware' of any Linux software to repair the proprietary windows boot code. Some software such as boot repair will add a proper menuentry to grub.cfg but if the windows boot files are either corrupted/missing, it won't boot.
 
Old 09-11-2023, 10:48 AM   #14
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Can't thank you all enough for the help!

It appears that, in an effort to upgrade from Mint 20.3 to 21.2, I will likely get "hung up" unless I do a full new install due to 3rd party applications, and their dependencies, that didn't come from one of the official repositories.(?) Forgive me if I didn't word that properly. Bottom line is a full, clean install of mint and then windows is probably in order. At least I have all of my files.

May be that keeping a log of new third party apps that get installed will allow me to uninstall them and all their dependencies when time comes to upgrade past 21.2? IDK

Craig
 
Old 09-11-2023, 11:03 AM   #15
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Your grub-mkconfig output shows windows found on sda3 which is not going to help in your case as that is a reserved partition which is only 500+MB. The gparted output shows the largest partition is the one you moved, sda4 so you would need to use your windows device (DVD/USB) to repair it and in all likelihood, it will overwrite the MBR code with grub so you will need to reinstall Grub.

I'm not 'aware' of any Linux software to repair the proprietary windows boot code. Some software such as boot repair will add a proper menuentry to grub.cfg but if the windows boot files are either corrupted/missing, it won't boot.
I don't want to take up all of your time but I'm unclear about where the windows boot is and where the system files are, or are suppose to be. I attached the current gparted report. Isn't sda3 the windows boot partition? And sda4 windows files? Are they supposed to be together? Is some of this peculiar to a dual boot system?
Attached Thumbnails
Click image for larger version

Name:	2023-09-11_10-52.png
Views:	9
Size:	62.5 KB
ID:	41625  
 
  


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
How do I increase my "/" partition space using unallocated space?(bodhi linux) PrathamBhatter Linux - Newbie 3 07-29-2020 05:56 PM
Adding Unallocated space before Linux partition Chrislw324 Linux - Newbie 3 01-30-2019 07:15 PM
[SOLVED] Windows boot partition got unallocated after resizing partition mike54 Linux - Newbie 5 10-28-2011 02:18 PM
moving unallocated disk space into reiserfs partition. GUIPenguin Linux - General 3 04-08-2006 03:07 PM
Using unallocated space to install Suse 9.1 w/ XP (Dual Boot) DocShock SUSE / openSUSE 1 02-13-2005 06:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 03:47 PM.

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