docs:man:installing_pld_linux_based_on_rescue_cd
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:man:installing_pld_linux_based_on_rescue_cd [2008-09-20 16:27] – grizz | docs:man:installing_pld_linux_based_on_rescue_cd [2024-11-13 13:35] (current) – [Partition disk] anything there arekm | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | /* pragma: section-numbers 2 */ | ||
Line 5: | Line 6: | ||
===== TOC ===== | ===== TOC ===== | ||
- | [[# | + | /* UndefinedMacro: |
+ | ===== Requirements ===== | ||
+ | Download RescueCD from : [[docs: | ||
- | ===== Requirements | + | ===== Partition disk ===== |
- | Download RescueCD from : [[http:// | + | Use for example '' |
+ | There are many ways you can partition your disk. Simple example below: | ||
+ | * cfdisk /dev/sdX (assuming fresh disk visible in system as sdX) | ||
+ | * choose GPT partition table | ||
+ | * create 10MB BIOS Boot partition | ||
+ | * create 1GB EFI System partition | ||
+ | * create Linux partition (or more partitions) for PLD | ||
+ | |||
+ | |||
+ | \\ :!: Write something more here :!: | ||
+ | |||
+ | |||
+ | |||
+ | ===== Filesystem ===== | ||
+ | Initiate swap space: | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | Make filesystem (ex. ext4): | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | We need to create mountpoint and mount partition into it: | ||
+ | < | ||
+ | # 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. | ||
+ | ===== Network configuration of RescueCD ===== | ||
+ | |||
+ | 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. | ||
+ | |||
+ | ==== eth0 interface configuration: | ||
+ | |||
+ | Assume you want 192.168.0.2 with /24 network (CIRD notation is preferred) | ||
+ | |||
+ | < | ||
+ | IPADDR=192.168.0.2/ | ||
+ | ONBOOT=yes | ||
+ | BOOTPROTO=none | ||
+ | </ | ||
+ | |||
+ | ==== Default gateway and default gateway interface configuration: | ||
+ | |||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | ==== DNS resolver IP addresses configuration: | ||
+ | |||
+ | Add default nameservers: | ||
+ | |||
+ | < | ||
+ | nameserver 8.8.8.8</ | ||
+ | |||
+ | === Reload network === | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | ===== Poldek' | ||
+ | In file **/ | ||
+ | |||
+ | |||
+ | |||
+ | < | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Packages installation ===== | ||
+ | |||
+ | All packages are installed using **poldek** tool (it is a package manager for PLD). | ||
+ | |||
+ | < | ||
+ | # poldek --root /pld | ||
+ | |||
+ | poldek> install LIST OF PACKAGES REQUIRED FOR RUNNING SYSTEM | ||
+ | </ | ||
+ | |||
+ | Packages which make sense to be installed: | ||
+ | |||
+ | < | ||
+ | |||
+ | If **xfs** filesystem was chosen then please install: | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | \\ :!: Write something more here :!: | ||
+ | |||
+ | |||
+ | |||
+ | ===== Kernel installation ===== | ||
+ | |||
+ | |||
+ | ==== Prepare to install kernel ==== | ||
+ | |||
+ | Before installing kernel you need to mount kernel proc, sys and dev filesystems inside of chroot: | ||
+ | |||
+ | < | ||
+ | # mount -o bind /sys /pld/sys | ||
+ | # mount -o bind /dev /pld/dev | ||
+ | </ | ||
+ | |||
+ | You need to tell initrd generator which hardware driver is needed to access your rootfs filesystem | ||
+ | by setting scsi_hostadapter alias in **/ | ||
+ | |||
+ | < | ||
+ | |||
+ | **lspci -k** command run on rescuecd can help you to find a correct driver: | ||
+ | |||
+ | < | ||
+ | 00:01.1 IDE interface: Intel Corporation 82371AB/ | ||
+ | Kernel driver in use: ata_piix | ||
+ | Kernel modules: ata_piix, pata_acpi, ata_generic | ||
+ | </ | ||
+ | |||
+ | Note **Kernel driver in use: ata_piix** (alias scsi_hostadapter ata_piix) | ||
+ | |||
+ | While at it, on actual installed PLD system (not needed on rescuecd), you can do the same for network card driver: | ||
+ | |||
+ | < | ||
+ | |||
+ | (again **lspci -k** will help to choose correct one) | ||
+ | |||
+ | |||
+ | Configure **/ | ||
+ | |||
+ | < | ||
+ | /dev/sda2 / ext4 defaults 0 0 | ||
+ | </ | ||
+ | |||
+ | \\ :!: Write something more here :!: | ||
+ | |||
+ | |||
+ | |||
+ | ==== Kernel installation ==== | ||
+ | |||
+ | |||
+ | < | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | |||
+ | You can also install multiple different kernels. | ||
+ | |||
+ | By default kernel installation also generates initrd based on mounted /proc, /sys, /dev files and configured fstab, modprobe.conf and few others configuration files. generated initrd (which by default is initramfs cpio image) is saved in /boot. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | There are two initrd generators used in PLD: geninitrd and dracut. Choose one. | ||
+ | |||
+ | === geninitrd === | ||
+ | |||
+ | If something fails or you want to regenerate initrd manually you can do it using: | ||
+ | |||
+ | < | ||
+ | |||
+ | command. Real example: | ||
+ | |||
+ | < | ||
+ | |||
+ | //-v// option causes geninitrd to write additional information, | ||
+ | |||
+ | === dracut === | ||
+ | |||
+ | :!: Write something more here :!: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | PLD supports systemd and non-systemd installations. In case of systemd installation you need to install package | ||
+ | |||
+ | < | ||
+ | |||
+ | package and setup default boot kernel cmdline option in grub/lilo. Add | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | If booting with new initrd fails you can use **debuginitrd** and **debuginitrd=sh** boot kernel cmdline options to debug the problem. | ||
+ | ===== Bootloader ===== | ||
+ | |||
+ | ==== grub2 ==== | ||
+ | |||
+ | Install grub2 on boot sector of disk: | ||
+ | |||
+ | < | ||
+ | |||
+ | Generate configuration file for grub2: | ||
+ | |||
+ | < | ||
+ | |||
+ | Resulting file is saved as **/ | ||
+ | |||
+ | |||
+ | ==== lilo (deprecated) ==== | ||
+ | Edit **/ | ||
+ | |||
+ | < | ||
+ | read-only | ||
+ | lba32 | ||
+ | prompt | ||
+ | timeout=100 | ||
+ | |||
+ | image=/ | ||
+ | label=pld | ||
+ | root=/ | ||
+ | initrd=/ | ||
+ | </ | ||
+ | And execute: | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | |||
+ | ==== Advanced configuration ==== | ||
+ | Advanced lilo and grub configuration is described here: [[: | ||
+ | |||
+ | |||
+ | |||
+ | ===== udev ===== | ||
+ | \\ :!: Write something more here :!: | ||
+ | |||
+ | |||
+ | |||
+ | ===== User accounts ===== | ||
+ | |||
+ | By default **root** account doesn' | ||
+ | |||
+ | < | ||
+ | |||
+ | \\ :!: Write something more here :!: | ||
+ | |||
+ | ===== Finishing ===== | ||
+ | |||
+ | If manual network configuration was required for RescueCD then most liikely you need to repeat that [[docs: | ||
+ | |||
+ | Last step is umount all filesystems: | ||
+ | |||
+ | < | ||
+ | |||
+ | and reboot: | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | If you find errors on this page or want to add anything to installation procedure please write to us at feedback / pld-linux.org. | ||
+ | |||
+ | \\ :!: Write something more here :!: | ||
| | ||
+ | |||
+ | |||
+ | | ||
docs/man/installing_pld_linux_based_on_rescue_cd.1221920863.txt.gz · Last modified: 2008-09-20 16:27 by grizz