I recently made my pen-drive bootable with Ubuntu 14.04. But I need to unboot my pen-drive now. I formatted my pen-drive once,But the size of the pen-drive still shows 2.25 MB. Whereas,this is an 8GB pen-drive. How can I get rid of this problem. I'm still using Windows 7.
Ubuntu – How to restore original size and unboot the bootable USB pendrive
usbwindows 7
Related Solutions
Rather than using WOEUSB, try using a piece of software that I can confirm to work, called MKUSB (also known as "Do USB Stuff" / dus
). (Ubuntu Wiki pages: MKUSB, MKUSB GUI)
There may be versions of this in the repositories already, but I prefer to have the 'latest' so I keep using the PPA, which is why I indicate to set up the PPA on your system specifically here.
First, install the MKUSB PPA so we get the latest MKUSB version:
sudo add-apt-repository ppa:mkusb/ppa
sudo apt-get update
sudo apt-get install mkusb mkusb-common dus guidus
Next, run mkusb
. It'll ask you if you want to run the version called 'dus', we want to hit Yes at that screen.
It will open a terminal window for the console output, which is very useful to have so you can see the progress of the write tasks.
It should prompt you for your sudo
credentials as well, however I'm running this from a Live USB at the moment so it doesn't prompt me, it just goes to the next screen in the GUI:
Once you click OK you'll see this screen. Choose "Install (make a boot device)" and hit OK:
Then choose "Extracting Windows installer"
It will then open a page asking you to navigate to the ISO. Go to the ISO file, select it, then hit OK.
It'll then ask you to select the device you want to write to. This will overwrite all data on the selected device, so make sure you select the right one (in my system, /dev/sdc
is the USB stick I'm going to put the Windows installer disk onto)
Click "OK" and it'll confirm you want to begin the write process.
It'll list the tasks it wants to do, and ask you if you really want to do this. Select "Go", then hit "Go" when you're ready for it to run.
The console window will gain focus and you can watch the 'progress':
This will take many of your system resources and will result in some slowness on your computer at times, so you might want to go get a coffee or read the newspaper or take a quick walk. This will take some time to complete, because it clones the ISO to a tarball, and then extracts the tarball to the target device.
When it's done, the GUI will return with this screen if it successfully created the disk:
Hit OK, and remove the disk from your computer. You can then shut down and boot to the installer USB stick that was created.
A warning: Once you install Windows, you will then need to boot to a LiveUSB for Ubuntu, and follow the steps to run Boot Repair (the link is from the Ubuntu Wiki) in order to restore Grub so you can boot into Linux again. Otherwise, you will only be able to boot into Windows (this is why Windows is typically installed first before you install Ubuntu).
Best Answer
If you want to know how to reformat your 8GB flash drive from Windows 7, then ask how to do it on Superuser Q&A, not here. The following commands are run from the terminal in Ubuntu. The results of these steps are reproducible. I reformatted 2 USB flash drives with the following steps after writing Ubuntu ISOs to them with
dd
Remove all of your USB devices except for the 8GB USB flash drive that you want to reformat, so you won't get confused about the device name of the USB flash drive later on.
List all the partitions.
Search the results of the command for output that looks like this:
If you see something like
7864 MB
(8GB) in the output (see the example output above), then that is your 8GB USB flash drive. In this example it is called/dev/sdc
. Now open the Disks application from the Dash and check again to make sure that the device name of your 8GB flash drive is the same as what you got from running the command:sudo fdisk -l
.Create a partition table on the disk of type msdos, sometimes known as MBR or Master Boot Record.
In this example I used
/dev/sdc
for the name of the device which is what was found in the results of step 2. I can't stress strongly enough how important it is to verify the device name before running this step!Warning: If you type the wrong device name you may overwrite your operating system or another one of your partitions containing important personal files!!! So be careful and check the device name a second time. Open the Disks application and check the device name of your 8GB USB flash drive in Disks. It should be the same device name!!! Now check again! You don't want to accidentally type the wrong device name!
Add an empty "primary" partition, which will hold a FAT filesystem later.
Once again in this example I used
/dev/sdc
for the name of the device which is what was found in the results of step 2. The command specifies the start point (from 0 MB) to the end point (8192 MB). If the 8GB USB flash drive does not have the full 8192 MB space, parted will adjust it automatically. If the terminal returns a message that the start point can't start at 0 MB and you have to use some other small number close to 0 MB, type Y to accept this. Note the command is creating a single, primary partition on the whole disk.This newly created partition will have the ID
/dev/sdc1
. That is because the device name in this example is/dev/sdc
and the 1 at the end is because it is the first partition on that device.Create a FAT filesystem on the /dev/sdc1 partition by formatting the partition.
/dev/sdc1
is the partition ID from step 4. "8GB-USB" is the partition label, which can be your own choice of label, just enclose the label inside two double quote characters.You now have a ready-to-use reformatted USB flash drive with an 8GB FAT partition.