pasterfleet.blogg.se

Windows 10 format usb drive linux command line
Windows 10 format usb drive linux command line







  • Enter your Ubuntu administrator password when prompted and press Enter.
  • WINDOWS 10 FORMAT USB DRIVE LINUX COMMAND LINE INSTALL

    Open the main menu, move your cursor over "Accessories" and then click on "Terminal." At the terminal prompt, type sudo apt-get install gparted and press Enter. Plug your flash drive into an empty USB port and back up any data on the drive.Please replace /dev/sdb1 with your corresponding device.

    windows 10 format usb drive linux command line

    Issue the command below to format the new volume: sudo mkfs.vfat /dev/sdb1 Once again pay attention to this name as there will not be any protection to prevent you to erase an other disk.

    windows 10 format usb drive linux command line

    See your new partition label with the command lsblk.Then press letter w to write table to disk and exit. Making a primary partition when prompted, if you are not sure. You will be prompted for the size of the partition. Then press letter o to create a new empty DOS partition table. Make a new partition table in the device: sudo fdisk /dev/sdb Just be patient.įor example: dd if=/dev/zero of=/dev/sdb bs=4k & syncĭd: error writing '/dev/sdb': No space left on deviceĨ127512576 bytes (8.1 GB) copied, 1236.37 s, 6.6 MB/s (option status=progress is not mandatory but provide you some feedback) Type very carefully this name or your may end up erasing one of your other disks. Replace /dev/sdb with your corresponding device.

    windows 10 format usb drive linux command line

    In my case its /dev/sdbĮrase everything in the pen drive (This step is Optional): sudo dd status=progress if=/dev/zero of=/dev/sdb bs=4k & sync Then identify your pen drive by it's SIZE. List your block storage devices by issuing the command lsblk In case you can't get your device formatted from the GUI, try this way.







    Windows 10 format usb drive linux command line