I used a bunch of SD cards and USB along the years to install several Ubuntu in different computers, and now I would like to recover those cards to use them for normal storage. I can't seem to find any way to do it online.
Can someone help?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Just format it, bootable USB is nothing more than a setup utility for an operating system, it'll revert back to its original function (act as data storage) after you format it, same goes for MicroSD.
To handle the job I personally recommend the GParted tools, you can download it using below command.
sudo apt-get install gparted
Select your devices, navigate to Device → Create Partition Table to overwrite the data— don't forget to unmount any partition first.
Usually USB have
/dev/sdc as a device names, meanwhile MicroSD has
On the left side, choose your USB drive.
Then, on the right side you see 2 or three partitions. Select and remove them with the - button below until the stick is covered with "Free Space".
Select the Free Space and press the + button below to create a new partition and format it with the preferred file system. Done.
GParted is not too good at ISO9660 file systems. To reformat a flash drive that has been used by Startup Disk Creator, I use Disks to unmount any partitions. I then use GParted - Device/Create Partition Table, to create a new partition table, (usually msdos). Then I use GParted to create a new FAT32 or NTFS partition.
One advantage of the above method is that I can boot the Live USB toram and then use it to format itself.
In most cases you can use Disks alias
gparted is easier to use. It is available in Ubuntu live (in an SD card or USB pendrive), and you can install it into installed Ubuntu systems with
sudo apt update sudo apt install gparted
In some cases it might not work with Disks or
gparted. Then you can
If there are still problems you can analyze it according to the following links and links from them,
If you are planning to use the devices in Windows next, Windows make formatting very easy. However, it too is confused. So this is a very quick way:
dd if=/dev/zero of=/dev/sdc bs=1M count=1 (make sure
sdc matches your USB/SD drive`
Now take it to Windows and plug it in. Windows will ask if you want to format it, and click OK, then Format. Now it's all good!