Homey
homey on another thread asked for a test of grub stage2 file error and asked for instructions similar to this
commands run in a terminal
a) fdformat /dev/fd0
b) su to root mode
c) mke2fs -m 0 /dev/fd0
d) dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
e) dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
I tested for both my mdk 10.1 grub files and my old grub files I think were from a linux format cd
on reboot mdk grub files gave loading stage2 Read error and hangs
on reboot of other grub files no error message
loading stage2 file then nothing.....no grub command editor mode
2) So I thought I will embed stuff the way of my howto for booting large kernels for your wisdom its this
source my howto
http://www.linuxquestions.org/questi...hreadid=237511
A made a msdos floppy
....fdformat /dev/fd0
....mkfs.msdos /dev/fd0
B Create floppy folder structure /boot/grub/
C copied stage1/stage2/and special menu.lst file to folder grub
D then open a terminal and in su mode moved /boot/grub to different folder so I am truly using floppy files, don't forget to move this folder back before rebooting. heh heh
E change to grub command by typing "grub"
then set pathway for files by "root (fd0)
then embed grub stage1 so it finds stage2 files by "setup (fd0)"
output looks like this
GNU GRUB version 0.95 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (fd0)
Filesystem type is fat, using whole disk
grub> setup (fd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/fat_stage1_5" exists... no
Running "install /boot/grub/stage1 (fd0) /boot/grub/stage2 p /boot/grub/menu.lst
"... succeeded
Done.
F special menu file is
title floppy
root (fd0)
pause "insert vmlinuz floppy and press enter"
kernel /vmlinuz root=/dev/sda3 ro # note the pathway has been already set to floppy
pause "insert initrd floppy and press enter"
initrd /initrd.img
Change to bzImage or kernel depending on your distro....delete initrd pause if you don't need it
naturally my second floppy is a ordinary msdos floppy with my kernel renamed as vmlinuz
And floppy 3 has only initrd.img
3) Now I created floppy 1 using mdk 10.1 stage files 1 &2
and another floppy 1 with my other stage 1 & 2 files
4) Reboot gave these results
floppy 1 using mdk 10.1 success menu appears grub starts and prompts for my floppy 2 etc
floppy 1 using non-mdk 10.1 same success.
5) and of course I have had not errors with mdk on hd boot up.
6) I am arrogant in thinking I am right (yet again) but can you point me to some posts where you think its a stage2 issue?
I have read another post when someone thought because they used grub-install that was why they did not have to re-run grub like you have to re-run lilo........but if I am right you will see when you look at the terminal output
"install /boot/grub/stage1 (fd0) /boot/grub/stage2 p /boot/grub/menu.lst
"... succeeded
......grub still has to code where to find stage 2 (or stage1.5 ) etc files
so at this stage I am not concerned.