As mentioned on previous post, today I’m playing with LiveUSB creation. Coolo, our lovely (and busy ) openSUSE project manager discard his experimental test of making LiveUSB due to various specific problem with the USB.
I released factory snapshots of USB and CD images – the USB shows just too many USB specific problems to be worthy, so I kind of decided to kill this idea again ;( More…
Before taking the tutorial mentioned by Luiz Fernando, I’m trying with KIWI LiveUSB stick tutorial. I’ve followed the tutorial last month but the process unfinished yet due to the complaining from KIWI that the image doesn’t fit on my 2 GB USB Flash Disk. At the moment, I was stopped the process and planned to continue after buying another bigger flash disk. I take this conclusion with the assumption KIWI need more than 2 GB of USB disk.
Today I used same tutorial with another assumption , probably the problem occurred due to the annoying bug with KIWI in earlier version, not with the size of USB disk. KIWI using same image used by LiveCD (about 700 MB), so, 2 GB of USB disk should be fit with the requirement of KIWI for building live USB stick.
With this assumption, I’m trying KIWI once again for building live USB stick with same device (2 GB of USB flash disk), and now the process ended successfully. I could make a running USB Live stick with KIWI Wiki guidance for making USB live stick. Below is the summary of guidance :
- Install openSUSE with standard option. The easiest way is using openSUSE liveCD installation , but you still needed an installation DVD or DVD iso image as base installation source.
- Copying the entire content of installation DVD to specified folder as installation source. If you used iso image, you could mount the iso into specified folder with this command :
mount -o loop name-of-iso-image specified-folderex :
mount -o loop openSUSE-10.3-GM-DVD-i386.iso /mnt/iso
- Add the KIWI installation source.
- Installing kiwi component :
- Make proper changes to usbboot config.xml files on /usr/share/kiwi/image/usbboot/suse-10.3/config.xml and replace following lines with your local repos :
- Make proper changes to livecd config.xml /usr/share/kiwi/image/kwliveCD-suse-10.3/config.xml and replace this portion xml code to your local repos :
- Newer version of KIWI complaining about the version number on config.xml (it should be version number, major and minor changes), so, change this line :
<version>2.5</version>with something like
- Remove file .checksum.md5 on /usr/share/kiwi/image/usbboot/suse-10.3/ (it’s hidden file, so make a deal with your display on file manager preferences, ie : show hidden files on konqueror)
- Clean up temporary folder for kiwi processing
- Run the kiwi command (replace KDE with Gnome if you more preferred with GNOME desktop manager)
- Kiwi will processing and building the image. It should be ended with the information “KIWI exited successfully done”. If you get an error exception, please make a deal with the error
- Create the compressed image. The process will produces the image named openSUSE-10.3.i686-2.5.0 on /tmp/kiwi-image/
- Plugin your USB flash disk and specifies the location of your USB flash on /dev folder (ls /dev/sd* will display your USB flash disk at the end of the list)
- Umount (ie : umount /dev/sdc1)
- Create a bootable LiveUSB stick with openSUSE 10.3 by run the command :
- Try your LiveUSB stick by rebooting with USB boot as your first device boot priority.
zypper sa http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_10.3 kiwi
zypper in kiwi kiwi-desc-livesystem kiwi-desc-usbboot
<repository type="yast2" status="replaceable">
rm -rf /tmp/kiwi*
kiwi --prepare /usr/share/kiwi/image/kwliveCD-suse-10.3 --root /tmp/kiwi-tmp --add-profile KDE --logfile terminal
kiwi --type usb --create /tmp/kiwi-tmp -d /tmp/kiwi-image --logfile terminal
kiwi --bootstick /tmp/kiwi-image/initrd-usbboot-suse-10.3.i686-2.1.1.splash.gz --bootstick-system /tmp/kiwi-image/openSUSE-10.3.i686-2.5.0
The above procedure using openSUSE 10.3 as base installation but the overall process *should be* work with openSUSE 11.0 or newer version with a small modification. Please change the process path according your openSUSE version.
Both comments and pings are currently closed.