Is there still a procedure for fixing an overwritten GRUB bootsector from the live CD?
Or should I use Ultimate Boot CD for this?
(gonna reinstall winxp 32 bit to play games, danged win7 doesnt play anything now , nothing works __{{emoticon}}__
topic title: fix overwritten grub solved
10 posts
• Page 1 of 1
-
Posts: 192
- Joined: 27 Sep 2007
#1
Last edited by coyotito on 04 Feb 2015, 20:29, edited 1 time in total.
-
Posts: 4,164
- Joined: 20 Feb 2009
#2
Can you be a little more descriptive on what boots and why things broke?
The live cd has a grub repair section under Mepis System Assistent in AntiX 13.2 if that is what you are running.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.mepis.org/docs/en/index.php?title=MEPIS_System_Assistant"
linktext was:"http://www.mepis.org/docs/en/index.php? ... _Assistant"
====================================
The live cd has a grub repair section under Mepis System Assistent in AntiX 13.2 if that is what you are running.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.mepis.org/docs/en/index.php?title=MEPIS_System_Assistant"
linktext was:"http://www.mepis.org/docs/en/index.php? ... _Assistant"
====================================
-
Posts: 2,238
- Joined: 16 Dec 2007
#3
I don't think the boot repair on the antiX 13 series iso's actually work. I do believe the last working version was on antiX 12. still available here:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://sourceforge.net/projects/antix-linux/files/Final/antiX-12/"
linktext was:"http://sourceforge.net/projects/antix-l ... /antiX-12/"
====================================
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://sourceforge.net/projects/antix-linux/files/Final/antiX-12/"
linktext was:"http://sourceforge.net/projects/antix-l ... /antiX-12/"
====================================
-
Posts: 1,308
- Joined: 31 Aug 2009
#4
Reinstalling grub from the LiveCD should work.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.gnu.org/software/grub/manual/grub.html#Installing-GRUB-using-grub_002dinstall"
linktext was:"Here"
====================================
is the manual for installing grub2:(which assumes you installed on the first hard drive). You may have to also specify a"boot" directory which is also explained.
You need to make sure you have the version of grub right. AntiX-13.2 and later (and perhaps some earlier versions) use grub2. To fix it you want to use the grub2 installer. If you used legacy grub then you want to use an older version of the LiveCD that has the legacy version of grub. Using the same LiveCD you used for the install should work just fine but the instructions for legacy grub may be different.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.gnu.org/software/grub/manual/grub.html#Installing-GRUB-using-grub_002dinstall"
linktext was:"Here"
====================================
is the manual for installing grub2:
Code: Select all
grub-install /dev/hda
You need to make sure you have the version of grub right. AntiX-13.2 and later (and perhaps some earlier versions) use grub2. To fix it you want to use the grub2 installer. If you used legacy grub then you want to use an older version of the LiveCD that has the legacy version of grub. Using the same LiveCD you used for the install should work just fine but the instructions for legacy grub may be different.
-
Posts: 2,238
- Joined: 16 Dec 2007
#5
antix 13.2 still uses grub-legacy. grub2 isn't on any antiX iso prior to the latest alphas and MX.
BitJam wrote:Reinstalling grub from the LiveCD should work.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.gnu.org/software/grub/manual/grub.html#Installing-GRUB-using-grub_002dinstall"
linktext was:"Here"
====================================
is the manual for installing grub2:(which assumes you installed on the first hard drive). You may have to also specify a"boot" directory which is also explained.Code: Select all
grub-install /dev/hda
You need to make sure you have the version of grub right. AntiX-13.2 and later (and perhaps some earlier versions) use grub2. To fix it you want to use the grub2 installer. If you used legacy grub then you want to use an older version of the LiveCD that has the legacy version of grub. Using the same LiveCD you used for the install should work just fine but the instructions for legacy grub may be different.
antix 13.2 still uses grub-legacy. grub2 isn't on any antiX iso prior to the latest alphas and MX.
-
Posts: 1,308
- Joined: 31 Aug 2009
#6
Still, grub-install on the LiveCD that was used for installation can be used for repairing the mbr. I always use the"grub" command directly (not grub-install). The
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.gnu.org/software/grub/manual/legacy/grub.html#Installing-GRUB-natively"
linktext was:"grub manual"
====================================
has pretty clear instructions. The"find" command inside of grub makes things easier. OTOH, enough people have had trouble following these instructions that other people tried to fully automate the process.
Start grub with with command:Give it your user password, not the root password if it asks for one.
Use"find" to find which partition the boot loader is on:
Then run the"root" command on that partition and the"setup" command on the mbr. If the grub bootloader was on the 4th partition of /dev/sda then the find command will tell you"hd0,3" so you run:The first command points to the partition with the grub files on it. The second command installs grub on the mbr of /dev/sda. Use"quit" to get out of the grub program.
Thanks for the correction! I must be on drugs or something. Or just getting old.dolphin_oracle wrote:antix 13.2 still uses grub-legacy. grub2 isn't on any antiX iso prior to the latest alphas and MX.
Still, grub-install on the LiveCD that was used for installation can be used for repairing the mbr. I always use the"grub" command directly (not grub-install). The
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.gnu.org/software/grub/manual/legacy/grub.html#Installing-GRUB-natively"
linktext was:"grub manual"
====================================
has pretty clear instructions. The"find" command inside of grub makes things easier. OTOH, enough people have had trouble following these instructions that other people tried to fully automate the process.
Start grub with with command:
Code: Select all
sudo /usr/sbin/grub
Use"find" to find which partition the boot loader is on:
Code: Select all
grub> find /boot/grub/stage1
Code: Select all
root (hd0,3)
setup (hd0)
-
Posts: 192
- Joined: 27 Sep 2007
#7
Thanks guys, that should fix it.
What's broke is win 7 on dual boot -->specifically my games dont work so the shit must be reinstalled which will wipe grub.
I have manually reinstalled grub before, it can be done even with a debian cd. But I don't remember these things.
What's broke is win 7 on dual boot -->specifically my games dont work so the shit must be reinstalled which will wipe grub.
I have manually reinstalled grub before, it can be done even with a debian cd. But I don't remember these things.
-
Posts: 604
- Joined: 27 Feb 2009
#8
Bitjam,
Is that a way to update to the MBR as well as the grub menu on the hard drive without needing to chroot over to the linux partition on the hard drive first?
Is that a way to update to the MBR as well as the grub menu on the hard drive without needing to chroot over to the linux partition on the hard drive first?
-
Posts: 1,308
- Joined: 31 Aug 2009
#9
Again, the version of grub (grub-legacy or grub-2) must match or it won't work. But grub should tell you if the files it needs are not on the partition you specified with the root() command.
With legacy grub this fixes the mbr but it does not alter the grub menu. You have to edit menu.lst yourself. This is also what I would do to install legacy grub on a LiveUSB. The root() command tells grub the partition where the grub files are, including menu.lst. The setup() command writes to the mbr of the drive or partition you specify.thriftee wrote:Is that a way to update to the MBR as well as the grub menu on the hard drive without needing to chroot over to the linux partition on the hard drive first?
Again, the version of grub (grub-legacy or grub-2) must match or it won't work. But grub should tell you if the files it needs are not on the partition you specified with the root() command.
-
Posts: 192
- Joined: 27 Sep 2007
#10
Lots of interesting stuff here. The solution to my simple problem was to use an old Ultimate Boot CD
I had here, specifically the included Super Grub Disk. Read my partitions and rebuilt grub legacy.
Also works with Grub 2 --SPD 2 also on UBCD.
(got win XP sp3 up and going for my games)
I had here, specifically the included Super Grub Disk. Read my partitions and rebuilt grub legacy.
Also works with Grub 2 --SPD 2 also on UBCD.
(got win XP sp3 up and going for my games)