0

I wanted to make a bootable Windows 10 USB on my Ubuntu 16.04 Gnome and in the process of following these steps I got myself into a few problems with my 8 GB pen drive disk.

  • GParted does not recognize the whole 8GB as unallocated. I think another 4GB partition was created but I don't seem to able to manage it via GParted.

    GParted doesn't recognize whole disk

  • I get errors when trying to format disk or erase it in Disks:

    Format disk error

  • When I run sudo mkfs.vfat /dev/sdb1 || sudo dd if=/dev/zero of=/dev/sdb1 bs=1M count=1 to format via command line I get the following output:

    mkfs.fat 3.0.28 (2015-05-16)
    
  • I tried opening the USB disk in GParted on another laptop (running Lubuntu) and there I could see the disk formatted correctly and showing up the whole 8GB. Could it the problem be my computer's system?

How am I to repair this USB stick so I can get a working windows bootable USB?

David Foerster
  • 36,264
  • 56
  • 94
  • 147
Gabriel Ziegler
  • 1,486
  • 2
  • 16
  • 23

3 Answers3

1

I had also problems using the standard partitioning tools. I solved it by using the program fdisk. Install it with

sudo apt install fdisk

and then invoke it with

sudo fdisk /dev/sd_your_usb_device

Don't forget to unmount your usb before, and DON'T manipulate your system disks!

Link on how to format a disk.

abu_bua
  • 10,783
  • what commands did you run after entering fdisk menu? – Gabriel Ziegler Jun 29 '18 at 16:55
  • use lsblk to identify your usb stick. For instance sudo fdisk /dev/sdb . press m key to get help, p to print partition table! Then delete partition you don't need by pressing d, by pressing n add new partition, afterwards save and exit by pressing the x key. -- Then you have to format your disk using the mkfscommand. YOU HAVE TO UNMOUNT YOUR DISK TO DO THAT! – abu_bua Jun 29 '18 at 17:10
1

I too face similar problem with Gparted. I have no Idea why this happens when I make bootable or persistent usb.

But I have easy trick. I use mkusb to format and freshly allocate pen-drive.I never gone through any terminal drill.

I hope it will work for you too.

https://help.ubuntu.com/community/mkusb

Aravind
  • 908
0

You should try another partitioning tool like GnomeDisks (gdisk), some usb sticks have very specific issues. Maybe one tool can succeed where another doesn't.

On GnomeDisks, select the usbstick and press the minus button on the right section above the partitioning table.

abu_bua
  • 10,783
  • That doesn't seem to work either. I get: Error deleting partition /dev/sdb1: Command-line `parted --script "/dev/sdb" "rm 1"' exited with non-zero exit status 1: Error: Partition doesn't exist. (udisks-error-quark, 0) – Gabriel Ziegler Jun 29 '18 at 13:19
  • You could also try this command line solution: https://askubuntu.com/questions/391654/format-a-usb-stick-completely Also, if it doesn't work, you probably gonna need to buy another usbstick. – Balbinator Jun 29 '18 at 14:35