Re: grub update on arch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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:-)
_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]