Chainloading
I am trying to chainload, for various different reasons to various different things but nothing seems to work. Once again, I know this could easily be more of a Grub2 question than a Grub Customizer question, but as long as I am already here asking something else I thought I might as well give it a try & see if anyone might know what I am doing wrong. I am of course using Grub Customizer to write the code. I have written, gone back and re-written, and done it again. Currently, here are my entry tries:
insmod part_msdos
insmod chain
drivemap hd1 hd0
chainloader (hd0,msdos1)+1
set root='(hd0,0)'
chainloader +1
boot
insmod part_msdos
insmod chain
set root='(hd1,0)'
chainloader (hd1,0)+1
boot
set root='(hd2,0)'
chainloader +1
boot
insmod part_msdos
insmod chain
set root='(hd1,1)'
chainloader (hd1,1)+1
boot
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
insmod chain
set root='hd9,msdos1'
makeactive
chainloader +1
boot
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
insmod chain
set root='hd9,msdos1'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 06BE6F1BBE6F0293
fi
chainloader +1
boot
set root='(hd10,1)'
chainloader +1
boot
insmod part_msdos
insmod ext2
insmod ntfs
insmod fat
insmod linux
insmod iso9660
insmod loopback
insmod usbms
insmod ehci
# title Boot From USB try #1 sdg/hd6 partition/msdos 1
echo "Waiting...."
WAIT=7
set root='hd6,msdos1'
chainloader +1
boot
insmod part_msdos
# try booting from USB drive - again
echo "Waiting..."
WAIT=17
set root='hd6,msdos1'
chainloader +1
boot
insmod part_msdos
chainloader (hd10,1)+1
I have tried everything from simple to complex, but I can't seem to chainload to either a USB drive or another internal HD. Whether they have Grub2, Grub Legacy, Grub4Dos, or SysLinux. Errors: usually I either get a blank screen with a blinking curser, or partition doesn't exist, or need to load kernal first, or it just reboots my Grub2 menu, or it reboots the entire computer. Seems to me I'm forgetting something, an error about not being able to load or unknown commands, it will print out like "insmod part_msd" or "insmod ch". Everything it says it can't load is trunkated like that but when I view it in Grub Customizer it looks fine. Oh, and I cut & pasted most of those entries from the Boot-Info report, I know they look a little different in Grub Customizer - usually a difference of a ' instead of ( or ) but otherwise the same thing I think.
Also, is there a way to make a menu entry that goes to the Grub command line directly?
Thanks for your time, sorry about the long post!
- Peter
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: