Edit your
livecd linux # cd /etc livecd etc # nano -w fstab /dev/sda1 /boot ext2 noauto,noatime 1 2 /dev/sda3 / ext3 noatime 0 1 /dev/sda2 none swap sw 0 0
Edit your
livecd linux # cd /etc livecd etc # nano -w fstab /dev/md1 /boot ext2 noauto,noatime 1 2 /dev/md3 / ext3 noatime 0 1 /dev/sda2 none swap sw,pri=1 0 0 /dev/sdb2 none swap sw,pri=1 0 0 /dev/vg/usr /usr ext3 noatime 1 2 /dev/vg/portage /usr/portage ext2 noatime 1 2 /dev/vg/distfiles /usr/portage/distfiles ext2 noatime 1 2 /dev/vg/home /home ext3 noatime 1 2 /dev/vg/opt /opt ext3 noatime 1 2 /dev/vg/tmp /tmp ext2 noatime 1 2 /dev/vg/var /var ext3 noatime 1 2 /dev/vg/vartmp /var/tmp ext2 noatime 1 2
Configure your network in
livecd etc # cd init.d livecd init.d # ln -s net.lo net.eth0 livecd init.d # cd ../conf.d livecd conf.d # echo 'config_eth0="192.168.1.10 netmask 255.255.255.0 brd 192.168.1.255"' >> net livecd conf.d # echo 'routes_eth0="default via 192.168.1.1"' >> net livecd conf.d # rc-update add net.eth0 default(If you compiled your network card driver as a module, add it to /etc/conf.d/modules livecd conf.d # echo 'modules="r8169"' >> /etc/conf.d/modules(If you want to reconnect via ssh after you have rebooted your new box) livecd conf.d # rc-update add sshd default
Set the root password using
livecd conf.d # passwd New UNIX password:type_the_password Retype new UNIX password:type_the_password_again passwd: password updated successfully
Edit
Europe/Brussels
Check the system configuration in
livecd conf.d # nano -w /etc/rc.conf livecd conf.d # nano -w /etc/conf.d/keymaps
Install RAID and LVM2 utilities.
livecd conf.d # emerge mdadm lvm2
Install a system logger like
livecd conf.d # time emerge syslog-ng vixie-cron real 1m54.099s user 1m2.630s sys 0m34.620s livecd conf.d # rc-update add syslog-ng default livecd conf.d # rc-update add vixie-cron default
Install the necessary file system tools (
livecd conf.d # emerge xfsprogs(If you use the XFS file system) livecd conf.d # emerge jfsutils(If you use the JFS file system) livecd conf.d # emerge reiserfsprogs(If you use the Reiser file system) livecd conf.d # emerge dhcpcd(If you need a DHCP client) livecd conf.d # emerge ppp(If you need PPPoE ADSL connectivity)
Emerge
livecd conf.d # time emerge grub real 1m4.634s user 0m39.460s sys 0m15.280s livecd conf.d # nano -w /boot/grub/grub.conf
default 0 timeout 10 title Gentoo root (hd0,0) kernel /boot/kernel root=
livecd conf.d # grub Probing devices to guess BIOS drives. This may take a long time. grub> root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd0) 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. grub> quit
livecd conf.d # grub Probing devices to guess BIOS drives. This may take a long time. grub> root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd0) 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. grub> root (hd1,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd1) grub> quit