Can't find the live USB tutorial anymore

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Can't find the live USB tutorial anymore

Postby Bam » Mon Feb 25, 2008 2:24

Quite some time ago on this forum there was a great tutorial to create a bootable liveUSB from the sabayon liveCD. I still have one of my USB sticks set up with 3.3 but would like to make a new one. The old post was here (from my bookmarks): viewtopic.php?t=3008 . It now shows "The requested topic does not exist."

I've searched the forums & wiki, but can't seem to find it. Does anybody have a link?

Thanks.
Bam
Young Hen
 
Posts: 31
Joined: Sun May 27, 2007 22:30

Re: Can't find the live USB tutorial anymore

Postby xlnagla » Wed Feb 27, 2008 2:32

This is quite old, but the forum is even older. Thanks to spritz. You might also want to check http://www.gentoo.org/doc/en/liveusb.xml.

The actual post is now gone to the archives amid the shuffling of the forum updates, which is why your link is broken.

I recently got the Sabayon 3.2 mini Live edition running on a flash disk, I know some other people have been trying to get this going as well so I thought I'de share with you guys what I did.

Part 1, formatting.

First thing I did was try the standard "Syslinux" method of creating a live distro on a flash disk. Syslinux boots from FAT media so I formated the disk as a fat 32 partition. I did this with a windows utility that formats USB drives, this utility seems to fix problems that can show up trying to boot to flash drives that have been reformatted many times. I found this tool along with other information about live cds on flash memory here...(http://www.beezmo.com/FloobyDustDir/FDK ... pixUsb.htm)
The link for the utility should be

ftp://ftp.compaq.com/pub/softpaq/sp2700 ... P27213.exe

You might not need this utility, but for me it came in pretty handy(it works on all flash drives, not just HP/Compaq).

Part 2, Syslinux

Next I installed syslinux on the drive via the method posted here...( http://www.howudune.com/knoppix.php ), Heres a quick breakdown of the important parts...

"~~~~~~~~~~~~~~from howudune.com~~~~~~~~~~~~~~~~
download Syslinux from http://syslinux.zytor.com/index.php. These instructions used syslinux-3.11.zip.
Extract the syslinux files to C:\syslinux-3.11.
Insert you USB Key into a USB slot in your PC and note the drive letter that it is assigned.
Run "C:\syslinux-3.11\win32\syslinux.exe (target drive)" where the target drive is the letter assigned to your USB key. Ex. "C:\syslinux-3.11\win32\syslinux.exe E:"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`"


Part 3, copying the CD over

Next thing I did was to copy the CD over to the root of the flash drive(yes that means I took the files out of boot and isolinux subfolders and moved them to the root of the flash drive as well). After moving the files to the root I had to rename isolinux.cfg to syslinux.cfg, also edit syslinux.cfg to remove references to the subfolders... here is an example of what mine looks like....
~~~~~~~~~~~~~~~~~~~~~~syslinux.cfg top couple of lines~~~~~~~~~~~~~~~~`
DEFAULT sabayon
GFXBOOT bootlogo
GFXBOOT-BACKGROUND 0xB63E3A
APPEND root=/dev/ram0 initrd=sabayon.igz unionfs init=/linuxrc cdroot doslowusb looptype=squashfs max_loop=64 loop=/livecd.squashfs splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 quiet --

LABEL sabayon
menu label ^Start SabayonLinux 3.2 MiniEd.
kernel sabayon
append root=/dev/ram0 initrd=sabayon.igz unionfs init=/linuxrc cdroot doslowusb looptype=squashfs max_loop=64 loop=/livecd.squashfs splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 quiet --

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Part 4, more formatting

Now when I boot I have issue where it will boot, but when trying to mount and find the live image it would fail(this is where most people on the forums were stuck). What I did was to edit the initrd.scripts file to make it a little more verbose so I could see why exaclty it was failing. What I noticed is that the mount command that was being issued would fail on fat partitions. Simple solution, setup a second partition that is able to be mounted. I chose ext3, but there may be other formats that work aswell. I booted up a knoppix cd and ran "qtparted". Through qtparted I was able to resize the fat partition to leave about 800 megs free at the end of the disk(the image is only about 700 megs, but since ext3 is a journaled filesystem the same file "image.squashfs" takes more space. I also made sure to set the first partition(the fat partition) to Active(in qtparted right click on the partition and hit set active). After this was completed I copied two files "image.squashfs" and "livecd" over to the ext3 partition.

Part 5, enjoy

After these steps I was able to boot just like from the CD but with quite noticible speed increase. The partition with the image.squashfs(the ext3 partition) is locked, but the fat partition comes up writeable(so becareful what files you modify/delete). When using the flash drive from windows onlly the first partition(the fat partition) will show up and is usable just like any other flash drive. Abut 25 megs is occupied on the fat partition.

Good Luck and Enjoy:)

~spitrage


~xlnagla
xlnagla
Sagely Hen
 
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Can't find the live USB tutorial anymore

Postby Bam » Fri Feb 29, 2008 19:02

That's the one I was looking for. Thanks xlnagla. :D
Bam
Young Hen
 
Posts: 31
Joined: Sun May 27, 2007 22:30


Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest