Hi,
How would I format and delete partition with all data on a flash drive?
There’s a copy of Tumbleweed on the flash drive that I installed but now I’m having trouble formating the drive.
Hi
Look at using wipefs on the partition and device, NOTE make sure you select the right device!!!
wipefs -a /dev/sdX2
wipefs -a /dev/sdX1
wipefs -a /dev/sdX
Where X is your usb device… once done, remove and re-plug the device and all should be good for you to create a partition(s) as required.
sudo fdisk -l
will tell you which disk to wipe out. Read the output carefully.
There are even more tools available, like dd, GParted or if you are on Gnome, Gnome Disks. You can google for all of them.
nothing happens when I use those commands.
# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x1d6ca717.
Command (m for help): p
Disk /dev/sdb: 17.1 GB, 17062428672 bytes, 33325056 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x1d6ca717
Device Boot Start End Blocks Id System
Command (m for help): a
No partition is defined yet!
a: unknown command
Command (m for help):
There is still data on the drive and is not deletable. The partition is still on the drive but not readable.
# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x7633e015.
Command (m for help): d
No partition is defined yet!
Command (m for help):
Hi
What is the output with the device plugged in? If just sdb then you need to create a partition…