PrintLogo

Debian on a USBCard -- Part 4 - Final Configuration




In this article we created a kernel for our USBCard system. Once we have the kernel in place we need to run lilo and adjust some other configuration files. To do this, just boot off of the Superrescue CD again and:

mount -t ext3 /dev/sda1 /mnt
chroot /mnt

Now, we can edit /etc/lilo.conf:

boot = /dev/sda
map = /boot/.map
image= /boot/vmlinuz
root=/dev/sda1
read-only

Your particular boot parameters, of course, may be different. We also need to edit /etc/fstab:

/dev/sda1   /   ext3   noatime   1 1
/dev/sda2   none   swap   sw   0 0
proc   /proc   proc   defaults   0 0

Run mkswap /dev/sda2 to set up your swap file. Also run lilo, now, and your system will boot using vmlinuz. One other thing we have to do is configure the network by editing /etc/network/interfaces:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.50.100.111
network 10.50.100.0
netmask 255.255.255.0
broadcast 10.50.100.255
gateway 10.50.100.82 





This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art359.html

Copyright 1997-2008 NetAdminTools.com. Read our Terms of Use.