[SOLVED] Partition Problems - Dual boot; too much unallocated space; too little for Linux files
Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Rep:
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.
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.
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.
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.
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.
"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.
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.
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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.