Wednesday, October 26, 2011

恢复u盘的默认状态

Restore Usbstick

Take care about which device actually is your USB stick. The next command will render all data on /dev/sdX inaccessible.
  • First, wipe the bootsector of the USB stick:
dd if=/dev/zero of=/dev/sdX bs=512 count=1
  • Then, create a new FAT32 partition on the stick and write a FAT32 filesystem on it (vfat or type b in fdisk terminology):
fdisk /dev/sdX 
n
p
1


t
b
w


mkdosfs -F32 /dev/sdX
or (mkfs.vfat -F 32 -n mutilboot /dev/sdX1)

No comments: