]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/usb/README.usb
Updates
[bacula/rescue] / rescue / linux / usb / README.usb
1
2 This directory is used to build a USB key containing a Kubuntu 8.04 LiveCD
3 with persistent OS files and persistent /home files.
4
5
6 Start by editing the "config" file. Be sure to get your USB_DEV
7 definition correct.  The scripts you need to partition the key and 
8 to write the boot image to it are all in this (usb) directory. 
9
10 After editing the config file, run:
11
12   ./partition_usb_key
13
14 Note, this script assumes that you have a 3GB or bigger key.  It
15 may work for a 2GB key, but you might want to reduce the size of
16 the second partition.
17
18 This script creates three partitions:
19
20  1. kubuntu8  -- USB boot partition containing the OS
21  2. casper-rw -- A writable ext3 partition for saving OS changes
22  3. home-rw   -- A writable ext3 partition for saving /home
23
24 When the key is booted, assuming you choose the first option 
25 (LiveCD), you will be running as user "ubuntu" the password is
26 "bacula", and you will be in /home/ubuntu.  
27
28
29
30 ====
31
32 The directory "remaster" contains the scripts that allow picking
33 apart a Kubuntu Hardy ISO and then updating and recombining the
34 parts into a USB boot image.  The information below is somewhat
35 low level and should not be needed unless you want to do your
36 own remastering either starting from the Kubuntu release or from
37 the Bacula remastered release.
38
39 Note, the sqfs.tar.gz is the whole squashfs unsquashed.  
40
41 The kernel image (vmlinuz) is a copy of the most recent kernel i.e.
42
43   sqfs/boot/vmlinuz-2.6.24-22-generic
44
45 and initrd.gz is a copy of the most recent initrd.img i.e
46
47   sqfs/boot/initrd.img-2.6.24-22-generic
48
49 they are renamed and put in the kubuntu8 partition in:
50
51   casper/vmlinuz
52 and
53   casper/initrd.gz
54
55 respectively.
56
57 Note, initrd.gz is made after fixing the bug in
58 /usr/share/initramfs-tools/scripts/casper 
59 see note 2. in bugs with Kubuntu boot process below.
60
61 When updating the USB root partition (changing something), I 
62 strongly recommend that you work with the disk image then
63 repack it (pack_disk_image) and then run load_disk_image.
64
65
66 Packages needed:
67 apt-get install syslinux mbr
68
69
70 Kubuntu boot tricks:
71 1. Booting with persistence added to the kernel options will permit
72    mounting of a USB casper-rw and home-rw partitions on the USB key.
73    casper-rw is used to store changed OS files, and home-rw is the
74    home directory.
75
76 Bugs with Kubuntu boot process:
77 1. The initrd.gz image must be opened, fixed and the repacked.
78 2. The fix involves removing the ,mode=755 from the mount line for
79    the persistent OS partition (casper-rw) or /cow
80 3. I have removed /etc/rc0.d/S89casper and /etc/rc6.d/S89casper
81    because they are related to a CDROM boot and create false 
82    errors when booting from a USB key.