Linux boot USB disk partitioning

Source: Internet
Author: User

Linux boot USB flash drive is actually very simple. A dd command outputs the ISO image to the USB flash drive. However, this has brought about a problem. I have an 8g USB flash drive DD, and the ISO image is so large and read-only. Tragedy. In fact, there is a linuxliveusbcreater tool in Windows that can be used for production and the disk area is writable. He supports a lot of images. He used to start the USB flash drive. However, the 64-bit system has been used more recently, and he found that all the images supported by him are 32-bit by default. If you try to use it to directly create a 64-bit file, there are several successes. archlinux (you need to modify the label name) and fedora17livecd can be used. However, some versions cannot be started. For example, Fedora
17. However, it is only one partition. It seems that the system and other files are not ideal, especially on a USB flash drive. Try other solutions.

Try to partition the USB flash disk into a good partition, parted (cfdisk), 4 GB for one to install the DVD image, and the other to be located. Run the DD command to output the ISO image to the first partition of the USB flash drive. An error occurred while starting the test with a USB flash drive !!

Continue to the second solution. first use the DD command to mirror the ISO to the USB flash disk and use parted to view the image. For cfdisk, it seems like a two-layer partition. This should be the reason why parted cannot be viewed. No matter whether it is, it is found that only 4 GB is used, and the remaining space is free. Directly create, write, and quit. Format the partition mkfs. msdos, because this partition is mainly used to store files or use fat for better use in windows. Start the test and start the system successfully. The benefit of this solution is that it is read-only during system partitioning and ensures system security.

If dd may fail, you can add the Conv = notrunc option to enable non-truncated bytes to output the file. Watch-D-N 10 killall-10 DD is used to view the output progress in real time.

In fact, the first partitioning scheme is not unfeasible. We can partition it first, and then directly install grub to the USB flash disk. This scheme is more suitable for DIY systems.

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.