spacer

Sysresccd-manual-en How to install SystemRescueCd on harddisk

History


Introduction

The idea is to install SystemRescueCd tools onto a Linux partition to easily recover your system in case something goes wrong. You will have an installed system that works like other linux systems installed by other distributions. If you just want to be able to run SystemRescueCd from your hard disk, and have an entry in your bootmanager (Lilo or Grub), there is an easier method, that is explained in the next chapter.

WARNING: Be aware that this operation may give you a useless system if you don't strictly follow instructions below.

Usage

The entire job is processed from the official SystemRescueCd CDRom. This means that you have to burn the official version and boot your computer from it.

procedure

step-01: Create a new partition

You have to resize an existing partition and then create an empty ext2fs partition. Note: only ext2fs is supported at the moment.

gparted

I will suppose that you now have an NTFS partition /dev/hda1 and an ext2 partition /dev/hda2. You have to update this on your setup.

step-02: Mount the new partition

mount /dev/hda2 /mnt/custom

step-03: Extract the current files from the cloop image

sysresccd-custom extract-nosizecheck
rm -rf /mnt/custom/customcd/isoroot
mv /mnt/custom/customcd/files/* /mnt/custom
cp /etc/inittab /mnt/custom/etc/
rm -rf /mnt/custom/customcd

step-04: Copy the SystemRescueCD kernel

cp /mnt/cdrom/isolinux/rescuecd /mnt/custom/boot

step-05: Customize the setup on your hard disk

Add this line to /mnt/custom/etc/fstab file

/dev/hda2  /  ext2  errors=remount-ro  0  1

Copy this file from /usr/share/sysresccd/hdinstall/lilo.conf.in to /mnt/custom/etc/lilo.conf

lba32
boot = /dev/hda
map = /boot/.map
prompt
install = /boot/boot-menu.b
delay = 50
vga = normal
default=win
image = /boot/rescuecd
   root = /dev/hda2
   label = sysrcd
   read-only
   nocdroot
other = /dev/hda1
   label = win
   table = /dev/hda

WARNING: do not forget to replace /dev/hda1 and /dev/hda2 with your values if you want your system to boot.

step-06: Run lilo

mount -t devfs none /mnt/custom/dev
chroot /mnt/custom lilo
umount /mnt/custom/dev

step-07: Umount the new partition

umount /mnt/custom

Changes at boot time

At boot time, you should now have a prompt like this one:

LILO 22.5.1 This means that LILO is installed and running. If you let the timer run down (about 5 seconds), your default target will be launched. With the previous lilo.conf file, it will be Windows. If you wish to test your new SystemRescue partition, press the left shift key. You will get

LILO 22.5.1 boot:

Then enter "sysrcd". If you do not remember your target list, hit tabulation key and LILO will show you

LILO 22.5.1 boot:
win	sysrcd
spacer