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

Re: Installing grub to hd from hurd



Ognyan Kulev wrote:

Kent West wrote:

Using a grub boot floppy, at the grub> prompt, I've typed "setup (hd0)", which then says it's checking for stage1 and stage2, and a conf file, and then it reports success. However, on reboot, I just get a blank screen with a dash in the top left corner, just like I would sometimes get back in the old days of MS-DOS if the boot sector was corrupt and the system started booting and then hung early in the process.


I don't know what happened, but here is a short guide for manual installation:

In GNU/Hurd or GNU/Linux:

# mkdir /boot/grub
# cp /usr/lib/grub/i386-pc/* /boot/grub
# vi /boot/grub/menu.lst

In Grub shell:

(grub) root (hd0,0)    # The partition with /boot/grub
(grub) setup (hd0)    # The whole disk


Here's the entire contents of my /boot/grub/menu.list file:


title GNU/Hurd
root (hd0,0)
kernel /boot/gnumach.gz root=device:hd2s1
module /hurd/ext2fs.static \
--multiboot-command-line=${kernel-command-line} \
--host-priv-port=${host-port} \
--device-master-port=${device-port} \
--exec-server-task=${exec-task} \
-T typed ${root} $(task-create) $(task-resume)
module /lib/ld.so.1 /hurd/exec $(exec-task=task-create)

I then rebooted off my grub floppy, and pressed 'c' to get to the command line, at which time I entered:
 /root (hd0,0)/
which responded with:
   /Filesystem type is ext2fs, partition type 0x83/

Then I entered:
 /setup (hd0)/
which responded with:
   /Checking if "/boot/grub/stage1" exists. . . yes
   Checking if "/boot/grub/stage2" exists. . . yes
   Checking if "/boot/grub/e2fs_stage1_5 exists. . . yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)". . . 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst". . . succeeded
Done./

I then rebooted, removing the floppy, and get a black screen with a flashing dash in the top left corner.

--
Kent




Reply to: