Linux formatted USB drive, make u disk boot disk

Source: Internet
Author: User

System Properties:

[Email protected]:~$ uname-alinux huwei 3.16.0-44-generic #59 ~14.04.1-ubuntu SMP Tue Jul 7 15:07:27 UTC x86_64 x86_6 4 x86_64 Gnu/linux

Check the hard disk information, remember to back up the data on the USB flash drive, or you will be crazy!

[email protected]:~$ sudo fdisk -ldisk /dev/sda: 500.1 gb,  500107862016 bytes255 heads, 63 sectors/track, 60801 cylinders, total  976773168 sectorsunits = sectors of 1 * 512 = 512  bytessector size  (logical/physical):  512 bytes / 512 bytesi/o size   (minimum/optimal):  512 bytes / 512 bytesdisk identifier: 0x0000848f    Device Boot      Start          end      blocks   id  system/ dev/sda1   *        2048   961648639    480823296   83  Linux/dev/sda2        961650686   976771071     7560193    5  extended/dev/sda5        961650688   976771071     7560192    82  linux swap / solariswarning: gpt  (guid partition table)   detected on  '/dev/sdb '! the util fdisk doesn ' t support gpt. use  gnu parted.disk /dev/sdb: 7747 mb, 7747397632 bytes255 heads, 63  sectors/track, 941 cylinders, total 15131636 sectorsunits = sectors  of 1 * 512 = 512 bytesSector size  (logical/physical):  512  bytes / 512 bytesI/O size  (Minimum/optimal): 512 bytes /  512 bytesdisk identifier: 0x00000000   device boot       start         end      blocks    Id  System/dev/sdb1                1    15131635     7565817+  ee   gpt


To uninstall a USB flash drive:

[Email protected]:~$ umount/dev/sdb2

Formatting a USB flash drive

[Email protected]:~$ sudo mkfs.vfat/dev/sdbmkfs.fat 3.0.26 (2014-03-07) Mkfs.vfat:Device partition expected, not making F Ilesystem on entire device '/dev/sdb ' (use-i to override)

Prompt error, using the-I command

[Email protected]:~$ sudo mkfs.vfat-i/dev/sdbmkfs.fat 3.0.26 (2014-03-07)

To view hard disk information:

[email protected]:~$ sudo fdisk -ldisk /dev/sda: 500.1 gb,  500107862016 bytes255 heads, 63 sectors/track, 60801 cylinders, total  976773168 sectorsunits = sectors of 1 * 512 = 512  bytessector size  (logical/physical):  512 bytes / 512 bytesi/o size   (minimum/optimal):  512 bytes / 512 bytesdisk identifier: 0x0000848f    Device Boot      Start          end      blocks   id  system/ dev/sda1   *        2048   961648639    480823296   83  Linux/dev/sda2        961650686   976771071     7560193    5  extended/dev/sda5        961650688   976771071     7560192    82  linux swap / solariswarning: gpt  (guid partition table)   detected on  '/dev/sdb '! the util fdisk doesn ' t support gpt. use  gnu parted.disk /dev/sdb: 7747 mb, 7747397632 bytes239 heads, 62  sectors/track, 1021 cylinders, total 15131636 sectorsunits = sectors  of 1 * 512 = 512 bytesSector size  (logical/physical):  512  bytes / 512 bytesI/O size  (Minimum/optimal): 512 bytes /  512 bytesdisk identifier: 0x00000000   device boot       start         end      blocks    id  system

Formatted successfully, ready to pour into Ubuntu system

[Email protected]:/huwei/back/iso$ ll-atotal 8477836drwxr-xr-x 2 huwei huwei 4096 June 18:03./drwxr-xr-x 7 Huwei Huwei 4096 July 2 11:50.  /-rw-rw-r--1 Huwei huwei 4353378304 June 11:09 centos-6.4-x86_64-bin-dvd1.iso-rw-rw-r--1 huwei huwei 2653276160 June 12 15:13 cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.iso-rwxr-xr-x 1 Huwei huwei 1044381696 June 9 13:49 ubuntu-14.04.2- desktop-amd64.iso*-rw-r--r--1 Huwei huwei 630237184 June 17:53 zh-hans_windows_xp_professional_with_service_pack_3_ X86_cd_vl_x14-74070.iso

Using the DD command

[Email protected]:/huwei/back/iso$ sudo dd if=ubuntu-14.04.2-desktop-amd64.iso of=/dev/sdb

Wait..... Wait....

[Email protected]:/huwei/back/iso$ sudo dd if=ubuntu-14.04.2-desktop-amd64.iso of=/dev/sdb2039808+0 Records in2039808 +0 Records out1044381696 Bytes (1.0 GB) copied, 703.111 s, 1.5 mb/s

End, Success!

Linux formatted USB drive, make u disk boot disk

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.