HOWTO: Integrate System Rescue CD/Partimage into UBCD

If you have a tutorial or tip related to the UBCD, why not share it with other users here?

Moderators: Icecube, StopSpazzing

Locked
Message
Author
Victor Chew
Posts: 1359
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

HOWTO: Integrate System Rescue CD/Partimage into UBCD

#1 Post by Victor Chew » Wed Mar 28, 2007 11:50 pm

You need to download the ISO image for System Rescue CD, which includes the Partimage binaries.

After you have downloaded the System Rescue CD ISO image, extract its content to the harddisk (assume c:\sysrescd). Also extract the UBCD ISO image to the harddisk (assume c:\ubcd) if you haven't done so.

c:\sysrescd should have the following files/folders:

Code: Select all

bootdisk\
isolinux\
loadlin\
manual\
oscar\
syslinux\
sysrcd.dat
Copy:

- c:\sysrescd\isolinux\vmlinuz1 to c:\ubcd\custom\sysrescd
- c:\sysrescd\isolinux\initrd1 to c:\ubcd\custom\sysrescd.gz
- c:\sysrescd\sysrcd.dat to c:\ubcd

Now c:\ubcd should look like this:

Code: Select all

boot\
custom\
  custom.cfg
  sysrescd
  sysrescd.gz
dosapps\
images\
isolinux\
menus\
syslinux\
tools\
website\
sysrcd.dat
ubcd.ico
autorun.inf
Edit "c:\ubcd\custom\custom.cfg" with a text editor:

Code: Select all

MENU INCLUDE /menus/defaults.cfg
LABEL back
	MENU LABEL ..
	KERNEL menu.c32
	APPEND /menus/main.cfg
LABEL sysrescd
	MENU LABEL System Rescue CD
	kernel /custom/sysrescd
	append initrd=/custom/sysrescd.gz acpi=off root=/dev/ram0 init=/linuxrc dokeymap vga=785
That's it! Create a customized UBCD image using "c:\ubcd\tools\ubcd2iso\ubcd2iso.bat" and you are ready to run System Rescue CD under "User-Defined Tools". Once the launch is complete, type "partimage" at the command prompt.

All the various options for booting System Rescue CD are found in "c:\sysrescd\isolinux\isolinux.cfg". I have taken the boot command from the default "fb640", but you are free to add others as well eg. fb800, fb1024, nofb etc.

freeballer
Posts: 33
Joined: Fri Mar 11, 2005 11:05 am

corrections to victor's fine work

#2 Post by freeballer » Sat Jun 16, 2007 5:06 pm

I wasn't able to get it booting either, so I played around a little before giving up and pasting code for code what was in isolinux.cfg in sys... dir and changed to include same folders as victor's tutorial

Code: Select all

	APPEND root=/dev/ram0 initrd=/custom/rescuecd.igz init=/linuxrc vga=791 looptype=squashfs loop=/sysrcd.dat dokeymap cdroot splash=silent

and is currently booting in vmware

albatros
Posts: 2
Joined: Sun Jun 17, 2007 11:09 pm

Does not seem to work.

#3 Post by albatros » Mon Jun 18, 2007 11:19 am

It seems I did not dwld the same version as Victor, I have the 0.3.6 ver, normally the latest and there are folders that Victor is mentioning that I don't have in my iso and the files

(assume c:\sysrescd and c:\ubcd) are the folders that I have extracted system rescue iso and UBCD iso respectively

c:\sysrescd\isolinux\vmlinuz1 and c:\sysrescd\isolinux\initrd1 were not found but I have replaced them with rescuecd and rescuecd.igz respectively. Moreover, I have copied the three folders, i.e bootdisk,isolinux and syslinux in my custom folder keeping the 110MB sysrcd.dat file in the root folder of UBCD.

Modified my custom.cfg to read as below

Code: Select all

LABEL sysrescd
   	MENU LABEL System Rescue CD
  	Kernel /custom/rescuecd
  	Append initrd=/custom/rescuecd.igz acpi=off root=/dev/ram0 init=/linuxrc dokeymap vga=785

It kind of starts, even get the penguin picture then halts there asking to choose what kind of default parameters, and stuck there.

Victor could you please lay a helping hand and give us the new updated way of how to integrate the system rescue CD.

Thx so much

Victor Chew
Posts: 1359
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

#4 Post by Victor Chew » Wed Jun 27, 2007 6:39 am

It worked for me when I copied the params from "fb640" in isolinux.cfg:

Code: Select all

LABEL sysrescd
  MENU LABEL System Rescue CD
  kernel /custom/rescuecd
  append root=/dev/ram0 initrd=/custom/rescuecd.igz init=/linuxrc vga=785 looptype=squashfs loop=/sysrcd.dat dokeymap cdroot splash=silent

grayfox
Posts: 48
Joined: Sat Mar 22, 2008 6:04 am

Need help to

#5 Post by grayfox » Sun May 11, 2008 10:12 am

:cry: I have tryed all of these on this forum , it loads and goes to the end and stop with .....booting.

I also tryed interate Gparted and it to stopped with ....booting

Here is one :
LABEL rescuecd
MENU LABEL System Rescuecd CD v 0.4.0
KERNEL memdisk
APPEND initrd=/custom/rescuecd.igz root=/dev/ram0 init=/linuxrc vga=785 dokeymap


Iam using Vista OS. Could this be my probable?

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#6 Post by Icecube » Sun May 11, 2008 12:47 pm

@grayfox
Your config file is wrong.
The KERNEL and APPEND command are wrong (The KERNEL is not memdisk).

See the isolinux.cfg of System Rescuecd CD for the right parameters (the ones mentioned in isolinux.cfg).

Tutorial for systemrescue 0.4.1

After you have downloaded the System Rescue CD ISO image, extract its content to the harddisk (assume "c:\sysrescd"). Also extract the UBCD ISO image to the harddisk (assume "c:\ubcd") if you haven't done so.

"c:\sysrescd" should have the following files/folders:

Code: Select all

bootdisk\
isolinux\
syslinux\
sysrcd.dat
sysrcd.md5
usbstick.htm
Copy the System Rescue files to your ubcd folder:
Make a folder "rescuecd" in "c:\ubcd\"
Copy sysrcd.dat to "c:\ubcd\"
Copy the "bootdisk" and "isolinux" folder to "c:\ubcd\rescuecd\".

Edit config files:
Make a file called rescuecd.cfg in "c:\ubcd\rescuecd\isolinux\" (Look in c:\sysrescd\isolinux\isolinux.cfg" for the right commands if you have a newer version and adapt the paths)

The contents of the rescuecd.cfg file must be similar to:

Code: Select all

default rescuecd
append initrd=/rescuecd/isolinux/rescuecd.igz video=ofonly vga=0 cdroot
timeout 300
prompt 1
display /rescuecd/isolinux/f1boot.msg
F1 /rescuecd/isolinux/f1boot.msg
F2 /rescuecd/isolinux/f2images.msg
F3 /rescuecd/isolinux/f3params.msg
F4 /rescuecd/isolinux/f4arun.msg
F5 /rescuecd/isolinux/f5troubl.msg
F6 /rescuecd/isolinux/f6pxe.msg
label rescuecd
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=ofonly vga=0 cdroot
label vmlinuz2
  kernel /rescuecd/isolinux/vmlinuz2
  append initrd=/rescuecd/isolinux/vmlinuz2.igz video=ofonly vga=0 cdroot
label rescue64
  kernel /rescuecd/isolinux/rescue64
  append initrd=/rescuecd/isolinux/rescue64.igz video=ofonly vga=0 cdroot
label highres
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=ofonly vga=5 cdroot
label fb640
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz vga=785 cdroot
label fb800
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz vga=788 cdroot
label fb1024
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz vga=791 cdroot
label fb1280
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz vga=794 cdroot
label i810fb640
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=i810fb:640x480 cdroot
label i810fb800
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=i810fb:800x600 cdroot
label i810fb1024
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=i810fb:1024x768 cdroot
label intelfb640
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=intelfb:640x480 cdroot
label intelfb800
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=intelfb:800x600 cdroot
label intelfb1024
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=intelfb:1024x768 cdroot
label nokeymap
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz setkmap=us vga=788 cdroot
label vesa
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz vga=788 cdroot forcevesa
label fr
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=ofonly vga=5 setkmap=fr cdroot
label uk
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=ofonly vga=5 setkmap=uk cdroot
label minishell
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=ofonly cdroot minishell=/bin/ash
label boothttp
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=ofonly vga=5 cdroot boothttp=ask
label rescuehd
  kernel /rescuecd/isolinux/rescuecd
  append init=/sbin/init
label reschd32
  kernel /rescuecd/isolinux/rescuecd
  append init=/sbin/init
label reschd64
  kernel /rescuecd/isolinux/rescue64
  append init=/sbin/init




label freedos
  kernel memdisk
  append initrd=/rescuecd/bootdisk/freedos.img floppy
label memtest
  kernel memdisk
  append initrd=/rescuecd/bootdisk/memtestp.img floppy
label ranish
  kernel memdisk
  append initrd=/rescuecd/bootdisk/ranish.img floppy
label aida
  kernel memdisk
  append initrd=/rescuecd/bootdisk/aida.img floppy
label ntpass
  kernel memdisk
  append initrd=/rescuecd/bootdisk/ntpass.img floppy c=3 h=64 s=32
label gag
  kernel memdisk
  append initrd=/rescuecd/bootdisk/gag.img floppy
label dban
  kernel memdisk
  append initrd=/rescuecd/bootdisk/dban.img floppy
label disk1
  localboot 0x80
label disk2
  localboot 0x81
label floppy
  localboot 0x00
label nextboot
  localboot -1
Don't forget to add the following in rescuecd.cfg after F1, F2, F3, F4, F5, F6.

Code: Select all

label rescuecd
  kernel /rescuecd/isolinux/rescuecd
  append initrd=/rescuecd/isolinux/rescuecd.igz video=ofonly vga=0 cdroot
Edit "c:\ubcd\custom\custom.cfg" with a text editor:

Code: Select all

MENU INCLUDE /menus/defaults.cfg
LABEL back
   MENU LABEL ..
   KERNEL menu.c32
   APPEND /menus/main.cfg
LABEL sysrescd
   MENU LABEL System Rescue CD V0.4.1
   CONFIG /rescuecd/isolinux/rescuecd.cfg
The CONFIG command loads the isolinux config file for System Rescue, with all options as the normal System Rescue cd, but it requires a new version of isolinux.
Download syslinux from http://www.kernel.org/pub/linux/utils/boot/syslinux/.

Extract the syslinux archive to "c:\syslinux\".

To update isolinux for the CD version
- Copy "c:\syslinux\core\isolinux.bin" to "c:\ubcd\isolinux\".
- Copy "c:\syslinux\com32\menu\menu.c32" to "c:\ubcd\isolinux\".
- Copy "c:\syslinux\com32\modules\chain.c32" to "c:\ubcd\isolinux\" (not necessary)
- Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd\isolinux\" (not necessary)

To update syslinux for the bootable USB key
- Copy "c:\syslinux\core\ldlinux.sys" to "c:\ubcd\syslinux\".
- Copy "c:\syslinux\mbr\mbr.bin" and "c:\syslinux\ldloader.bss" to "c:\ubcd\tools\ubcd2usb\".
- Copy "c:\syslinux\com32\menu\menu.c32" to "c:\ubcd\syslinux\"
- Copy "c:\syslinux\com32\modules\chain.c32" to "c:\ubcd\syslinux\" (not necessary)
- Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd\syslinux\" (not necessary)

Delete unnecessary files:
You can delete the following files in "c:\ubcd\rescuecd\isolinux\"

Code: Select all

boot.cat        (boot catalog file needed for the iso image, but when you remaster the iso an updated boot catalog will be formed.)
isolinux.bin    (already included in ubcd)
isolinux.cfg    (replaced by rescuecd.cfg)
memdisk         (already in "c:\ubcd\isolinux\")
Remaster the iso:
If you don't know how to do it, see viewtopic.php?t=1343.
Last edited by Icecube on Mon May 12, 2008 7:24 pm, edited 3 times in total.

Locked