I have a PC, where I installed Ubuntu on the hard disk, and the bootloader on the USB drive. Please don't ask me why :P . I Want to know the answer if the formatting is done normally, using the right click popup menu and clicking on the format button, either on Windows or Ubuntu

  • Do you want to remove the Ubuntu bootloader, or do you want to keep it in the USB drive? - I would suggest that you install the bootloader into the internal drive. See this link, help.ubuntu.com/community/Grub2/Installing
    – sudodus
    Jan 10, 2017 at 5:47

2 Answers 2


No. Formatting will not typically remove the MBR. The MBR and the partition table both live in the first 512 bytes of the drive. Wiping the first 512 bytes of the drive will eliminate both which is not what you have in mind. To eliminate only the content of the MBR (Master Boot Record) issue the command `sudo dd if=/dev/zero of=/dev/sdX bs=446 count=1 where /dev/sdX is the drive you wish to wipe the boot record from.

Be careful to confirm that you have the right device beforehand by checking the output of sudo fdisk -l or lsblk or lsscsi

Ideally, in your situation I think what you wish to do is to install grub to the MBR of the Hard Disk

Source: https://www.cyberciti.biz/faq/howto-copy-mbr/

  • So, right clicking on the drive and formatting won't remove the bootloader in any OS, right? Jan 9, 2017 at 20:58
  • Not to my knowledge. Formatting is a high level process typically done on a partition and not on an entire device. I try to never say never because all things are possible given the right (or wrong) conditions.
    – Elder Geek
    Jan 9, 2017 at 21:04

mkusb provides a surefire method to restore a working USB drive to it's original condition.

The Wipe menu gives options to zero out the first megabyte of the drive, (wiping out the MBR), restore the MSDOS partition table and then partition the drive with a FAT32 file system.

The script uses dd to do this, but it wraps a layer of safety around the process using a simple GUI with checks and double checks.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .