How do I reset a bootable drive so that it no longer is bootable?

As root, run dd if=/dev/zero of=/dev/sdX bs=512 count=1

Then you can add a partition table (fdisk /dev/sdX and press o, or you could use one of the graphical tools like gparted) and a new NTFS partition.


From Fedora install GParted from the Fedora package manager. Unmount the bootable USB drive. Open GParted and find the USB drive from the menu list of drives (see mouse cursor on screenshot below).

enter image description here

From the GParted menu choose: Partition -> Manage Flags. From the Manage flags on... window uncheck boot (see screenshot below).

enter image description here

From the GParted menu select Partition -> Format to -> NTFS.


You can achieve this by a simple system tool like diskpart from windows.

1)Open up the Start Menu and type “diskpart” in the run box.

2)Type “list disk”.enter image description here 3)“select disk #” where # is the disk number of your USB stick.

4)now enter the command “clean all”

The "clean" command zeroes out the sectors of the disk that contain the partition data. “clean all”command zero out all data on the USB stick .

Now you can format it from context menu as usual.

(since you mentioned NTFS , i hope you have access to a windows system)

To zero fill the drive from linux you can make use of dd. To wipe a disk by writing zeros:

dd if=/dev/zero of=/dev/sda bs=4k conv=notrunc

where /dev/sda with your device.