Gentoo Archives: gentoo-user

From: Dan Farrell <dan@×××××××××.cx>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Install Using another System
Date: Wed, 06 Jun 2007 16:04:34
Message-Id: 20070606105649.32f388bd@pascal.spore.ath.cx
In Reply to: Re: [gentoo-user] Install Using another System by Randy Barlow
1 On Tue, 05 Jun 2007 16:55:35 -0400
2 Randy Barlow <randy@×××××××××××××××××.com> wrote:
3
4 > -----BEGIN PGP SIGNED MESSAGE-----
5 > Hash: SHA1
6 >
7 > Dan Farrell wrote:
8 > > Sounds like a fun project. Have you considered trying to get it to
9 > > run without a har drive at all? I bet a server could provide NFS
10 > > many times faster than the hard drive...
11 >
12 > Yeah, old hardware is fun to tinker with :) I got this machine for
13 > free from my roommate so I figure what the heck, let's put Gentoo on
14 > it! That does sound like a cool idea - hadn't thought of trying NFS.
15 > How would one do something like that? I imagine you still need a
16 > harddrive in there to get the boot process going (to start up grub)
17 > and then you could configure grub to do the rest of the NFS stuff?
18 > This box doesn't offer anything else like PXE, booting from USB. It
19 > doesn't even have a CD-ROM or a floppy. Just a hard drive!
20 >
21 > - --
22 > Randy Barlow
23 > http://electronsweatshop.com
24 >
25 First off I wanted to point out that this looks like a Pentium-class
26 processor, not 386 or 486. While I'm sure it will happily act like a
27 {3|4}86, it will also probably happily work as a pentium-mmx. I have
28 never put gentoo on a 486 but I know it will work on a pentium farily
29 well.
30
31 If you cannot net-boot with PXE, you'll need to boot from something; I
32 guess the hard drive is the only choice. All you'll need on the hard
33 drive is grub, the kernel, and, optionally, any initial ramdisks or
34 anything you require, or splash images, etc -- in short, the contents
35 of the boot partition, and no more.
36
37 Then you can create a directory for the installation on an NFS-capable
38 server somewhere, and unzip the stage3, and chroot. You should be able
39 to build for a pentium-type machine on any modern system, as long as it
40 has 32-bit support.
41
42 The next step is to configure the kernel to be able to automatically
43 configure IP networking at boot time, and to allow the root fs on NFS,
44 both in their respective categories in menuconfig. There is also a
45 netboot.txt (i think...) file in the kernel Documentation that can
46 explain the command-line syntax for specifying that the kernel boot
47 with an NFS root and configure IP networking at boot time.
48
49 Finally, you build the kernel, and the rest of the system, and then
50 stick grub and the kernel image on the hard drive and you should be
51 good to go!
52
53 Your NFS server will have to provide the filesystem, so you'll have to
54 set up an NFS file share. That's easy. Since you can't net-boot (that
55 is, recieve kernel and such with TFTP through the PXE stuff) you won't
56 need a TFTP server. You can use a static IP address, but if not,
57 you'll need a dhcp server.
58
59 If you want more help with net booting, just say so. Ive done it
60 several times now.
61
62 Another nice thing about this configuration is that as long as the NFS
63 server can execute the same code as the diskless client (that is the
64 processor in the server is more capable and not less), then you can
65 build the system, and any packages thereafter, on the server and not on
66 your super-slow off-brand pseudo-pentium ; ) I don't think i need to
67 tell you how much nicer that will be for you.
68
69 Best of luck,
70 Dan
71
72
73 --
74 gentoo-user@g.o mailing list