This is an old revision of the document!
Download RescueCD from : Rescue CD. PLD rescue new is preferred.
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. ext4):
# mkfs.ext4 /dev/sda2
We need to create mountpoint and mount partition into it:
# mkdir /pld # mount /dev/sda2 /pld
If more partitions are going to be used (like you want to have separate /boot or /home) then these need to be mounted now, too.
RescueCD and installed PLD system will use the same way of configuring network.
By default both try to use DHCP to automatically configure network interface during a boot process. If that works for you you don't need to do anything.
If manual configuration is required then configure networking using files below.
Assume you want 192.168.0.2 with /24 network (CIRD notation is preferred)
DEVICE=eth0 IPADDR=192.168.0.2/24 ONBOOT=yes BOOTPROTO=none
enable networking, ipv4 networking, set default gateway and interface which should be used to reach geteway:
NETWORKING=yes IPV4_NETWORKING=yes GATEWAY=192.168.0.254 GATEWAYDEV=eth0
Add default nameservers:
nameserver 1.1.1.1 nameserver 8.8.8.8
# service network restart
In file /etc/poldek/repos.d/pld.conf We need to set _arch = to chosen architecture ex.
_arch = x86_64
# rpm --root /pld --initdb # poldek --root /pld poldek> install setup FHS udev pwdutils chkconfig dhcpcd poldek vim geninitrd \ kmod cpio lilo
Write something more here
# mount -o bind /proc /pld/proc # mount -o bind /sys /pld/sys # mount -o bind /dev /pld/dev
Configure /pld/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 /pld/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 /pld/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