This is an old revision of the document!
Download RescueCD from : http://rescuecd.pld-linux.org/ You need at least a i486 machine with 40MB RAM to run PLD RescueCD.
Use for example cfdisk
to partition your destination disk. Usually root partition (/) and swap is enough.
Write something more here
Initiate swap space
# mkswap /dev/sda1
Make filesystem (ex. ext3)
# mkfs.ext3 /dev/sda2
We need to create mountpoint, and mounnt partition into it.
# mkdir /pld # mount /dev/hda2 /pld
If We want to use more partitions (ex. /boot), We need to mount it too.
RescueCd
should configure (using DHCP) our network automatically during a boot process. If DHCP is not present, We need to do it manually. Let's assume We want to set IP to 192.168.0.2. /etc/sysconfig/interfaces/ifcfg-eth0 should looks like:
DEVICE=eth0 IPADDR=192.168.0.2 ONBOOT=yes BOOTPROTO=none
In file /etc/sysconfig/static-routes We added route to gateway (ex.: 10.0.0.254):
eth0 default via 10.0.0.254
In file /etc/resolv.conf we add at least one adress of DNS server:
nameserver 193.192.160.243
In the end We need to reload network configuration:
# service network restart
In file /etc/poldek/repos.d/pld.conf We need to set _arch = to chosen architecture ex.
_arch = x86_64
# poldek --root /pld poldek> install setup FHS dev pwdutils chkconfig dhcpcd poldek vim geninitrd \ modutils cpio lilo mount login mingetty
Write something more here
# mount /proc /pldroot/proc -o bind
Configure /etc/fstab ex.:
/dev/sda1 swap swap defaults 0 0 /dev/sda2 / ext3 defaults 0 0
Write something more here
# poldek --root /pld -i kernel
Edit /etc/lilo.conf
boot=/dev/sda read-only lba32 prompt timeout=100 image=/boot/vmlinuz label=pld root=/dev/sda2 initrd=/boot/initrd
And execute:
# chroot /pld /sbin/lilo
Edit /boot/grub/menu.lst
timeout 10 title pld root (hd0,1) kernel /boot/vmlinuz boot=/dev/hda initrd /boot/initrd
And execute
# chroot /pld /sbin/grub
A Grub's shell will started. Let's make some changes:
grub> root (hd0,1) grub> setup (hd0) grub> quit
Advanced lilo and grub configuration is described here: ../Bootloader
Write something more here
Write something more here