
如何刻录linux系统盘到u盘
2016-08-20
BIOS 和 UEFI 可启动 USB
GNU/Linux
# dd bs=4M if=/path/to/linux.iso of=/dev/sdx && sync
/dev/sdx用lsblk查看替换
Windows
1、Rufus(rufus. akeo . i e / ? lo ca le =zh _CN /)
2、USBwriter(source forge. net / pro jec ts /usbwr ite r/)
This tool is quite easy to use, you juste have to select an input file, a target device and then click on the Write button. You can use the Browse button to select an input file rather than typing its path by hand.
Mac OS X
先插入 USB 设备,OS X 会自动挂载它,然后在终端程序中运行:
diskutil list
用 mount 或者 sudo dmesg | tail(例如 /dev/disk1)来找出 USB 设备的名称,卸载设备上的分区(即,/dev/disk1s1)同时保留设备本身(即,/dev/disk1):
diskutil unmountDisk /dev/disk1
# dd if=image.iso of=/dev/rdisk1 bs=1m
20480+0 records in
20480+0 records out
167772160 bytes transferred in 220.016918 secs (762542 bytes/sec)
此时,在物理拔出U盘前,弹出您的USB驱动器可能是个好主意。
$ diskutil eject /dev/disk1
如何恢复U盘
GNU/Linux
# dd count=1 bs=512 if=/dev/zero of=/dev/sdx && sync
对于 FAT32,安装 dosfstools 软件包并运行:
cfdisk /dev/sdx
mkfs.vfat -F32 /dev/sdx1
dosfslabel /dev/sdx1 USB_STICK
Windows
在资源管理器中右键USB盘选择格式化