在Linux上制作启动盘

此页面将展示如何在Linux上制作启动盘,此处为U盘

  • 将U盘插入对应端口。注意: U盘上的所有数据将被替换。
  • 使用fdisk(8)查看U盘的磁盘标识符

      $ sudo fdisk -l
      255 heads, 63 sectors/track, 60801 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disk identifier: 0x7ecb51e2
    
      Device Boot      Start         End      Blocks   Id  System
      /dev/sda1   *           1          52      409600   27  Unknown
      Partition 1 does not end on cylinder boundary.
      /dev/sda2              52       18959   151870464    7  HPFS/NTFS
      /dev/sda3           18959       30432    92158977    f  W95 Ext'd (LBA)
      /dev/sda4           30432       60802   243944472    7  HPFS/NTFS
      /dev/sda5           18959       30432    92158976   83  Linux
    
      Disk /dev/sdb: 7958 MB, 7958691840 bytes
      255 heads, 63 sectors/track, 967 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disk identifier: 0x00000000
    
      Device Boot      Start         End      Blocks   Id  System
      /dev/sdb1               1         243     1951866    c  W95 FAT32 (LBA)
    
  • 在这种情况下,U盘的磁盘标识符是/dev/sdb注意: 您的U盘位置可能不同。
  • 拷贝镜像到U盘中

      $ tar -xvzf usb-*.tgz usb-*.img
      $ sudo dd if=usb-*.img of=/dev/sdb bs=1M
    
    • 注意: 请务必仔细检查磁盘标识符。dd(1)命令将破坏目标磁盘上的任何现有数据。
  • 这个过程需要5-20分钟。
  • 至此,您的启动盘已经制作成功。

results matching ""

    No results matching ""