Clean out MBR on old drives? - Ubuntu

This is a discussion on Clean out MBR on old drives? - Ubuntu ; Once upon a time, when I was running MS-Windows... When I got a new disk drive, I would do a fresh install of windows to the new drive, copy over data, etc., then use the older drive for data storage. ...

+ Reply to Thread
Results 1 to 12 of 12

Thread: Clean out MBR on old drives?

  1. Clean out MBR on old drives?

    Once upon a time, when I was running MS-Windows...

    When I got a new disk drive, I would do a fresh install of windows to the new
    drive, copy over data, etc., then use the older drive for data storage. Over
    the years this has left me with several drives that have no OS installed, but
    *think* that they do in the MBR. I'd like to clean out this information,
    without having to resort to reformatting and/or relocating data stored on these
    drives. Fdisk/mbr doesn't seem to be the solution.

    Can anyone offer a simple Linux solution?

    Thanks!

    A example is given below. There is no OS installed on hde1, sda1 or sdb1.

    Disk /dev/hde: 163.9 GB, 163928604672 bytes
    Disk identifier: 0xfa6be078
    Device Boot Start End Blocks Id System
    /dev/hde1 * 1 16104 129355348+ c W95 FAT32 (LBA)
    /dev/hde2 16105 19929 30724312+ 83 Linux

    Disk /dev/hdf: 122.9 GB, 122942324736 bytes
    Disk identifier: 0x068f4e5a
    Device Boot Start End Blocks Id System
    /dev/hdf1 * 1 7148 57416278+ c W95 FAT32 (LBA)
    /dev/hdf2 7149 8530 11100915 83 Linux
    /dev/hdf3 8531 14685 49440037+ 83 Linux
    /dev/hdf4 14686 14946 2096482+ 82 Linux swap

    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    Disk identifier: 0x1d7e0a88
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 7161 57520701 c W95 FAT32 (LBA)
    /dev/sda2 7162 14593 59697540 c W95 FAT32 (LBA)

    Disk /dev/sdb: 100.0 GB, 100030242816 bytes
    Disk identifier: 0x10091009
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 12161 97683201 c W95 FAT32 (LBA)

    --
    [ nym.null gmail com ]


  2. Re: Clean out MBR on old drives?

    anTonOMasia wrote:
    > Once upon a time, when I was running MS-Windows...
    >
    > When I got a new disk drive, I would do a fresh install of windows to
    > the new drive, copy over data, etc., then use the older drive for data
    > storage. Over the years this has left me with several drives that have
    > no OS installed, but *think* that they do in the MBR. I'd like to clean
    > out this information, without having to resort to reformatting and/or
    > relocating data stored on these drives. Fdisk/mbr doesn't seem to be
    > the solution.
    >
    > Can anyone offer a simple Linux solution?
    >

    Not Linux, but not windows either. If you can boot from a floppy and
    have a dos boot disk (any version), get mbrwork from here:
    http://www.terabyteunlimited.com/dow...e-software.htm

    I'm not as familiar with Linux as I was with dos, but can't you clear
    the MBR with dd command. I used to use dos debug for this type of thing.
    Dave Cohen

  3. Re: Clean out MBR on old drives?

    On Sat, 23 Feb 2008 13:19:24 -0500, anTonOMasia wrote:

    > Once upon a time, in a galaxy far far away....


    google for mbrtool, mbrwork or look for an iso called the "Ultimate Boot
    Disk" which has a nice collection of various tools


  4. Re: Clean out MBR on old drives?

    On Sat, 23 Feb 2008 13:19:24 -0500, anTonOMasia wrote:

    > Once upon a time, when I was running MS-Windows...
    >
    > When I got a new disk drive, I would do a fresh install of windows to
    > the new drive, copy over data, etc., then use the older drive for data
    > storage. Over the years this has left me with several drives that have
    > no OS installed, but *think* that they do in the MBR. I'd like to clean
    > out this information, without having to resort to reformatting and/or
    > relocating data stored on these drives. Fdisk/mbr doesn't seem to be
    > the solution.
    >
    > Can anyone offer a simple Linux solution?
    >
    > Thanks!
    >
    > A example is given below. There is no OS installed on hde1, sda1 or
    > sdb1.
    >
    > Disk /dev/hde: 163.9 GB, 163928604672 bytes Disk identifier: 0xfa6be078
    > Device Boot Start End Blocks Id System
    > /dev/hde1 * 1 16104 129355348+ c W95 FAT32 (LBA)
    > /dev/hde2 16105 19929 30724312+ 83 Linux
    >
    > Disk /dev/hdf: 122.9 GB, 122942324736 bytes Disk identifier: 0x068f4e5a
    > Device Boot Start End Blocks Id System
    > /dev/hdf1 * 1 7148 57416278+ c W95 FAT32 (LBA)
    > /dev/hdf2 7149 8530 11100915 83 Linux /dev/hdf3
    > 8531 14685 49440037+ 83 Linux /dev/hdf4
    > 14686 14946 2096482+ 82 Linux swap
    >
    > Disk /dev/sda: 120.0 GB, 120034123776 bytes Disk identifier: 0x1d7e0a88
    > Device Boot Start End Blocks Id System
    > /dev/sda1 * 1 7161 57520701 c W95 FAT32 (LBA)
    > /dev/sda2 7162 14593 59697540 c W95 FAT32 (LBA)
    >
    > Disk /dev/sdb: 100.0 GB, 100030242816 bytes Disk identifier: 0x10091009
    > Device Boot Start End Blocks Id System
    > /dev/sdb1 * 1 12161 97683201 c W95 FAT32 (LBA)


    Use dd to zero the first 512 bytes of the disk.

  5. Re: Clean out MBR on old drives?

    "anTonOMasia" schreef in bericht
    news:fppo3l$1us$1@registered.motzarella.org...

    > .... has left me with several drives that have no OS installed, but
    > *think* that they do in the MBR. I'd like to clean out this information,
    > without having to resort to reformatting and/or relocating data stored on
    > these drives. Fdisk/mbr doesn't seem to be the solution.

    That will preserve the partition table, including the boot flag

    > Disk /dev/hde: 163.9 GB, 163928604672 bytes
    > Disk identifier: 0xfa6be078
    > Device Boot Start End Blocks Id System
    > /dev/hde1 * 1 16104 129355348+ c W95 FAT32 (LBA)
    > /dev/hde2 16105 19929 30724312+ 83 Linux
    >

    I'ld say, all there is to be cleaned without reformatting is the BOOT flag.
    Use cfdisk /dev/hde to reset that ONE bit.


    HansH



  6. Re: Clean out MBR on old drives?

    Dave Cohen wrote:
    >

    .... snip ...
    >
    > I'm not as familiar with Linux as I was with dos, but can't you
    > clear the MBR with dd command. I used to use dos debug for this
    > type of thing.


    No you can't. The MBR is the first part of the first 512 byte
    segment on the disk. I forget exactly where the boundary is, but
    past that boundary are the tables showing the breakdown into
    segments. This is not Linux (nor DOS, nor Windoze, nor ...)
    specific.

    --
    [mail]: Chuck F (cbfalconer at maineline dot net)
    [page]:
    Try the download section.



    --
    Posted via a free Usenet account from http://www.teranews.com


  7. Re: Clean out MBR on old drives?

    CBFalconer wrote:

    > Dave Cohen wrote:
    >>

    > ... snip ...
    >>
    >> I'm not as familiar with Linux as I was with dos, but can't you
    >> clear the MBR with dd command. I used to use dos debug for this
    >> type of thing.

    >
    > No you can't. The MBR is the first part of the first 512 byte
    > segment on the disk. I forget exactly where the boundary is, but
    > past that boundary are the tables showing the breakdown into
    > segments. This is not Linux (nor DOS, nor Windoze, nor ...)
    > specific.
    >

    Just as you can copy the MBR using dd, you can overwrite it.

    Cheers.

    --
    The world can't afford the rich.

    Q: What OS is built for lusers?
    A: Which one requires running lusermgr.msc to create them?

    My Killfile List: Frank, dennis@home ... Sorry, won't be able to read your
    BS any longer.

  8. Re: Clean out MBR on old drives?

    On Sat, 23 Feb 2008 21:07:04 -0500, CBFalconer wrote:

    >> I'm not as familiar with Linux as I was with dos, but can't you
    >> clear the MBR with dd command. I used to use dos debug for this
    >> type of thing.


    > No you can't. The MBR is the first part of the first 512 byte
    > segment on the disk. I forget exactly where the boundary is, but


    Of course you can, you ****ing n00b. You just write from /dev/null to the
    first 512 bytes and you've wiped the MBR. Duh.

    Fix your non-compliant sig block, you ignorant stooge.


    --
    "Ubuntu" -- an African word, meaning "Slackware is too hard for me".


  9. Re: Clean out MBR on old drives?

    "Dan C" schreef in bericht
    newsan.2008.02.24.06.40.37.883372@moria.lan...
    > On Sat, 23 Feb 2008 21:07:04 -0500, CBFalconer wrote:
    >
    >>> I'm not as familiar with Linux as I was with dos, but can't you
    >>> clear the MBR with dd command. I used to use dos debug for this
    >>> type of thing.

    >
    >> No you can't. The MBR is the first part of the first 512 byte
    >> segment on the disk. I forget exactly where the boundary is, but

    >
    > Of course you can, you ****ing n00b. You just write from /dev/null to the
    > first 512 bytes and you've wiped the MBR. Duh.
    >

    http://en.wikipedia.org/wiki/Master_boot_record
    Wiping _all_ 512 bytes of the MBR will commonly wipe the partition table
    too, rendering the data at any and all partition inaccessable. Given the
    words 'without having to resort to reformatting and/or relocating data' in
    the initial post, that is exactly NOT the method the OP is looking for.

    HansH



  10. Re: Clean out MBR on old drives?

    CBFalconer writes:

    > Dave Cohen wrote:
    >>

    > ... snip ...
    >>
    >> I'm not as familiar with Linux as I was with dos, but can't you
    >> clear the MBR with dd command. I used to use dos debug for this
    >> type of thing.

    >
    > No you can't. The MBR is the first part of the first 512 byte
    > segment on the disk. I forget exactly where the boundary is, but
    > past that boundary are the tables showing the breakdown into
    > segments. This is not Linux (nor DOS, nor Windoze, nor ...)
    > specific.
    >


    If you're going to contribute to a HELP group, at least get a clue about
    what the hell you are talking about. Everyone makes the odd error, but
    you seem to make a habit out of it. You are wrong more times than you
    are right and your "advice" is liable to help someone **** up their
    machines. Do us all a favour and take you and your double .sigs the hell
    away you pompous, self righteous, cantankerous old twit.

    > --
    > [mail]: Chuck F (cbfalconer at maineline dot net)
    > [page]:
    > Try the download section.


    And fix your double .sig.

    --
    Murphy was an optimist.

  11. Re: Clean out MBR on old drives?

    * mr.b wrote, On 23/02/08 02:16 PM:
    > On Sat, 23 Feb 2008 13:19:24 -0500, anTonOMasia wrote:
    >
    >> Once upon a time, in a galaxy far far away....

    >
    > google for mbrtool, mbrwork or look for an iso called the "Ultimate Boot
    > Disk" which has a nice collection of various tools



    Thanks, mr. b. mbrtool looks to be the one, found from a link at
    http://www.ultimatebootcd.com/



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

    "/WBC - blank the bootcode, either in the original MBR or a backup."



    Thanks to all who offered help.

  12. Re: Clean out MBR on old drives?

    On Sun, 24 Feb 2008 23:22:19 -0500, anTonOMasia wrote:

    > Thanks, mr. b. mbrtool looks to be the one, found from a link at
    > http://www.ultimatebootcd.com/
    >
    >
    >
    > http://www.diydatarecovery.nl/MBRtool_manual.htm
    >
    > "/WBC - blank the bootcode, either in the original MBR or a backup."


    good luck, I used it last week to clean up a munged mbr that one of the
    kids in my class created while learning to do XP/Ubuntu dualboot


+ Reply to Thread