Configuring the bootable flag on USB image in SUSE Studio

From openSUSE

    Portal Start   FAQ FAQ   Tour Tour   Howto Howto    API API   Feddback, bugs and known issues Bugs   Support and information channels Support   Download appliances and other things Download    Display index of "Category: SUSE Studio"   How to edit this documentation


It is known that in some situation the USB drive would not boot. Even sometimes it will boot once and stop booting afterwards. The problem is that the main partition should be marked as bootable. In order to do that, connect the usb disk and from a terminal do: (/dev/sdb has to be your USB: Make sure of that!)

umount /dev/sdb1 (and any other partition you have mounted automatically. Check it with the mount command)
fdisk /dev/sdb
\tp     «--- print partition table
\ta     «--- activate partition (bootable)
\t1 «--- partition 1 is bootable
\tw    «--- write changes to partition table

One can also try to set this on firstboot by running a self written script.