This directory is used to build a USB key containing a Kubuntu 8.04 LiveCD
with persistent OS files and persistent /home files.
+You will need to run as root for most things ...
Start by editing the "config" file. Be sure to get your USB_DEV
definition correct. The scripts you need to partition the key and
(LiveCD), you will be running as user "ubuntu" the password is
"bacula", and you will be in /home/ubuntu.
+The next step is to get a copy of kubuntu8.tar.gz, which is the
+USB boot image. Currently, it can be downloaded from:
+
+ www.bacula.org/downloads/kubuntu8.tar.gz
+
+or from:
+
+ www.sibbald.com/download/kubuntu8.tar.gz
+
+I recommend that you download it into the rescue/linux/usb directory.
+
+Finally, mount your USB key and detar the kubuntu8.tar.gz image
+into the first partition. Do this with:
+
+ ./write_usb_boot_partition
+
+You should now have a USB stick that can be booted providing the
+machine permits booting from the USB port -- this can be adjusted
+by modifying the BIOS boot sequence. On Dell machines, you can
+enter the BIOS setup by pressing F2 just after power on.
+
+Alternatively, most machines let you boot from an alternate device.
+For example if you press F11 while a Sony Viao is powering up, it
+will boot from the USB port.
+
+On Dell machines during power on, if you press F12, you will be
+able to select any boot device (one time only) other than the one
+that is the default (normally the CDROM or HDD).
====
#
# If you are unsure remove the USB device and rerun the fdisk -l
# If you get this wrong, your harddisk could be wiped out.
+# It is probably "sda" or "sdb" or "sdc"
#
-USB_DEV=/dev/sda
+USB_DEV=/dev/xxx
#
# When your USB key is mounted, what is the mount directory?
# If you are remastering a Ubuntu or Kubunto ISO (not normally done)
# Point to the ISO image
ISO_IMAGE=
-
echo "Reformat USB boot partition"
mkfs.vfat -F 16 -n kubuntu8 ${USB_DEV}1
+if [ ! -d ${MOUNT_POINT}/kubuntu8 ] ; then
+ mkdir -p ${MOUNT_POINT}/kubuntu8
+ created="yes"
+fi
mount ${USB_DEV}1 ${MOUNT_POINT}/kubuntu8
if [ $? -ne 0 ] ; then
echo "Mount of USB boot partition failed."
sync
sync
umount ${MOUNT_POINT}/kubuntu8
+if [ "x$created" = "xyes" ] ; then
+ rmdir ${MOUNT_POINT}/kubuntu8
+fi