Thursday, June 12, 2008

Ubuntu on usb stick with jdk

Installation 7.10 close to:
1. ubuntu-804-usb-hard-drive-install
(instructions more close to this one, but this version doesn't work - desktop doesn't appears)
2. ubuntu-704-to-a-usb-hard-drive
(pure documented instructions, and I didn't try this one due to old release date)

Than edit grub (without this step usb stick doesn't boot ubuntu, just grub menu appears on athescreen)
"sudo gedit /boot/grub/menu.lst"
remove all added at bottom from hard disk grub
and rename "hd1" for flash grub with "hd0"
You can edit this on fly in a loaded grub menu with "e" and boot edited with "b".

Run boot from USB storage.

After, you can comment swap space within /etc/fstab or exclude it while installation with manual prepare disk space. It makes faster your system.
"sudo gedit /etc/fstab"

Add network settings, sources of packages.
Install mc, jdk.

Copy tomcat.

PS:
0.
I used CD burned ubuntu 7.10 for i386 on my USB 4Gb OCZ ATV flash drive with Dell AMD 2x1.8 Ghz and 2Gb memory laptop.

1.
grub-error-21-after-full-install-to-usb-hard-drive
sudo grub
grub> find /boot/grub/stage1
(hdx,y) The given out values substitute below
grub> root (hdx,y)
grub> setup (hdx)
2.
You can create live usb stick (it is more faster than full process installation on USB), but there are error with install jdk.
usb-ubuntu-804-persistent-install-via-the-live-cd

Link:
www.stonewarewebos.com - webOS-Ubuntu-PressRelease.pdf
http://www.pendrivelinux.com/2008/05/08/usb-ubuntu-804-persistent-install-via-the-live-cd/

No comments: