Linux - NewbieThis 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
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.
yes that will always happen when you install in that order, it needs to be WIN first then Linux then install grub . else Windows will take over the MBR and boot loader else one goes into fix it mode .. that you are in now.
Code:
Run the following command to reinstall grub from the live CD,
replacing /dev/sdX with the device name of the hard disk above.
Omit the number. For example, if you used /dev/sda1 above, use /dev/sda here.
Restart your computer and Ubuntu should boot properly
that should also apply to your linux version. just boot a usb stick or whatever you got to boot a live Linux and use it to install grub to hdd in system and update grub, reboot, cross fingers.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
I boot with the install DVD, choose "rescue", chroot into the / partition of the Linux system, and run "grub-install". Then, everything should be back to normal.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Another fairly painless way is to use Boot-Repair, available as a standalone live ISO. I keep it handy for just this type of thing and it almost always does the trick.
You may also want to consider making an image of your freshly installed Windows partition, settings, drivers and all, so you won't have to go through the whole troublesome process again in case you ever feel the need to reinstall. Clonezilla does not touch GRUB and restoring takes only about 10 minutes, on my machine at least. Dedoimedo has nice tutorials.
Sorry, I installed Windows first on my computer then Linux, so I do not know if that's the reason why GRUB doesn't get overwritten. Still, Clonezilla is convenient.
Last edited by drunkenfist; 07-20-2017 at 05:30 AM.
I haven't used Knoppix for some time so how old is the version you have installed. The commands you posted as using to re-install Grub would work if you have Legacy Grub but would totally fail if you have Grub2. Your post shows the result of the find command for a Grub stage1 file indicates it is found on (hd0,5) which would be correct as that would be sda6 in Grub Legacy and your Linux partition. If you haven't resolved this you have the setup command incorrect as it needs to point to the MBR which would be: setup (hd0) in your case.
how many days has past? you can always just reinstall Linux for whats worth and be done with it. if you'd separated your /home from root then no loss to your personal data (should) occur if you do that correctly.
which in return (somewhere on the last 3 commands) was giving me a:
"Mismatched or corrupt versions of stage1 / stage2" in return ??
Any idea where to go next??
find, root and setup are commands you run within the grub shell you started with the grub command. gparted is a command to run after quitting the grub shell. You should not get the mismatched versions error if you use the same Knoppix version to perform repair that you used to install Knoppix. Reinstalling WinXP should only have changed the MBR, not your (hd0,5) Knoppix partition. One cannot boot (hd0,5) from the generic MBR code WinXP installed. Setup needs to go either on (hd0), which overwrites what WinXP wrote there, or a valid Linux native primary partition, which in your case probably without repartitioning cannot be done because find only found a suitable target on a logical (hd0,5).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.