Core Linux Installation Guide
Preparation
- Perform this stage using your functioning PC.
- Download the
core_iur_disk-1.iso.gzfile. - Download any other applications you plan to install (eg Apache).
- Extract the ISO image from the
.gzfile. - Burn the
core_iur_disk-1.isoimage to a CD. - If the system you wish to use Core Linux on is not capable of booting from a CD-ROM drive, you will need to create the boot disk.
- Label a spare floppy disk ready for backing up your settings as you go along. Label the disk label "Core Linux Backup Disk".
Booting
- Perform this stage and the subsequent stages using your "Core Linux" PC.
- Insert the Core Linux CD-ROM in the CD-ROM drive.
- If your Core Linux system does not support booting from the CD-ROM drive, insert the Core Linux boot disk.
- Power on the computer.
- Once the system passes the Power-On Self Test (POST), the following prompt will appear:
LILO 22.3.3
------- Core Linux Distribution Install/Upgrade/Repair Disk -------
use root=/dev/[disk] to change the root disk [defaults to /dev/hdc]
boot: _ - If your CD-ROM drive is not
/dev/hdcthen you will need to boot the system with an adjustedrootparameter. This site uses the example of the CD-ROM drive being attached as/dev/hdb. - Press Enter to start booting the system.
- If you see the following lines appear, then the kernel was not able to read the root filesystem from the CD-ROM drive:
VFS: Cannot open root device "1600" or 16:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 16:00 - Login as
root. You are not prompted to enter a password.
Configuring Hard Disks
- Use
fdiskto create hard disk partitions as required. - Use
mke2fsto format new ext2 partitions. - Use
mkswapto format the swap partition. - Mount the partition you will use as the root partition for your installation under
/mnt/root. - Use
mkdirto create empty directories under/mnt/rootwhere you will mount other hard disk partitions (eg/usror/home). - Mount the other partitions at the directories you have just created.
Installing the "Core"
- Mount the CD with the Core source files at
/mnt/cdrom. - Run the
install_corescript with the argument:install_core /mnt/root - Copy the Linux kernel
.tar.gzfile to the directory/mnt/root/usr/src. - Unmount the CD-ROM drive.
- If you used a boot disk, unmount the floppy disk drive.
- Change to the new root directory, using the command:
chroot /mnt/root /bin/env HOME=/root /bin/bash --login
The Kernel
- Change to
/usr/src. Unzip and untar the kernel source. - Change to the Linux kernel source directory.
- At the system prompt enter:
make mrproper && make menuconfig - Configure your kernel with the features you predict will be necessary for your machine, given its planned purpose. If you have a network card fitted in your system, or will fit one in the near future, remember to select the correct drivers in the Network Configuration section of the kernel configuration interface.
- Save the configuration file with a memorable name (eg
myconfig1). - At the system prompt enter:
make dep && make bzImage - If you configured your kernel with module support, enter:
make modules && make modules_install - Copy the file
System.mapto/boot. - Copy the file
arch/i386/boot/bzImageto/boot.
Take time to backup
- Insert your backup floppy into the drive.
- Mount the floppy, remembering to use the
-t msdosswitch if necessary. - Copy the file
/boot/System.mapto/mnt/floppy. - Copy the file
/boot/bzImageto/mnt/floppy. - You could also backup your kernel config settings if you wish to use them again.
Configure LILO
- Edit the file
/etc/lilo.conf. - Change the line
to read
image = /boot/vmlinuzimage = /boot/bzImage - Add the line
after the
label = Coreimage = /boot/bzImageline. - Save the file and exit the text editor.
- If you have created more than 5 partitions on your hard disk drive, then you will need to create device nodes for them using the
mknodprogram.
Configure boot settings
- Edit
/etc/fstab. - Add lines for the swap partition and any other partitions you want mounted on startup.
- Save the file and exit the text editor.
- Change to the
/etc/rc.ddirectory. - Locally backup the files:
rc.si rc.ha rc.su rc.mu - Edit
rc.si, the system initialisation script. - Change the line
to read
hostname localhostwherehostname coreboxcoreboxis the name you want to give your system. This is name that appears at the login prompt. - Save the file and exit the text editor.
- Edit
/etc/hosts, the hostname resolution file. - Add the line
where
127.0.0.1 coreboxcoreboxis the name you want to give your system. If you plan to use this Core Linux system as a DNS server or relay, you should replace127.0.0.1with the IP address of the interface to which you want the hostname to resolve from an external system. - Save the file and exit the text editor.
Configure basic networking - optional
- You should already be in the
/etc/rc.ddirectory. If not, change to it. - Edit the file
rc.mu, the initialistaion script for runlevel 3. - Locate the comment
# setup networkand edit the two following lines to read:The above example assumes that the IP address of the Core Linux system should be 192.168.0.10 on a Class C subnet. Remember to remove theifconfig eth0 192.168.0.10 netmask 255.255.255.0 up
route add -net 192.168.0.0/24 dev eth0#symbols from the beginning of the line to "uncomment" them. Thanks to DJ Ruden for the correction on this section! - Save the file and exit the text editor.
- Add the following line to the file
rc.ha:ifconfig eth0 down - Save the file and exit the text editor.
- Edit
/etc/resolv.confto reflect the DNS settings for your network. - Save the file and exit the text editor.
Another Backup point
- Your backup floppy should still be in the drive and mounted.
- If it isn't, mount the floppy, remembering to use the
-t msdosswitch if necessary.
- Copy
/etc/lilo.confto/mnt/floppy - Copy
/etc/fstabto/mnt/floppy - Copy
/etc/rc.d/*to/mnt/floppy - Copy
/etc/resolv.confto/mnt/floppy
Rebooting to your new Core Linux system
- Unmount the floppy drive and remove the disk.
- Remove the CD from the CD-ROM drive.
- Reboot the system using:
shutdown -rn now - When the system has rebooted log in as
root. - At the system prompt enter:
passwd - Type and confirm a new password.
- Enter your new password and press enter.
- The screen displays the message:
Re-enter new password: - Re-enter your password and press enter.
- The screen displays the message:
Password changed.
Converting to ext3
- If you wish to use ext3, the journalling version of the ext2 file system, you can convert ext2 partitions to ext3 partitions. Kernel support for ext3 should be included in the kernel rather than as a module for stability.
- Hard disk partitions cannot be formatted in ext3 earlier in the installation process because the Linux kernel on the Core Linux boot disks does not support ext3. You could use an alternative boot disk to get around this.
- Convert your ext2 partitions to ext3 using the
tune2fscommand. - Edit
/etc/fstab. - Change the lines listing
ext2to readext3. For example:/dev/hda1 / ext3 defaults 1 1 - Reboot the system using:
shutdown -r now

The text of this page is licensed under a Creative Commons License.
