Configure DHCP/BOOTP Server for NFSRoot Bootstrap.
Update ROM to EXT3 Version. Boot from NFS network root.
main rom>bfn
fdisk /dev/hda | cfdisk /dev/hda
mkfs.ext3 /dev/hda1
mkswap /dev/hda2
swapon /dev/hda2
sync
mkdir /mnt/x
mount -t ext3 /dev/hda1 /mnt/x
debootstrap --arch i386 dapper /mnt/x http://archive.ubuntu.com/ubuntu/
debootstrap --arch i386 hardy /mnt/x http://archive.ubuntu.com/ubuntu/
debootstrap --arch i386 sarge /mnt/x http://ftp.us.debian.org/debian/
echo 'raq' >/mnt/x/etc/hostname
nano /mnt/x/etc/network/interfaces
nano /mnt/x/etc/fstab
nano /mnt/x/etc/hosts
cp /etc/inittab /mnt/x/etc/inittab
cp /etc/securetty /mnt/x/etc/securetty
cp /etc/apt/sources.list /mnt/x/etc/apt/sources.list
chroot /mnt/x
apt-get update && apt-get upgrade
apt-get install openssh-server alien nano wget
passwd
base-config
[install kernel]
--------------------------------------------------------------------------------
#/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
#/etc/fstab
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda2 none swap sw 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
#/etc/hosts
127.0.0.1 localhost.localdomain
192.168.0.120 raq.localdomain.com raq
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
--------------------------------------------------------------------------------
Special Partitioning (/boot,swap,/,/base)
#/etc/fstab
/dev/hda3 / ext3 defaults,errors=remount-ro 0 1
/dev/hda1 /boot ext3 defaults,errors=remount-ro 0 0
/dev/hda4 /base ext3 defaults,errors=remount-ro 0 0
/dev/hda2 none swap sw 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
ROM Configuration for Filesystem:
Your boot_dev is /boot partition, the root_dev is your / partition.
[press spacebar on powerup to enter ROM mode]
boot
set_boot_dev hda1
set_root_dev hda3
set_boot_type disk
main
quit
--------------------------------------------------------------------------------
#/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
network 192.168.0.0 #optional
broadcast 192.168.0.255 #optional
gateway 192.168.0.1 #optional
--------------------------------------------------------------------------------
NFSRoot Server Preperation:
cp /tmp/sources.list /etc/apt/sources.list
apt-get update
apt-get install debootstrap nfs-user-server
mkdir /nfsroot-x86
debootstrap --arch i386 sarge /nfsroot-x86 http://ftp.us.debian.org/debian/
debootstrap --arch i386 dapper /nfsroot-x86 http://ftp.ale.org/pub/mirrors/ubuntu/
debootstrap dapper /nfsroot-x86 ftp://ftp.ubuntu.com/ubuntu
debootstrap dapper /nfsroot-x86 file:/media/cdrom0/ubuntu/
cp /etc/apt/sources.list /nfsroot-x86/etc/apt/sources.list
nano /nfsroot-x86/etc/inittab
nano /nfsroot-x86/etc/securetty
ttyS0
nano /nfsroot-x86/etc/fstab
192.168.1.10:/nfsroot-x86 / nfs defaults 0 0
proc /proc proc defaults 0 0
chroot /nfsroot-x86
apt-get update && apt-get upgrade
apt-get install debootstrap
apt-get install nano wget openssh-server alien
cd /var
./MAKEDEV ttyS0
./MAKEDEV hda
./MAKEDEV hdb
./MAKEDEV hdc
passwd
exit
echo '/nfsroot-x86 192.168.1.10/255.255.255.0(rw,no_root_squash)' >>/etc/exports
/etc/init.d/nfs-user-server restart
#/nfsroot-x86/etc/inittab
#1:2345:respawn:/sbin/getty 38400 tty1
#2:23:respawn:/sbin/getty 38400 tty2
#3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6
T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100
--------------------------------------------------------------------------------
APT Sources Data File (sources.list)
ubuntu:/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb http://archive.ubuntu.com/ubuntu dapper universe
deb-src http://archive.ubuntu.com/ubuntu dapper universe
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
deb http://archive.ubuntu.com/ubuntu dapper multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper multiverse
deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu dapper-commercial main
debian:/etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ sarge main contrib non-free
deb-src http://ftp.us.debian.org/debian/ sarge main contrib non-free
deb http://non-us.debian.org/debian-non-US sarge/non-US main contrib non-free
deb-src http://non-us.debian.org/debian-non-US sarge/non-US main contrib non-free
deb http://security.debian.org/ sarge/updates main
--------------------------------------------------------------------------------
Partitioning
To determine the size of your partitions in order to determine the sectors to
leave available to make your swap partition at the end, use cfdisk to create
partitions using Mb sizing, save, open with fdisk and use the sector information
to do the math...
Debootstrap
Use debootstrap to download Ubuntu installation packages using:
debootstrap dapper
or use a cd/dvd as the debootstrap source. Install the server version.
--------------------------------------------------------------------------------
Debian Install (Outdated!)
One very important thing to note here. You can pretty much partition the disk
however you want, but /boot & / must both be on /dev/hda1. The reason is that
(1) the cobalt boot rom will load the rom kernel, then switch to the kernel on
disk. It will only look on /dev/hda1 for it. So...if you plan on upgrading to a
newer kernel (either a premade rpm or a cobalt patch to a debian kernel), then
the kernel must be found here. (2) The rom by default has /dev/hda1 as the
location of /. You can set that at boot by typing (set_params "root=/dev/hda2")
in the boot menu of the rom. The only problem is that it doesn't save it. The
next time the machine goes through the rom boot sequence, it'll forget that you
told it where / was. There may be a way to set this permanently, however I
haven't found it. If you know...please let me know. I'd love to be able to use
ext3 on my / partition.
--------------------------------------------------------------------------------
#hardy:/etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb http://security.ubuntu.com/ubuntu/ hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu/ hardy-security main restricted
deb http://security.ubuntu.com/ubuntu/ hardy-security universe
deb-src http://security.ubuntu.com/ubuntu/ hardy-security universe
deb http://security.ubuntu.com/ubuntu/ hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu/ hardy-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ hardy partner
deb-src http://archive.canonical.com/ubuntu/ hardy partner
6.4 Ubuntu 6.06 (Dapper Drake)
6.5 Ubuntu 6.10 (Edgy Eft)
6.6 Ubuntu 7.04 (Feisty Fawn)
6.7 Ubuntu 7.10 (Gutsy Gibbon)
6.8 Ubuntu 8.04 (Hardy Heron)
6.9 Ubuntu 8.10 (Intrepid Ibex)