Skip to content

Instantly share code, notes, and snippets.

@ekinertac
Created May 22, 2012 21:14
Show Gist options
  • Save ekinertac/2771665 to your computer and use it in GitHub Desktop.
Save ekinertac/2771665 to your computer and use it in GitHub Desktop.
Create Bootable Thumb-Drive from windows(cmd)
$ diskpart
$ list disk
select disk 2 # write your own disk number
clean # this will delete disk's partitions
create partition primary size=1000 # write disk size in MegaBytes)
select partition 1 # select parition you just created
active # set active partition
format fs=fat32 quick # quick format with fat32 file system (fat32/extFat/NTFS)
assign # mount the disk
exit
# use this tool if you install a linux dist.
# http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
xcopy g:\*.* /s/e/f h:\ # copy all files and folder in g:\ drive to your new h:\ drive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment