Sysresccd-manual-en How to install SystemRescueCd on harddisk

From SystemRescueCd

Jump to: navigation, search

Contents

[edit] 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 an useless system if you don't strictly follow instructions below.

[edit] Usage

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

[edit] procedure

[edit] 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 you now have an NTFS partition /dev/hda1 and an ext2 partition /dev/hda2. You have to update this to your setup.

[edit] step-02: Mount the new partition

mount /dev/hda2 /mnt/custom

[edit] 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

[edit] step-04: Copy the SystemRescueCD kernel

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

[edit] step-05: Customize setup to 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
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.

[edit] step-06: Run lilo

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

[edit] step-07: Umount the new partition

umount /mnt/custom

[edit] Changes as 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 going down (about 5 seconds), your default target will be launched. With previous lilo.conf file, it will be Windows. If you wish to test your new SystemRescue partition, press 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
Personal tools
main pages