How do you factory reset a usb?
I have a hp 4gb usb that seems like it has a messed up partition table and ubuntu isn't recognizing all the space. I've tried formatting it in disks. That doesn't work. How do you make a usb good as new on ubuntu?
I formatted it in the default way - FAT. Originally what happened was that I did sudo dd if=memtest86-usb.img of=/dev/sdb to install memtest86 on the usb. When I was done with that I formatted it in the default way but Ubuntu kept calling it the 51mb volume in nautilus. I formatted it and tried to use it with winusb.
winusb gave me an error.
Installation failed ! Exit code: 256 Log: Formating device... Error: The backup GPT table is not at the end of the disk, as it should be. This might mean that another operating system believes the disk is smaller. Fix, by moving the backup to the end (and removing the old backup)? Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an extra 7655424 blocks) or continue with the current setting?
Error: You requested a partition from 1000kB to 4077MB. The closest location we can manage is 17.4kB to 157MB.
Then I tried following the advice on the first answer on this page. I'm trying to now use the usb with winusb and winusb just keeps trying to format it.
Output of sudo parted -l
:
Model: ATA TOSHIBA MK5076GS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 496GB 496GB primary ext4 boot
2 496GB 500GB 3868MB extended
5 496GB 500GB 3868MB logical
Model: USB DISK 2.0 (scsi)
Disk /dev/sdb: 4077MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 4077MB 4077MB fat32
Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/cryptswap1: 3868MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 3868MB 3868MB linux-swap(v1)
Default way: Ubuntu 14.04 program "Disks" - Format - (Quick) (FAT)
winusb is a linux program for making a windows install disk.
sudo parted -l
with the disk connected?sudo parted -l
), we have no idea why and cannot help you fix a Windows program that does read a USB. We don't do Windows stuff here and have no knowledge of it. You also need to explain what you mean by "default way". What commands/programs and what settings did you use?