ColinApplegate
|
Size: 3081
Comment:
|
Size: 3254
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 26: | Line 26: |
| Type sudo zcat boot.img.gz > /dev/sxx (this will extract the contents of boot.img.gz onto the usb stick), enabling you to boot off the USB drive. | MAKE THE VFAT FILESYSTEM FIRST on /dev/sxx1 or you will be limited to 782M (as if you typed mkfs.vfat /dev/sxx) as that is the partition table setup of boot.img.gz |
| Line 28: | Line 28: |
| If you get a permission denied message when you try this, type: sudo chmod 666 /dev/sxx and then type sudo zcat boot.img.gz > /dev/sxx (that should remedy the problem.) | Type sudo zcat boot.img.gz > /dev/sxx1 (this will extract the contents of boot.img.gz onto the usb stick), enabling you to boot off the USB drive. |
| Line 30: | Line 30: |
| Unplug and plug USB drive back in. This will cause usb stick to mount automatically. If not, mount it manually, via sudo mount /dev/sxx /mountpoint | If you get a permission denied message when you try this, type: sudo chmod 666 /dev/sxx1 and then type sudo zcat boot.img.gz > /dev/sxx1 (that should remedy the problem.) Unplug and plug USB drive back in. This will cause usb stick to mount automatically. If not, mount it manually, via sudo mount /dev/sxx1 /mountpoint |
| Line 34: | Line 36: |
| I have found that after you sudo zcat boot.img.gz > /dev/sxx the partition size is only 782M! That's not nearly enough for the whole Ubuntu filesystem to fit! So instead, I wiped /dev/sxx and used mkfs.vfat on /dev/sxx to ensure full usage of the space available and re-ran sudo zcat boot.img.gz | I have found that after you sudo zcat boot.img.gz > /dev/sxx1 the partition size is only 782M! That's not nearly enough for the whole Ubuntu filesystem to fit! So instead, I wiped /dev/sxx and used mkfs.vfat on /dev/sxx1 to ensure full usage of the space available and re-ran sudo zcat boot.img.gz |
I have been using Linux since I was in the 7th grade. I took Linux up seriously in my high school years at Yorktown High School's Computer Science class, taught by JeffreyElkner.
I first heard of Ubuntu in January of 2005. I have since installed Ubuntu on all my boxes. I attended Ubuntu Down Under in Sydney, Australia.
I will participate on Ubuntu's DCTeam and actively help to pioneer the creation of Edubuntu.
Documentation on making a modified version of Sugar on a Stick per Jeff Elkner's specifications:
First, download Sugar on a Stick from: http://wiki.sugarlabs.org/go/Sugar_on_a_Stick#Download_locations
Mount the ISO readwrite by creating a new directory, eg, /home/colin/newiso, then sudo mount -o loop -t iso9660 /home/colin/Desktop/soas-strawberry.iso /home/colin/newiso You now have readwrite access to that ISO image and can modify it as you please.
Creating a Live USB Customized Ubuntu 9.04 stick:
Acquire boot.img.gz from: http://colin.isa-geek.net:8081/boot.img.gz This contains the initial VFAT filesystem with the kernel, initrd, etc, syslinux, etc. All essential to the boot process.
Plug in your usb drive
Unmount the usb drive: type umount /dev/sxx1 (or whatever device your pen drive is).
say you downloaded boot.img.gz to /home/jeff/Downloads, perform cd /home/jeff/Downloads
MAKE THE VFAT FILESYSTEM FIRST on /dev/sxx1 or you will be limited to 782M (as if you typed mkfs.vfat /dev/sxx) as that is the partition table setup of boot.img.gz
Type sudo zcat boot.img.gz > /dev/sxx1 (this will extract the contents of boot.img.gz onto the usb stick), enabling you to boot off the USB drive.
If you get a permission denied message when you try this, type: sudo chmod 666 /dev/sxx1 and then type sudo zcat boot.img.gz > /dev/sxx1 (that should remedy the problem.)
Unplug and plug USB drive back in. This will cause usb stick to mount automatically. If not, mount it manually, via sudo mount /dev/sxx1 /mountpoint
Now, we have a USB drive formatted as VFAT, we need to copy the root filesystem recursively with the flags -R and -L for cp to ensure proper duplication of the filesystem of the modified Ubuntu distribution. I highly recommend using VirtualBox to create the modified Ubuntu distribution as that provides you with a clean Ubuntu 9.04 install or using a small 20gb partition that you can triple boot to for a clean workspace. Therefore, you can modify the distribution as you wish without any additional bloatware that you do not want.
I have found that after you sudo zcat boot.img.gz > /dev/sxx1 the partition size is only 782M! That's not nearly enough for the whole Ubuntu filesystem to fit! So instead, I wiped /dev/sxx and used mkfs.vfat on /dev/sxx1 to ensure full usage of the space available and re-ran sudo zcat boot.img.gz Then I performed cp -R -L /copy(the root filesystem) /chroot/(the usb drive)
To best accomplish copying the root filesystem of your converted .vdi (expand) is to mount the .raw image via loopback then chroot into that environment. Example:
Reboot using usb and enjoy!
Now this is how to create a bootable USB image of Ubuntu 9.04. BUT. We want to modify the contents of the ISO image to include GASP, GASP games and geany.
ColinApplegate (last edited 2009-09-25 21:08:02 by pool-173-79-130-140)