Page 1 of 1
Installing MX-21 over an existing MX-19 installation
Posted: Mon Nov 29, 2021 4:27 pm
by Falcon
I have an Acer desktop computer that has both Windows 7 and MX-19 installed in a dual-boot configuration. I want to replace the MX-19 install with MX-21. The following picture shows the current layout of the SSD:
Gparted.png
I inserted the MX-21 Live-USB drive and started up the computer. Then I started the Installer. I began to go through the install steps until I got to the one where I am supposed to specify where to install the OS. Since I wanted to overwrite the MX-19 installation, I chose sda5 ( which is in an extended partition on the drive). When I clicked Next, the following message window appeared:
Installer.png
I don't know what this message is telling me to do. Would it be better to just use Gparted to format the partition and then run the installer, or is there an easy way to continue on from here using the Installer?
Re: Installing MX-21 over an existing MX-19 installation
Posted: Mon Nov 29, 2021 5:45 pm
by Huckleberry Finn
Before clicking next, just click that box (next to 132.1 GB ) and select "root" ("Use For" root)
Re: Installing MX-21 over an existing MX-19 installation
Posted: Mon Nov 29, 2021 8:48 pm
by Falcon
I did as you instructed and the installation continued. When it got to the 95% point and was installing GRUB, a message window popped up telling me that the installation of GRUB had failed. Here's a screen shot:
GRUB1.png
I Aborted the installation and then ran MX Boot Repair and did a repair operation, but the installation still failed. Then I tried running MX Boot Repair while the installer was stopped at the failure point and then tried to proceed but still no success. I also used Boot Repair to reinstall GRUB, but had the same thing occur.
Once this failure occurs, the installation will not continue any further.
Re: Installing MX-21 over an existing MX-19 installation
Posted: Mon Nov 29, 2021 10:11 pm
by Gordon Cooper
Had a similar experience. I had forgotten to tell the installer where to pu Gtub. Ran the installer again and told it to put Grub at the end of the Boot
Record and all went well.
Re: Installing MX-21 over an existing MX-19 installation
Posted: Mon Nov 29, 2021 10:58 pm
by figueroa
The installer has become a swiss-army-knife of installers, and has thus become overly complex and difficult reading for some (many?) users. It's a "have cake and eat it too" situation.
Re: Installing MX-21 over an existing MX-19 installation
Posted: Tue Nov 30, 2021 3:12 am
by asqwerth
But the 'tell the installer where to put grub' bit of the installer is more or less the same, I could have sworn. That part hasn't changed.
Re: Installing MX-21 over an existing MX-19 installation
Posted: Tue Nov 30, 2021 6:41 am
by Huckleberry Finn
@Falcon . Any error messages when you tried MX Boot Repair ? Especially like this :
Installing for xxx platform.
grub-install: warning: Sector xx is already in use by the program `FlexNet'; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
Installation finished. No error reported.
(If yes, simply note the number of that sector and tell us)
(Also QSI on live session)
Re: Installing MX-21 over an existing MX-19 installation
Posted: Tue Nov 30, 2021 9:11 am
by Falcon
Here is the output of the MX Boot Repair utility. There is a warning generated as you can see, but the message window at the end states that the operation completed successfully.
Repair1.png
Repair2.png
Re: Installing MX-21 over an existing MX-19 installation
Posted: Tue Nov 30, 2021 9:56 am
by Huckleberry Finn
MX Live Session:
Code: Select all
sudo dd if=/dev/zero of=/dev/sda bs=512 count=1 seek=18
Code: Select all
sudo dd if=/dev/zero of=/dev/sda bs=440 count=1
- "MX Boot Repair" now (same way as in the picture you posted: MBR, sda, sda5 )
Reboot into installed MX .
Or (alternatively to MXBR):
Menu => MX Tools => "Chroot Rescue Scan" it'll detect your installed MX, hit Enter, proceed, it turns into a terminal with this prompt
chroot>
Copy-paste - hit Enter:
Code: Select all
grub-install --force /dev/sda ; update-grub
Reboot into installed MX .
________________________________________________________________________
(... Or, if you like, after applying the commands at step 1 , you can even reinstall to finish the installation this time to 100% )
P.S. In fact, just the 1st command is enough, 2nd one is just to make it a "clean job" :)
Re: Installing MX-21 over an existing MX-19 installation
Posted: Tue Nov 30, 2021 10:32 am
by Minux1
I'll wait until the bugs are ironed out.
Re: Installing MX-21 over an existing MX-19 installation
Posted: Tue Nov 30, 2021 10:40 am
by Huckleberry Finn
Minux1 wrote: Tue Nov 30, 2021 10:32 am
I'll wait until the bugs are ironed out.
This is not a "bug" and is not caused by MX .. It's caused by "Acer" registration service (and other than that mostly by "Adobe" software being used on Windows) . (They write data in sectors that should be null normally, and Grub decides not to overwrite for it might be something important, not to damage anything).
Re: Installing MX-21 over an existing MX-19 installation
Posted: Tue Nov 30, 2021 8:54 pm
by Falcon
I decided to try just executing the first command above and then running the installer again. The installer failed at the same point where it was installing GRUB. (95%). So I terminated the installer and ran MX Boot Repair. I chose to Repair GRUB, rather than reinstalling it. The operation completed without any errors or warnings. Then I tried the installer again, but it failed in the same way.
Then I tried to execute BOTH of the commands above and then tried to reboot into the installed version (i.e., not the Live-USB). The computer wouldn't boot at all. It just came up with a blank screen with a blinking cursor in the upper right hand corner. Did I misinterpret something that you said above?
Re: Installing MX-21 over an existing MX-19 installation
Posted: Tue Nov 30, 2021 11:10 pm
by figueroa
asqwerth wrote: Tue Nov 30, 2021 3:12 am
But the 'tell the installer where to put grub' bit of the installer is more or less the same, I could have sworn. That part hasn't changed.
Credit where credit is due, if anything, the GRUB installer is somewhat improved and on a screen by itself making it more difficult to mess up.
Re: Installing MX-21 over an existing MX-19 installation
Posted: Wed Dec 01, 2021 6:41 am
by Huckleberry Finn
Falcon wrote: Tue Nov 30, 2021 8:54 pm
Then I tried to execute BOTH of the commands above and then tried to reboot into the installed version... came up with a blank screen with a blinking cursor in the upper right hand corner.
Normal. Because the 2nd one zeroes the first 440 bytes that means
no grub (actually "no bootloaders": neither Linux nor NT (Windows) ), but just a blank MBR with only "Disk Signature" (for Windows) + Partition Table.
____________
Since it's caused by "Acer" in your case, something in Bios might be re-writing that thing into that sector (#18) (or maybe even randomly, next time to #32 etc.) every boot (or so). Maybe there's a setting for that to enable/disable, something like "Acer Registration Service" etc. ...
___________
Till then just do this: Apply the 1st command (or both) then directly MX Boot Repair, then reboot into installed MX.
Re: Installing MX-21 over an existing MX-19 installation
Posted: Wed Dec 01, 2021 8:21 am
by j2mcgreg
This may be an off the wall suggestion and I apologise if it is. Your first GParted image does not display an EFI partition and it should. I'm wondering if when you originally set up your dual boot, you used MBR partitioning. If you did, you are going to have configure your usb install drive for an MBR install and you may have to select MBR as the location for Grub on the Grub install screen.
Re: Installing MX-21 over an existing MX-19 installation
Posted: Wed Dec 01, 2021 9:34 am
by Falcon
I executed the two commands above, and then started MX Boot Repair and ran "Reinstall GRUB". Then I powered off, removed the Live-USB from the computer, and powered back on again. What I got was a GNU GRUB screen with a grub> prompt. Then I got the idea to run MX Boot Repair again, but this time I executed "Repair GRUB". That completed successfully, and then I was able to restart the computer and boot up both MX and Windows from the SSD. So it looks like things are working.
Is there any way that the Installer could be set up to do the GRUB install and repair automatically? I don't have any problem with having to fix some issues like this, but a person who is a long-time Windows user who is thinking about switching to MX might become discouraged by a problem like this and just give up and go back to Windows or some other OS. That would be unfortunate because MX is one of the best distros out there.
As an aside, I looked in the BIOS settings and there was no mention of any Acer registration or the like. The Windows 7 OS from Acer seemed to be configured such that if the machine failed to boot, another utility would start automatically that allowed the user to reinstall the operating system. For some reason, this would come up occasionally and I would just exit out of the utility and then do a restart. Nine times out of ten, the system would restart normally and run fine. This utility may be what you are referring to.
Re: Installing MX-21 over an existing MX-19 installation
Posted: Wed Dec 01, 2021 10:31 am
by fehlix
Falcon wrote: Wed Dec 01, 2021 9:34 am
Is there any way that the Installer could be set up to do the GRUB install and repair automatically?
The installer might not like overwriting automatically any "wrong" placed win-app registration info within the post-MBR gap, like in this case at sector 18. Also user can always run MX Boot Repair from within the same live session.
Re: Installing MX-21 over an existing MX-19 installation [Solved]
Posted: Wed Dec 01, 2021 11:08 am
by Huckleberry Finn
Falcon wrote: Wed Dec 01, 2021 9:34 am... able to restart the computer and boot up both MX and Windows from the SSD. So it looks like things are working.
Falcon wrote: Wed Dec 01, 2021 9:34 am... MX Boot Repair again, but this time I executed "Repair GRUB".
You could also try the chroot way :)
Falcon wrote: Wed Dec 01, 2021 9:34 am... This utility may be what you are referring to.
That's it .
Glad to say: