grub update on arch

aerospace1028 at hotmail.com aerospace1028 at hotmail.com
Mon Aug 6 11:37:07 UTC 2012


Hello,
Sorry it took so long to get back.  The previous response was helpful.

I think I've confirmed that win.XP's boot.ini file is the right target.

If I decide to try out the new grub, I think the process would look something like:

# mv /boot/grub /boot/grub-legacy
# dd if=/dev/sdX of=/backups/bootcode_backup bs=446 count=1
# pacman -S grub-bios
# modprobe dm_mod
# grub-install --directory=/usr/lib/grub/i386-pc --target=i386-pc --grub-setup=/bin/true --boot-directory=/boot --recheck --debug /dev/sda
# mkdir -p /boot/grub/locale
# cp /usr/share/locale/en at quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
# grub-mkconfig -o /boot/grub/grub.cfg
# grub-probe --target=fs_uuid /media/Windows/boot.ini
<record output number.>

edit /etc/grub.d/40_custom:
menuentry "Microsoft Windows XP" {
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    search --fs-uuid --no-floppy --set=root <value from above>
    ntldr /ntldr
}

finally:
# grub-mkconfig


If everything went okay, try rebooting and see if I can still get into my machine at all.

If something goes wrong:
# mv /boot/grub /boot/grub.nonfunctional
# cp -af /boot/grub-legacy /boot/grub
# dd if=/backups/mbr-boot-code of=/dev/sdX bs=446 count=1

When i get some time, I'll look into some of the commands I'm not that familiar with to get a better handle on what they do.

Thank you:-) 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/blinux-list/attachments/20120806/504a4c4d/attachment.htm>


More information about the Blinux-list mailing list