How to Create UbuntuLiveusb

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.