How can I remove MBR from external HD?


Recommended Posts

Updated to be clear about what I'm trying to achieve (original post at bottom):

I want to remove boot information from the MBR of an external hard drive:

1) Currently, the external hard drive has GRUB written to MBR

2) The partitions on the external hard drive are new, and did not exist when GRUB was installed to the MBR

3) I would like to erase only GRUB's boot information from the MBR while keeping the partitions intact

4) The partitions, in order are 40GB FAT32, 500GB NTFS, 120GB EXT3. They are all storage volumes, no OS.

5) Right now, if I try to boot from USB, this drive is seen and GRUB tries to load. GRUB then fails since there is no longer an OS on this drive.

6) If I tell the computer to boot from USB, I would like the computer to skip over this drive, rather then trying to boot it.

Thanks,

Matt

________________OLD ORIGINAL POST BELOW________________

I have an external hard drive (connecting via USB) with three partitions, 1FAT32, 1NTFS, 1EXT3. I need to erase GRUB from the MBR, but can't figure out how to do it. I don't want to replace it with another boot manager, in fact that's the problem, I need the drive to NOT be bootable. I've long since erased the linux partition that installed GRUB in the first place, and this is strictly a storage volume now.

I have Windows Vista and Ubuntu set up on my computer, so if you know of any tools I can use under either OS, it'd be appreciated. I also have XP on a virtual machine.

~Matt

Edited by AlfredSka

accesser thats only for the main drive and that will restore the mbr but only on the active drive not anything else

The fdisk /mbr command only re-writes the MBR on the system drive (DISK-0) using BIOS calls. You cannot specify any other drive for the fdisk /mbr command to operate on other than DISK-0.

Um if you wipe the MBR -- then there would be no partitions on your disk

http://en.wikipedia.org/wiki/Master_Boot_Record

If the disk is partition, then it would have a MBR. I think what your looking to do is just remove the Boot Flag from one of the partitions -- not remove the MBR itself.

Any number of partitions tools would be able to remove the boot flag/active flag from a partition for you. Or overwrite the MBR with just your partition details, etc.. The above link gives you about everything you would need/want to know about the MBR ;)

It sounds like I need to explain a bit more:

1) ALL partitions were deleted before these partitions were created. Realize, the boot record is not written over by simply deleting partitions. None of the partitions have a boot flag. For proof, I've attached a screenshot of gparted:

gparted.jpg

2) I don't want the drive to boot ANYTHING. Essentially, if I have several devices hooked up to the computer at boot time, and I tell the computer to boot from USB, I want it to skip over this drive (and not consider it an option).

Here's some more information:

I found Roadkil's Sector editor which shows GRUB occupying the boot sector:

sec01.png

sec17.png

It looks like it's occupying sectors 0-17. I've never used a utility like this before. Would it be safe to write zeros to these sectors? Or would that delete information about my partitions as well?

If you use a WinPE disk, you can use DISKPART and use the CLEAN command in it to completely wipe all tables from the drive. If you decide to do so, be VERY careful as DISKPART has no safety features. :)

(If you're using Vista, I think the install disc has it too. Just boot from it and open a command prompt.)

Here is the tool your looking for.

http://www.diydatarecovery.nl/mbrtool.htm

http://www.diydatarecovery.nl/MBRtool_manual.htm

MBRtool allows you to do the following things:

* backup, verify and restore the MBR, using backup-sectors or files

* backup, restore, wipe, clean or dump the track 0 for a disk

* edit or wipe the MBR Partition Table

* refresh the MBR bootcode, without destroying the Volume Bytes

* remove the MBR bootcode

* re-write the MBR signature bytes

* display the MBR sector or dump the MBR sector to file

* perform above mentioned edit, bootcode, display and dump functions on the MBR backups

* create a blank backup-file to create a MBR from scratch and restore it later

* perform attribute changes on partitions listed in the MBR Partition Table (hide, activate, delete etc.)

* manipulate the volume bytes that are associated with volumes in Windows NT / 2K / XP

You do not want to remove the MBR which contains where your partitions are -- you just want to remove the Grub Bootloader code.. Which is exactly what this tool will allow you to do.

MBRtool sounded promising, but alas it's not going to work for me.

I'm running a laptop, so the drive must remain on an external USB port. Unfortunately, MBRtool does not read USB drives. (I even used a ghost boot disc with USB support (UHCI.exe) to boot, then ran mbrtool without success.) MBRtool sees my laptop's hard drive just fine, but not anything on USB.

I'm suspecting there is a single hex key that I can change in the boot sector to say (Not Bootable), but I need to figure out for sure which it is.

EDIT: I'm currently looking into MBRwizard (http://www.mbrwizard.com/) and will report results.

Edited by AlfredSka
EDIT: I'm currently looking into MBRwizard (http://www.mbrwizard.com/) and will report results.

I tried MBRWiz, but issuing

mbrwiz /disk=1 /wipe=mbr

also wiped my partition table. I've restored the backup MBR, and I'm back to where I started. Any ideas of other tools that would work under windows? Or does someone know which key/sector I can change to specify non-bootable?

I found partial success by following the directions here: http://www.cyberciti.biz/faq/linux-how-to-uninstall-grub/

I used the linux method, which did get rid of GRUB, but my computer's boot sequence still can't get past the drive.

I also used the lilo method from the comments of that page, but encountered similar results.

In either case my partition table remained intact.

I tried MBRWiz, but issuing
mbrwiz /disk=1 /wipe=mbr

also wiped my partition table. I've restored the backup MBR, and I'm back to where I started. Any ideas of other tools that would work under windows? Or does someone know which key/sector I can change to specify non-bootable?

Try the following

mbrwiz /disk=1 /repair=1

this will replace the current MBR boot code with a standard Windows XP MBR, effectively overwriting any existing GRUB loader code. Also, this option leaves the partition table untouched!

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Spotify finally removes the disco ball app icon in the latest update by Ivan Jenic Image: Spotify Spotify has just released an update that removes its now infamous disco ball icon. The update reverts the app icon to the familiar flat green logo after weeks of mixed reactions online. The icon arrived on May 13 as part of the company's 20th anniversary celebration and was always intended to be temporary, though Spotify only confirmed that after the backlash started. The disco ball took the internet by storm, as the reception was split. A vocal group of users called it ugly and disorienting, with some iOS users noting that the 3D glowing effect made the app look like it was stuck mid-update. On the other end, the icon picked up a following of its own. Its retro, three-dimensional look immediately stood out against the flat, minimalist aesthetic that has dominated app design for years. It even started a small movement, spawning what people started calling "discomorphism," a mashup of disco and skeuomorphism. Other brands started posting disco ball versions of their own logos, probably in an effort to ride the wave of memes that flooded the internet during late May. Spotify has had a turbulent relationship with its user base lately. Besides the disco ball icon, which certainly wasn't appreciated by everyone, the company has also received backlash for its willingness to include AI-generated music on its platform. On May 17, Spotify promised the old icon would return “in a few weeks.” And now it looks like that time has finally arrived. So, whether you liked the disco ball or it made you uncomfortable, it’s now gone for good. The next time you update the Spotify app on your phone, the old, flat-design icon will return.
    • Playground Games confirms Forza Horizon 6 save wipe bug by Taras Buria Forza Horizon 6 was launched last month to critical acclaim (check out our review here), and it became a smash hit in an instant. Now, weeks into the launch, with die-hard fans clocking hundreds of hours, Forza Horizon 6 is facing a serious issue: save wipes. After multiple complaints on Reddit and social media, the studio issued a statement. The problem with missing saves came shortly after Playground Games promised the initial batch of gameplay tweaks and improvements. Unfortunately, there seems to be no temporary fixes for those affected by unexpected save wipes. However, the studio published a new support document with a few important steps users should try. First, affected gamers should open a support ticket immediately (go here to file one) so that the support team can try recovering the lost progress by reverting to an earlier save. Playground Games says this should be done the same day the issue occurs. Meanwhile, gamers are urged not to start new play sessions or create new saves. The studio also published a few things gamers should try to avoid to prevent potential progress loss: Ensure your Gaming Services app on PC or XBOX Series X|S console is fully up to date. On XBOX Series X|S consoles, disable Quick Resume for Forza Horizon 6: To disable Forza Horizon 6 from using Quick Resume, highlight the game box art anywhere in the console experience (Home, My Games & Apps, Pins, etc) and then press the Menu button, then go to Manage game and add-ons > Quick Resume settings > Disable Quick Resume. Ensure you are online when ‘quitting’ the game. Give your saved time to sync to the cloud before powering off or switching devices. Do not force quit the game during save screens. Do not power off the device during gameplay. Always "Quit" (console) or "Exit to desktop" (PC) once you've finished your play session, ensuring the save icon is not visible when you’re closing the game. Before turning off your console, shutting down your PC, or force-closing the Steam app, give your devices or clients at least a few minutes to ensure your latest progress has been synchronized with the cloud. This will reduce the risk of progress reversions as you switch between different platforms. XBOX Series X|S consoles, Steam, and the XBOX app on PC all include game save indicators that confirm your progress has been synced. You can read more about the bug in the official support document here. Forza Horizon 6 is currently available on PC (Steam and the Microsoft Store), Xbox Series X|S, and Game Pass. The game is also coming to PlayStation 5 later this year.
    • If only Windows would have a toggle switch labeled "Get the latest updates as soon as possible" inside Windows Update settings... But nah, let's hide the new stuff inside a controlled feature rollout, even if the user is explicitly asking for the new stuff as soon as possible. Awesome idea!
  • Recent Achievements

    • One Year In
      slackerzz earned a badge
      One Year In
    • One Year In
      highriskpaym earned a badge
      One Year In
    • One Month Later
      highriskpaym earned a badge
      One Month Later
    • Week One Done
      highriskpaym earned a badge
      Week One Done
    • Week One Done
      FBSPL earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      508
    2. 2
      PsYcHoKiLLa
      197
    3. 3
      +Edouard
      157
    4. 4
      Steven P.
      84
    5. 5
      ATLien_0
      74
  • Tell a friend

    Love Neowin? Tell a friend!