Pretty much need help from the get-go with installation

Submitted by DrWhom
on March 20, 2004 - 6:24am

Good morning. I am very interested in giving the GNU Hurd a try. While I have been using GNU/Linux for several years, my learning curve isn't what I would like. I have an extra 1.2 gb HD and thought I would give the HURD a try.
I downloaded the grub-0.94 file and the GNU Hurd tar. What's better installing GRUB to HD or floppy? How do I do this? I read the directions, but this isn't helping. Thanks!

DrWhom

short steb-by-step GRUB install

leFloyd
on
March 21, 2004 - 7:07am

I installed it on my own machine right now and it's very straight forward. I must admit I'm using grub for some years now...

first just normal configure && make && make install

then you have to make a directory /boot/grub and therein a file called menu.lst This is where you put your configuration in. Mine looks like this:

# Boot automatically after 30 secs.
timeout 5
 
# By default, boot the first entry.
default saved
 
# For booting GNU/Linux
title  Vector Linux
root (hd0,2)
kernel /boot/vmlinuz root=/dev/hda3 vga=791 ro video=vesafb:ypan
savedefault
 
# For booting Windows NT or Windows95
title Windows
rootnoverify (hd0,0)
makeactive
chainloader  +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos
savedefault
 
title NetBSD
rootnoverify (hd0,3)
chainloader +1
savedefault
 
# For booting GNU/Linux
title  Vector Linux last kernel
root (hd0,2)
kernel /boot/vmlinuz.old root=/dev/hda3 vga=791 ro video=vesafb:ypan
 
# For booting GNU/Linux
title  Vector Linux original kernel
root (hd0,2)
kernel /boot/vmlinuz.org root=/dev/hda3 vga=791 ro video=vesafb:ypan

my disk layout is

/dev/hda1  Win98
/dev/hda3  Linux
/dev/hda4  NetBSD

So the numbering scheme of GRUB is different, as you see. GRUB's /dev/hda1 is (hd0,0). If you use just scsi, so the /dev/sda1 becomes (hd0,0) because of GRUB using just BIOS calls. If you mix ata and scsi it will be more complex, because of the BIOS order of your disks.

I hope my grub.conf is somewhat readable and answers some questions.

Next is to install GRUB in the MBR: grub-install /dev/hda If there are now errors you're done. The great thing about GRUB is, that you have a command line at boot time in case of some errors in your grub.conf.

Good luck

This is a Hurd forum.

gebner
on
March 21, 2004 - 11:20am

Hope you noticed that this is a GNU/Hurd forum, and the question was where to install GRUB and not how.

Re: This is a Hurd forum

leFloyd
on
March 21, 2004 - 1:40pm

ok, I see. But it was asked where and how to ;)

The point is that I would install it in (hd0), but since I haven't played around with Hurd I don't know how to do that with Hurd. Just with Linux...

Re: Pretty much need help from the get-go with installation

mbanck
on
March 22, 2004 - 2:43am

What's better installing GRUB to HD or floppy?

I'd say it does not matter, I did both in the past and it works well.

In general the recommended ways to install (Debian) GNU/Hurd is either to run the crosshurd package (if you have a working Debian GNU/Linux installation), or to install from the K5 ISOs.

The tarballs you might find on the net could be severly out of date, where did you get yours from? The most uptodate tarball is probably this one, but I don't know how well it works. In any case, the Debian GNU/Hurd installation instructions are really helpful and most current. You still might have to adopt them a bit perhaps.

Michael

trying to use crosshurd

Anonymous
on
June 16, 2004 - 8:56am

It's great to find a Hurd weblog. I am trying to use crosshurd but get a boot error after the kernel starts; it appears to say "1 multiboot modules ... kernel panic .. undefined symbol" and reboots immediately.
I have a Duron with 128 Meg ram, am trying to use a logical partition of about 980 Meg. This is the section of menu.lst that I am trying to use to boot the Hurd partition installed with crosshurd. Any thoughts?

title GNU/Hurd (on /dev/hda5)
root (hd0,4)
kernel /boot/gnumach.gz root=hd0s5
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)

cannot make pipe for command substitution

Anonymous
on
June 16, 2004 - 9:51am

changing root=hd0s5 to root=device:hd0s5 allowed Hurd to start.

But now when I enter
set TERM=hurd
./native-install

I get ./native-install: cannot make pipe for command substitution: (ipc/mig) bad request message ID

native-install gets caught in loop

Anonymous
on
June 16, 2004 - 12:35pm

I shifted to the latest version of crosshurd by inserting the following in sources.lst:

deb http://ftp.gnuab.org/debian unreleased main
deb http://ftp.debian.org/debian unstable main

I reformatted the Hurd partition with mke2fs -o hurd /dev/hda5
and reinstalled with crosshurd. This time it hit tzconfig and got caught in an endless loop. I restarted the computer in linux, used fsck on the Hurd partition, and restarted in Hurd. Again I used
set TERM-hurd
on each restart. (needed?)
This time I was able to run ./native-install , reboot, and run ./native-install again.

But now when I try to use settrans to set up eth0 I get an error:
/hurd/pfinet: eth0: (os/device) no such device
settrans: /hurd/pfinet: Translator died

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.