openSUSE Lizards

Authors
Adrian Schröter (2)
Andrea Florio (1)
Andreas Jaeger (5)
Andrew Wafaa (13)
Arvin Schnell (1)
Bernhard Walle
Casual Programmer
Christoph Thiel
Christopher Hobbs
Cristian Rodríguez
Dirk Müller (1)
Duncan Mac-Vicar
Gabriele Mohr
Henne (1)
Hubert Mantel (1)
J. Daniel Schmidt (1)
Jan Blunck
Jan Madsen
Jan-Christoph Bornschlegel (1)
Jan-Simon Möller (4)
Josef Reidinger
Kevin Dupuy (6)
Klaas Freitag (7)
Klaus Singvogel
Ludwig Nussel (1)
Marcus Moeller (1)
Marcus Schaefer
Martin Lasarsch (3)
Masim Sugianto (16)
Michael Andres (1)
Michal Marek (3)
Michal Zugec
mrdocs
Peter Nixon
Peter Pöml (1)
Petr Mladek
Rossana Motta (1)
Rupert Horstkötter (1)
Stanislav Visnovsky (1)
Stefan Haas
Stefan Hundhammer
Stefan Schubert (1)
Steffen Winterfeldt (2)
Susanne Oberhauser
Thomas Schraitle (4)
Xin Wei Hu





 

openSUSE LiveUSB with KIWI

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5 out of 5)
Loading ... Loading ...
Wednesday, May 21st, 2008 by Masim Sugianto Digg!

liveusb sysinfo

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 :

  1. Install openSUSE with standard option. The easiest way is using openSUSE liveCD installation :-D , but you still needed an installation DVD or DVD iso image as base installation source.
  2. 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
  3. Add the KIWI installation source.
  4. zypper sa http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_10.3 kiwi

  5. Installing kiwi component :
  6. zypper in kiwi kiwi-desc-livesystem kiwi-desc-usbboot

  7. 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 :
  8. <repository type="yast2" status="replaceable">
    <source path="/image/CDs/full-10.3-i386"/>
    </repository>

  9. 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 :
  10. <repository type="yast2">
    <source path="/mounts/dist/install/SLP/openSUSE-10.3-GM-DVD/i386/DVD1/"/>
    </repository>
    <repository type="rpm-md">
    <source path="http://download.opensuse.org/repositories/openSUSE:/10.3:/Testing/openSUSE_10.3/"/>
    </repository>
    <repository type="rpm-md">
    <source path="http://download.opensuse.org/update/10.3/"/>
    </repository>

  11. 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 <version>2.5.0</version>
  12. 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)
  13. Clean up temporary folder for kiwi processing
  14. rm -rf /tmp/kiwi*

  15. Run the kiwi command (replace KDE with Gnome if you more preferred with GNOME desktop manager)
  16. kiwi --prepare /usr/share/kiwi/image/kwliveCD-suse-10.3 --root /tmp/kiwi-tmp --add-profile KDE --logfile terminal

  17. 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 ;-)
  18. Create the compressed image. The process will produces the image named openSUSE-10.3.i686-2.5.0 on /tmp/kiwi-image/
  19. mkdir /tmp/kiwi-image
    kiwi –type usb –create /tmp/kiwi-tmp -d /tmp/kiwi-image –logfile terminal

  20. 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)
  21. Umount (ie : umount /dev/sdc1)
  22. Create a bootable LiveUSB stick with openSUSE 10.3 by run the command :
  23. 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

  24. Try your LiveUSB stick by rebooting with USB boot as your first device boot priority.

LiveUSB partition

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.


6 Comments »

Comment by Robin
2008-05-21 12:27:21

Great guide :)

btw:
> 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 :

Afaik that’s not needed. The repository is marked as “replacable” and kiwi will fill in the right repository itself (at least this is how it works with the netboot configurations).
Otherwise you would have to create a new hash for this configuration

Comment by Vavai
2008-05-23 09:12:45

Hi Robin,

Thank you for your reference.

 
 
2008-05-23 09:07:02

While this may be a working guide, it is far too complex for the average user. If you bother to compare it to Fedora’s offer, you will find that openSUSE has a long way to go to hook users by means of live USB images.

Steps for Fedora ( from a running openSUSE 11.0 Beta3 installation )

1.) Download iso image from http://download.fedoraproject.org/pub/fedora/linux/releases/9/Live/i686/Fedora-9-i686-Live.iso
2.) Open iso image with file roller and extract /LiveOS/livecd-iso-to-disk into directory where iso resides ( not necessary, but saves some typing )
3.) Install syslinux package ( zypper in syslinux )
4.) run livecd-iso-to-disk –overlay-size-mb 512 /path/to/iso /path/tousbstick ( adjust path/to/iso and /path/to/usbstick

If anything’s amiss the script will tell you what to do.

The resulting bootable stick also has persistence, i.e. changes you make during a session will be preserved.

Comment by Vavai
2008-05-23 09:19:59

Hi,

I know what the Fedora community (and also Ubuntu Team) offered is more simple and pretty much easier than what I mentioned at the tutorial above, that’s why I’m thinking some easy way to do same job.

Coolo has an experimental test with the easiest way (simply 1 line of bash command), but it looks like have some specific issue with USB stick.

Anyway, thank you for describing how to make a fedora liveUSB.

 
Comment by rhorstkoetter
2008-05-23 14:19:57

You’re absolutely right. It’s far too difficult to get openSUSE LiveUSB up and running atm. No newbie would install openSUSE to his harddrive to get it running on an USB stick, at least IMHO.
Coolo’s approach is the right way from my perspective, although it’s not working for me so far.

I think openSUSE LiveUSB would be a good way to attract newbies for the distribution
- it’s damn fast
- it’s persistent, so users could tinker much more with the system as possible with LiveCDs
- and of course, there is no need to touch the harddrive

Last but not least, USB installation should be possible from within windows as well.
Fedora’s reference on this.. https://fedorahosted.org/liveusb-creator

Just to throw in my 2 cents!

 
 
Comment by ben
2008-08-26 14:44:31

Hi,

Thank you for this tutorial.

But I have a problem when the USB stick boots.
During the splashscreen.
The computer is “waiting for USB devices to settle…………….” and after there is “No USB stick found”.
Is anybody know what is wrong ?

Thank you.

 
Name
Email for notification (will not be published)
Website (optional)
Spam protection: Sum of 6 + 8 ?

Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.