]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/usb/README.usb
Update
[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 Note, the sqfs.tar.gz is the whole squashfs unsquashed.  
6
7 The kernel image (vmlinuz) is a copy of the most recent kernel i.e.
8
9   sqfs/boot/vmlinuz-2.6.24-22-generic
10
11 and initrd.gz is a copy of the most recent initrd.img i.e
12
13   sqfs/boot/initrd.img-2.6.24-22-generic
14
15 they are renamed and put in the kubuntu8 partition in:
16
17   casper/vmlinuz
18 and
19   casper/initrd.gz
20
21 respectively.
22
23 Note, initrd.gz is made after fixing the bug in
24 /usr/share/initramfs-tools/scripts/casper 
25 see note 2. in bugs with Kubuntu boot process below.
26
27 When updating the USB root partition (changing something), I 
28 strongly recommend that you work with the disk image then
29 repack it (pack_disk_image) and then run load_disk_image.
30
31
32 Packages needed:
33 apt-get install syslinux mbr
34
35
36 Kubuntu boot tricks:
37 1. Booting with persistence added to the kernel options will permit
38    mounting of a USB casper-rw and home-rw partitions on the USB key.
39    casper-rw is used to store changed OS files, and home-rw is the
40    home directory.
41
42
43 Bugs with Kubuntu boot process:
44 1. The initrd.gz image must be opened, fixed and the repacked.
45 2. The fix involves removing the ,mode=755 from the mount line for
46    the persistent OS partition (casper-rw) or /cow
47 3. I have removed /etc/rc0.d/S89casper and /etc/rc6.d/S89casper
48    because they are related to a CDROM boot and create false 
49    errors when booting from a USB key.