HowTo create a Ubuntu + System Rescue CD USB startup disk

Motivation

Ubuntu is a great distro. The USB startup disk creating tool is great. You can carry Ubuntu everywhere. Although you can use the live/install iso image of Ubuntu to make rescue opperations, System Recue CD is much better for that. Here you are a way to have them both into the same USB drive by following a few simple steps. I am sure a better, more elegant integration is possible, but this one tries to be as easy to setup as possible.

Tested with:

  • Ubuntu 8.04.2 desktop i386 + SystemrescueCD 1.1.5
  • Ubuntu 8.10 desktop i386 + SystemrescueCD 1.1.5
  • Ubuntu 9.10 desktop i386 + SystemrescueCD 1.3.4

Steps

  1. Download desired Ubuntu iso image and SysrescCD iso image from their respective sites.
  2. Create a USB startup disk with the Ubuntu tool included under System->Administration menu.
  3. Extract System Rescue CD image in a folder with “Extract here” option on the context menu.
  4. Copy everything in the SysrescCD root folder to the USB drive root folder, except the “isolinux” folder.
  5. Copy the content of the isolinux folder into SysrescCD to syslinux folder in the USB drive except files “boot.cat” and “isolinux.bin”. From nautilus, just copy them all and skip copying this two files when asked.
  6. Edit “syslinux.cfg” and add these lines at the end:
label SystemrescueCD
  kernel rescuecd
  append initrd=initram.igz
include isolinux.cfg

Test

Now boot from the USB drive. It behaves like a normal Ubuntu installation CD but you have System Rescue CD boot images in the menu, starting with “SystemrescueCD” which is the standard boot. Press ESC to go to the boot prompt and press F1-F10 to access System Rescue CD boot prompt and help screens.

You can use “qemu” to test the install:

$ sudo apt-get install qemu

Umount the USB drive and boot within qemu (change /dev/sdg to your actual USB device). To do this as a normal (non-root) user you need to be in the disk group.

$ qemu /dev/sdg

Add some customization

Create a file “autorun” on the USB drive root directory. Example:

# Mount boot media read-write (in case it is USB, etc.)
mount /mnt/cdrom -o remount,rw
# Configure network with DHCP
dhclient

Cusmomize some boot options. Edit /syslinux/syslinux.cfg and add options to the “append” line:

...
append initrd=initram.igz setkmap=es
...

Enjoy

Leave a comment if it works for you.

Anuncios

4 pensamientos en “HowTo create a Ubuntu + System Rescue CD USB startup disk

  1. Thanks for this tip! I had to use freedos (BIOS upgrade…) but didn’t want to kill my live Lucid.

    It (mostly?) works with Ubuntu 10.04 (some daily build) + SystemrescueCD 1.5.2.
    There is a 3rd file common to the isolinux/syslinux dirs: VESAMENU.C32. I skipped it too.

    It adds tons of options to the boot menu. I guess that’s a feature.
    The systemrescuecd_Xorg option failed with kernel panic for me. Don’t know if the install method or SystemRescueCD is at fault.
    The normal SystemRescueCD option boots fine. freedos also works. Didn’t try others.

  2. My developer is trying to convince me to move to
    .net from PHP. I have always disliked the idea
    because of the expenses. But he’s tryiong none the less. I’ve been
    using Movable-type on various websites for about a year and am concerned about switching to another platform.
    I have heard very good things about blogengine.net. Is there a way I
    can import all my wordpress posts into it? Any kind of help would be really appreciated!

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s