get rid of master boot recordHow to format a USB flash drive?Prevent `dd` from destroying SSD or HDDDoes an upgrade to a partition format get applied to an already existing partition?How to change ext4 Hard drive partion to NTFS for installing Windows xp?Installing ubuntu on new hard driveWindows hard drive won't bootDetermine boot diskNew SSD in optical Bay, Cant get boot order to select it firstHow can I restore Master Boot Record in Ubuntu 15.04?Can I Recover Files, After accidentally Formatting External Hard Drive?Boot partition where is WIndows installed before UbuntuCan't boot windows 10 after Ubuntu installation

Did Don Young threaten John Boehner with a 10 inch blade to the throat?

Is it OK to accept a job opportunity while planning on not taking it?

Which dice game has a board with 9x9 squares that has different colors on the diagonals and midway on some edges?

Why is the UH-60 tail rotor canted?

Found more old paper shares from broken up companies

Are there any English words pronounced with sounds/syllables that aren't part of the spelling?

Why is a PhD thesis typically 150 pages?

Function pointer parameter without asterisk

is FIND WORDS in P?

Do I have to mention my main character's age?

Importance of moon phases for Apollo missions

How old is the Italian word "malandrino"?

Does switching on an old games console without a cartridge damage it?

On a Gameboy, what happens when attempting to read/write external RAM while RAM is disabled?

What kind of curve (or model) should I fit to my percentage data?

Host telling me to cancel my booking in exchange for a discount?

Oriented vector bundle with odd-dimensional fibers

What is a "staved" town, like in "Staverton"?

Killing a star safely

How to deal with making design decisions

As the Ferris wheel turns

Impact of throwing away fruit waste on a peak > 3200 m above a glacier

How can I show that the speed of light in vacuum is the same in all reference frames?

Does a "melee spell attack" use my spellcasting ability, or my Strength?



get rid of master boot record


How to format a USB flash drive?Prevent `dd` from destroying SSD or HDDDoes an upgrade to a partition format get applied to an already existing partition?How to change ext4 Hard drive partion to NTFS for installing Windows xp?Installing ubuntu on new hard driveWindows hard drive won't bootDetermine boot diskNew SSD in optical Bay, Cant get boot order to select it firstHow can I restore Master Boot Record in Ubuntu 15.04?Can I Recover Files, After accidentally Formatting External Hard Drive?Boot partition where is WIndows installed before UbuntuCan't boot windows 10 after Ubuntu installation






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I have old hard drive that had Ubuntu on it. Now I have a new machine which came with Windows 10, but it is what I would call a bootleg copy and can't be registered, so I have decided to return to Ubuntu 18.04. That is coming along well. I have 2 new hard drives and have formatted my old hard drive and want to use it for storage but it still is master boot record and I can't get rid of that. It is still trying to boot from that and I have to turn it off when booting up. I haven't run into any info on just this problem. Formatting does no good. I am still stuck.










share|improve this question
























  • If you have data you may want to keep: Converting to or from GPT - must have good backups. rodsbooks.com/gdisk/mbr2gpt.html

    – oldfred
    Jul 13 at 3:42











  • The BIOS controls the boot order, so you can fix it from there.

    – RonJohn
    Jul 13 at 15:40











  • Possible duplicate of How to format a USB flash drive?

    – WinEunuuchs2Unix
    Jul 13 at 18:26

















3















I have old hard drive that had Ubuntu on it. Now I have a new machine which came with Windows 10, but it is what I would call a bootleg copy and can't be registered, so I have decided to return to Ubuntu 18.04. That is coming along well. I have 2 new hard drives and have formatted my old hard drive and want to use it for storage but it still is master boot record and I can't get rid of that. It is still trying to boot from that and I have to turn it off when booting up. I haven't run into any info on just this problem. Formatting does no good. I am still stuck.










share|improve this question
























  • If you have data you may want to keep: Converting to or from GPT - must have good backups. rodsbooks.com/gdisk/mbr2gpt.html

    – oldfred
    Jul 13 at 3:42











  • The BIOS controls the boot order, so you can fix it from there.

    – RonJohn
    Jul 13 at 15:40











  • Possible duplicate of How to format a USB flash drive?

    – WinEunuuchs2Unix
    Jul 13 at 18:26













3












3








3








I have old hard drive that had Ubuntu on it. Now I have a new machine which came with Windows 10, but it is what I would call a bootleg copy and can't be registered, so I have decided to return to Ubuntu 18.04. That is coming along well. I have 2 new hard drives and have formatted my old hard drive and want to use it for storage but it still is master boot record and I can't get rid of that. It is still trying to boot from that and I have to turn it off when booting up. I haven't run into any info on just this problem. Formatting does no good. I am still stuck.










share|improve this question
















I have old hard drive that had Ubuntu on it. Now I have a new machine which came with Windows 10, but it is what I would call a bootleg copy and can't be registered, so I have decided to return to Ubuntu 18.04. That is coming along well. I have 2 new hard drives and have formatted my old hard drive and want to use it for storage but it still is master boot record and I can't get rid of that. It is still trying to boot from that and I have to turn it off when booting up. I haven't run into any info on just this problem. Formatting does no good. I am still stuck.







boot partitioning hard-drive






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 13 at 11:31









terdon

72.1k13 gold badges148 silver badges232 bronze badges




72.1k13 gold badges148 silver badges232 bronze badges










asked Jul 12 at 22:27









porschenistaporschenista

191 bronze badge




191 bronze badge












  • If you have data you may want to keep: Converting to or from GPT - must have good backups. rodsbooks.com/gdisk/mbr2gpt.html

    – oldfred
    Jul 13 at 3:42











  • The BIOS controls the boot order, so you can fix it from there.

    – RonJohn
    Jul 13 at 15:40











  • Possible duplicate of How to format a USB flash drive?

    – WinEunuuchs2Unix
    Jul 13 at 18:26

















  • If you have data you may want to keep: Converting to or from GPT - must have good backups. rodsbooks.com/gdisk/mbr2gpt.html

    – oldfred
    Jul 13 at 3:42











  • The BIOS controls the boot order, so you can fix it from there.

    – RonJohn
    Jul 13 at 15:40











  • Possible duplicate of How to format a USB flash drive?

    – WinEunuuchs2Unix
    Jul 13 at 18:26
















If you have data you may want to keep: Converting to or from GPT - must have good backups. rodsbooks.com/gdisk/mbr2gpt.html

– oldfred
Jul 13 at 3:42





If you have data you may want to keep: Converting to or from GPT - must have good backups. rodsbooks.com/gdisk/mbr2gpt.html

– oldfred
Jul 13 at 3:42













The BIOS controls the boot order, so you can fix it from there.

– RonJohn
Jul 13 at 15:40





The BIOS controls the boot order, so you can fix it from there.

– RonJohn
Jul 13 at 15:40













Possible duplicate of How to format a USB flash drive?

– WinEunuuchs2Unix
Jul 13 at 18:26





Possible duplicate of How to format a USB flash drive?

– WinEunuuchs2Unix
Jul 13 at 18:26










3 Answers
3






active

oldest

votes


















7














Warning! The following will erase your entire drive!



  • Donwnload and burn gparted live


  • Go to gparted:



    gparted main screen



  • In the upper right corner go to the correct disk


  • Double-check you have the correct disk

  • Go to the menu Device and choose Create Partition table

  • Choose gpt

  • Cick OK on the warning

Done!



You now have a GPT drive instead of an MBR drive






share|improve this answer




















  • 1





    I will add that you can get gparted on a live distro all by itself: gparted.org/livecd.php

    – TheHansinator
    Jul 13 at 17:21











  • @TheHansinator Done! ;-)

    – Fabby
    Jul 13 at 17:46











  • FYI I up voted before voting to close :P

    – WinEunuuchs2Unix
    Jul 13 at 18:28


















6














Warning! This will completely wipe your entire disk!



The following command will effectively fill your drive with zeroes and the beginning of the drive will be erased. Then you can reformat as you prefer afterwards. Be very careful not to erase another drive! I would go as far as booting from a Live USB and physically disconnecting all other HDD/SDD drives.



sudo dd if=/dev/zero of=of=/dev/sdyourhdd bs=1MB count=1


where:




  • bs=1MB means blocks size is 1 megabyte


  • count=1 instructs dd to copy only one block

and the end effect will be to overwrite the fist 1MB of the disk this destroying the MBR sector



If you skip the bs and count parameters the command will run until it overwrites the whole disk or until you terminate it






share|improve this answer




















  • 2





    Easier just telling it to do 512 bytes or 1 million bytes rather than aborting dd. See man dd or google the many examples on the internet.

    – WinEunuuchs2Unix
    Jul 12 at 22:55











  • it is cleaner and probably better practice. for me pressing ctrl+c is easier than calling man dd. If you write the whole drive you also verify you don't have non-relocatable bad sectors.

    – Dr Phil
    Jul 12 at 22:58











  • anyway I added the other option, as it might be useful. And reading dd documentation is highly recommended as it uses completely different conventions from the rest of Linux commands, and it is a dangerous utility

    – Dr Phil
    Jul 12 at 23:08











  • dd (Disk Duplicator) is bad mouthed and called by many as Disk Destroyer. I wrote a wrapper script for it so that of=/dev/... can never be my hard drives or SSDs by accident: askubuntu.com/questions/867746/… Plus a little help screen for erasing MBR is there. Plus it shows you the real names for /dev/sda, /dev/sdb, etc. so you truly appreciate which witch is which.

    – WinEunuuchs2Unix
    Jul 12 at 23:11












  • yeah finding which disk is which can be a PITA. I would call your wrapper script something else like safedd, so there is less confusion and it can be actually included in distros

    – Dr Phil
    Jul 12 at 23:25


















3














You can also remove the boot code from the disk. This will leave your data intact:



sudo dd if=/dev/zero of=/dev/disk/by-id/ata-WHATEVERDISK bs=446 count=1


In the MBR, only the first 446 bytes yield the boot code, the partition table follows.



You can also switch to GPT with any tool you like. I recommend gdisk.



Please note that you can have an MBR with boot code while using GPT. These methods are orthogonal.






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1157931%2fget-rid-of-master-boot-record%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    7














    Warning! The following will erase your entire drive!



    • Donwnload and burn gparted live


    • Go to gparted:



      gparted main screen



    • In the upper right corner go to the correct disk


    • Double-check you have the correct disk

    • Go to the menu Device and choose Create Partition table

    • Choose gpt

    • Cick OK on the warning

    Done!



    You now have a GPT drive instead of an MBR drive






    share|improve this answer




















    • 1





      I will add that you can get gparted on a live distro all by itself: gparted.org/livecd.php

      – TheHansinator
      Jul 13 at 17:21











    • @TheHansinator Done! ;-)

      – Fabby
      Jul 13 at 17:46











    • FYI I up voted before voting to close :P

      – WinEunuuchs2Unix
      Jul 13 at 18:28















    7














    Warning! The following will erase your entire drive!



    • Donwnload and burn gparted live


    • Go to gparted:



      gparted main screen



    • In the upper right corner go to the correct disk


    • Double-check you have the correct disk

    • Go to the menu Device and choose Create Partition table

    • Choose gpt

    • Cick OK on the warning

    Done!



    You now have a GPT drive instead of an MBR drive






    share|improve this answer




















    • 1





      I will add that you can get gparted on a live distro all by itself: gparted.org/livecd.php

      – TheHansinator
      Jul 13 at 17:21











    • @TheHansinator Done! ;-)

      – Fabby
      Jul 13 at 17:46











    • FYI I up voted before voting to close :P

      – WinEunuuchs2Unix
      Jul 13 at 18:28













    7












    7








    7







    Warning! The following will erase your entire drive!



    • Donwnload and burn gparted live


    • Go to gparted:



      gparted main screen



    • In the upper right corner go to the correct disk


    • Double-check you have the correct disk

    • Go to the menu Device and choose Create Partition table

    • Choose gpt

    • Cick OK on the warning

    Done!



    You now have a GPT drive instead of an MBR drive






    share|improve this answer















    Warning! The following will erase your entire drive!



    • Donwnload and burn gparted live


    • Go to gparted:



      gparted main screen



    • In the upper right corner go to the correct disk


    • Double-check you have the correct disk

    • Go to the menu Device and choose Create Partition table

    • Choose gpt

    • Cick OK on the warning

    Done!



    You now have a GPT drive instead of an MBR drive







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jul 13 at 17:46

























    answered Jul 13 at 7:45









    FabbyFabby

    28.8k18 gold badges69 silver badges172 bronze badges




    28.8k18 gold badges69 silver badges172 bronze badges







    • 1





      I will add that you can get gparted on a live distro all by itself: gparted.org/livecd.php

      – TheHansinator
      Jul 13 at 17:21











    • @TheHansinator Done! ;-)

      – Fabby
      Jul 13 at 17:46











    • FYI I up voted before voting to close :P

      – WinEunuuchs2Unix
      Jul 13 at 18:28












    • 1





      I will add that you can get gparted on a live distro all by itself: gparted.org/livecd.php

      – TheHansinator
      Jul 13 at 17:21











    • @TheHansinator Done! ;-)

      – Fabby
      Jul 13 at 17:46











    • FYI I up voted before voting to close :P

      – WinEunuuchs2Unix
      Jul 13 at 18:28







    1




    1





    I will add that you can get gparted on a live distro all by itself: gparted.org/livecd.php

    – TheHansinator
    Jul 13 at 17:21





    I will add that you can get gparted on a live distro all by itself: gparted.org/livecd.php

    – TheHansinator
    Jul 13 at 17:21













    @TheHansinator Done! ;-)

    – Fabby
    Jul 13 at 17:46





    @TheHansinator Done! ;-)

    – Fabby
    Jul 13 at 17:46













    FYI I up voted before voting to close :P

    – WinEunuuchs2Unix
    Jul 13 at 18:28





    FYI I up voted before voting to close :P

    – WinEunuuchs2Unix
    Jul 13 at 18:28













    6














    Warning! This will completely wipe your entire disk!



    The following command will effectively fill your drive with zeroes and the beginning of the drive will be erased. Then you can reformat as you prefer afterwards. Be very careful not to erase another drive! I would go as far as booting from a Live USB and physically disconnecting all other HDD/SDD drives.



    sudo dd if=/dev/zero of=of=/dev/sdyourhdd bs=1MB count=1


    where:




    • bs=1MB means blocks size is 1 megabyte


    • count=1 instructs dd to copy only one block

    and the end effect will be to overwrite the fist 1MB of the disk this destroying the MBR sector



    If you skip the bs and count parameters the command will run until it overwrites the whole disk or until you terminate it






    share|improve this answer




















    • 2





      Easier just telling it to do 512 bytes or 1 million bytes rather than aborting dd. See man dd or google the many examples on the internet.

      – WinEunuuchs2Unix
      Jul 12 at 22:55











    • it is cleaner and probably better practice. for me pressing ctrl+c is easier than calling man dd. If you write the whole drive you also verify you don't have non-relocatable bad sectors.

      – Dr Phil
      Jul 12 at 22:58











    • anyway I added the other option, as it might be useful. And reading dd documentation is highly recommended as it uses completely different conventions from the rest of Linux commands, and it is a dangerous utility

      – Dr Phil
      Jul 12 at 23:08











    • dd (Disk Duplicator) is bad mouthed and called by many as Disk Destroyer. I wrote a wrapper script for it so that of=/dev/... can never be my hard drives or SSDs by accident: askubuntu.com/questions/867746/… Plus a little help screen for erasing MBR is there. Plus it shows you the real names for /dev/sda, /dev/sdb, etc. so you truly appreciate which witch is which.

      – WinEunuuchs2Unix
      Jul 12 at 23:11












    • yeah finding which disk is which can be a PITA. I would call your wrapper script something else like safedd, so there is less confusion and it can be actually included in distros

      – Dr Phil
      Jul 12 at 23:25















    6














    Warning! This will completely wipe your entire disk!



    The following command will effectively fill your drive with zeroes and the beginning of the drive will be erased. Then you can reformat as you prefer afterwards. Be very careful not to erase another drive! I would go as far as booting from a Live USB and physically disconnecting all other HDD/SDD drives.



    sudo dd if=/dev/zero of=of=/dev/sdyourhdd bs=1MB count=1


    where:




    • bs=1MB means blocks size is 1 megabyte


    • count=1 instructs dd to copy only one block

    and the end effect will be to overwrite the fist 1MB of the disk this destroying the MBR sector



    If you skip the bs and count parameters the command will run until it overwrites the whole disk or until you terminate it






    share|improve this answer




















    • 2





      Easier just telling it to do 512 bytes or 1 million bytes rather than aborting dd. See man dd or google the many examples on the internet.

      – WinEunuuchs2Unix
      Jul 12 at 22:55











    • it is cleaner and probably better practice. for me pressing ctrl+c is easier than calling man dd. If you write the whole drive you also verify you don't have non-relocatable bad sectors.

      – Dr Phil
      Jul 12 at 22:58











    • anyway I added the other option, as it might be useful. And reading dd documentation is highly recommended as it uses completely different conventions from the rest of Linux commands, and it is a dangerous utility

      – Dr Phil
      Jul 12 at 23:08











    • dd (Disk Duplicator) is bad mouthed and called by many as Disk Destroyer. I wrote a wrapper script for it so that of=/dev/... can never be my hard drives or SSDs by accident: askubuntu.com/questions/867746/… Plus a little help screen for erasing MBR is there. Plus it shows you the real names for /dev/sda, /dev/sdb, etc. so you truly appreciate which witch is which.

      – WinEunuuchs2Unix
      Jul 12 at 23:11












    • yeah finding which disk is which can be a PITA. I would call your wrapper script something else like safedd, so there is less confusion and it can be actually included in distros

      – Dr Phil
      Jul 12 at 23:25













    6












    6








    6







    Warning! This will completely wipe your entire disk!



    The following command will effectively fill your drive with zeroes and the beginning of the drive will be erased. Then you can reformat as you prefer afterwards. Be very careful not to erase another drive! I would go as far as booting from a Live USB and physically disconnecting all other HDD/SDD drives.



    sudo dd if=/dev/zero of=of=/dev/sdyourhdd bs=1MB count=1


    where:




    • bs=1MB means blocks size is 1 megabyte


    • count=1 instructs dd to copy only one block

    and the end effect will be to overwrite the fist 1MB of the disk this destroying the MBR sector



    If you skip the bs and count parameters the command will run until it overwrites the whole disk or until you terminate it






    share|improve this answer















    Warning! This will completely wipe your entire disk!



    The following command will effectively fill your drive with zeroes and the beginning of the drive will be erased. Then you can reformat as you prefer afterwards. Be very careful not to erase another drive! I would go as far as booting from a Live USB and physically disconnecting all other HDD/SDD drives.



    sudo dd if=/dev/zero of=of=/dev/sdyourhdd bs=1MB count=1


    where:




    • bs=1MB means blocks size is 1 megabyte


    • count=1 instructs dd to copy only one block

    and the end effect will be to overwrite the fist 1MB of the disk this destroying the MBR sector



    If you skip the bs and count parameters the command will run until it overwrites the whole disk or until you terminate it







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jul 13 at 16:16

























    answered Jul 12 at 22:51









    Dr PhilDr Phil

    2512 silver badges4 bronze badges




    2512 silver badges4 bronze badges







    • 2





      Easier just telling it to do 512 bytes or 1 million bytes rather than aborting dd. See man dd or google the many examples on the internet.

      – WinEunuuchs2Unix
      Jul 12 at 22:55











    • it is cleaner and probably better practice. for me pressing ctrl+c is easier than calling man dd. If you write the whole drive you also verify you don't have non-relocatable bad sectors.

      – Dr Phil
      Jul 12 at 22:58











    • anyway I added the other option, as it might be useful. And reading dd documentation is highly recommended as it uses completely different conventions from the rest of Linux commands, and it is a dangerous utility

      – Dr Phil
      Jul 12 at 23:08











    • dd (Disk Duplicator) is bad mouthed and called by many as Disk Destroyer. I wrote a wrapper script for it so that of=/dev/... can never be my hard drives or SSDs by accident: askubuntu.com/questions/867746/… Plus a little help screen for erasing MBR is there. Plus it shows you the real names for /dev/sda, /dev/sdb, etc. so you truly appreciate which witch is which.

      – WinEunuuchs2Unix
      Jul 12 at 23:11












    • yeah finding which disk is which can be a PITA. I would call your wrapper script something else like safedd, so there is less confusion and it can be actually included in distros

      – Dr Phil
      Jul 12 at 23:25












    • 2





      Easier just telling it to do 512 bytes or 1 million bytes rather than aborting dd. See man dd or google the many examples on the internet.

      – WinEunuuchs2Unix
      Jul 12 at 22:55











    • it is cleaner and probably better practice. for me pressing ctrl+c is easier than calling man dd. If you write the whole drive you also verify you don't have non-relocatable bad sectors.

      – Dr Phil
      Jul 12 at 22:58











    • anyway I added the other option, as it might be useful. And reading dd documentation is highly recommended as it uses completely different conventions from the rest of Linux commands, and it is a dangerous utility

      – Dr Phil
      Jul 12 at 23:08











    • dd (Disk Duplicator) is bad mouthed and called by many as Disk Destroyer. I wrote a wrapper script for it so that of=/dev/... can never be my hard drives or SSDs by accident: askubuntu.com/questions/867746/… Plus a little help screen for erasing MBR is there. Plus it shows you the real names for /dev/sda, /dev/sdb, etc. so you truly appreciate which witch is which.

      – WinEunuuchs2Unix
      Jul 12 at 23:11












    • yeah finding which disk is which can be a PITA. I would call your wrapper script something else like safedd, so there is less confusion and it can be actually included in distros

      – Dr Phil
      Jul 12 at 23:25







    2




    2





    Easier just telling it to do 512 bytes or 1 million bytes rather than aborting dd. See man dd or google the many examples on the internet.

    – WinEunuuchs2Unix
    Jul 12 at 22:55





    Easier just telling it to do 512 bytes or 1 million bytes rather than aborting dd. See man dd or google the many examples on the internet.

    – WinEunuuchs2Unix
    Jul 12 at 22:55













    it is cleaner and probably better practice. for me pressing ctrl+c is easier than calling man dd. If you write the whole drive you also verify you don't have non-relocatable bad sectors.

    – Dr Phil
    Jul 12 at 22:58





    it is cleaner and probably better practice. for me pressing ctrl+c is easier than calling man dd. If you write the whole drive you also verify you don't have non-relocatable bad sectors.

    – Dr Phil
    Jul 12 at 22:58













    anyway I added the other option, as it might be useful. And reading dd documentation is highly recommended as it uses completely different conventions from the rest of Linux commands, and it is a dangerous utility

    – Dr Phil
    Jul 12 at 23:08





    anyway I added the other option, as it might be useful. And reading dd documentation is highly recommended as it uses completely different conventions from the rest of Linux commands, and it is a dangerous utility

    – Dr Phil
    Jul 12 at 23:08













    dd (Disk Duplicator) is bad mouthed and called by many as Disk Destroyer. I wrote a wrapper script for it so that of=/dev/... can never be my hard drives or SSDs by accident: askubuntu.com/questions/867746/… Plus a little help screen for erasing MBR is there. Plus it shows you the real names for /dev/sda, /dev/sdb, etc. so you truly appreciate which witch is which.

    – WinEunuuchs2Unix
    Jul 12 at 23:11






    dd (Disk Duplicator) is bad mouthed and called by many as Disk Destroyer. I wrote a wrapper script for it so that of=/dev/... can never be my hard drives or SSDs by accident: askubuntu.com/questions/867746/… Plus a little help screen for erasing MBR is there. Plus it shows you the real names for /dev/sda, /dev/sdb, etc. so you truly appreciate which witch is which.

    – WinEunuuchs2Unix
    Jul 12 at 23:11














    yeah finding which disk is which can be a PITA. I would call your wrapper script something else like safedd, so there is less confusion and it can be actually included in distros

    – Dr Phil
    Jul 12 at 23:25





    yeah finding which disk is which can be a PITA. I would call your wrapper script something else like safedd, so there is less confusion and it can be actually included in distros

    – Dr Phil
    Jul 12 at 23:25











    3














    You can also remove the boot code from the disk. This will leave your data intact:



    sudo dd if=/dev/zero of=/dev/disk/by-id/ata-WHATEVERDISK bs=446 count=1


    In the MBR, only the first 446 bytes yield the boot code, the partition table follows.



    You can also switch to GPT with any tool you like. I recommend gdisk.



    Please note that you can have an MBR with boot code while using GPT. These methods are orthogonal.






    share|improve this answer



























      3














      You can also remove the boot code from the disk. This will leave your data intact:



      sudo dd if=/dev/zero of=/dev/disk/by-id/ata-WHATEVERDISK bs=446 count=1


      In the MBR, only the first 446 bytes yield the boot code, the partition table follows.



      You can also switch to GPT with any tool you like. I recommend gdisk.



      Please note that you can have an MBR with boot code while using GPT. These methods are orthogonal.






      share|improve this answer

























        3












        3








        3







        You can also remove the boot code from the disk. This will leave your data intact:



        sudo dd if=/dev/zero of=/dev/disk/by-id/ata-WHATEVERDISK bs=446 count=1


        In the MBR, only the first 446 bytes yield the boot code, the partition table follows.



        You can also switch to GPT with any tool you like. I recommend gdisk.



        Please note that you can have an MBR with boot code while using GPT. These methods are orthogonal.






        share|improve this answer













        You can also remove the boot code from the disk. This will leave your data intact:



        sudo dd if=/dev/zero of=/dev/disk/by-id/ata-WHATEVERDISK bs=446 count=1


        In the MBR, only the first 446 bytes yield the boot code, the partition table follows.



        You can also switch to GPT with any tool you like. I recommend gdisk.



        Please note that you can have an MBR with boot code while using GPT. These methods are orthogonal.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 13 at 13:47









        HermannHermann

        2062 silver badges5 bronze badges




        2062 silver badges5 bronze badges



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1157931%2fget-rid-of-master-boot-record%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?