This UbuntuLiveusb can be used to install ubuntu, as a rescue disk or as a portable linux, which is very convenient. I don't want to explain much about the commands. I believe that anyone who has worked on USB Linux knows what is going on. I don't know how to look at the corresponding howto file partition and format it. sda1 should be larger than m and set it to a boot partition, if it is a 1GU disk, just split it into one partition. sudocfdisk/dev/sdasudomkfs. ext2/dev/sda1
This Ubuntu Liveusb can be used to install the ubuntu system, as a rescue disk or as a portable linux, which is very convenient.
I don't know much about the commands. I believe anyone who has worked on usb linux knows what is going on, but I don't know what's going on. I want to see the relevant howto documentation.
Partition and format. sda1 must be larger than MB and set to boot partition. If it is a 1 gb usb flash drive, just split it into one partition.
Sudo cfdisk/dev/sda
Sudo mkfs. ext2/dev/sda1
Sudo mkfs. ext2/dev/sda2
Copy the content in livecd to the USB flash drive. Note that the last step will result in errors such as hard connection failure. Just ignore them.
Sudo mkdir/mnt/usb_disc
Sudo mount/dev/sda1/mnt/usb_disc
Sudo mkdir/mnt/live_cd
Sudo mount-o loop/tmp/ubuntu-8.04-desktop-i386.iso/mnt/live_cd
Sudo cd/mnt/live_cd/
Sudo cp-aR casper disctree dists install pool preseed. disk/mnt/usb_disc
Use extlinux to create boot Information
Sudo cd
Sudo mkdir/mnt/usb_disc/extlinux
Sudo extlinux-I/mnt/usb_disc/extlinux
Create and edit the/mnt/usb_disc/extlinux. conf file. The content is as follows:
DEFAULT/casper/vmlinuz
APPEND file = preseed/kubuntu. seed boot = casper initrd =/casper/initrd.gz ramdisk_size = 1048576 root =/dev/ram0 rw quiet splash --
Now a liveusb is ready. You can install the system with a USB flash drive.