Slightly OT: How "long" is MBR

From: Baard Ove Kopperud (baard.kopperud_at_bigfoot.com)
Date: 02/28/04


Date: 27 Feb 2004 15:40:56 -0800

I hate to ask such an obvious question, but I guess better
safe than sorry... and I *don't* want to trash everything
I've installed.

I'm about to re-install FreeBSD on a computer with both a
couple of physical Windows partitions and and extended
partition with several logical partitions with linux.

Unfortunately, FreeBSD refuses to deal with a disk with
logical-partitions. The obvious solution would have been
to install FreeBSD first (before creating logical partitions),
but that ship has sailed as they're there -- and in use.

I was therefor thinking about doing the following...
-copy MBR to somewhere else
-use fdisk to "delete" the extended-partition
 (but without re-using the space)
-install FreeBSD
-copy the original MBR back, thus restoring the
 actual peartition-limits

I think it'll work, and I'm going to take the chance,
but...

How long is the MBR, partition-table and stuff?

I intend to use 'dd' like this, but what should
"count=" be set to? Should "bs" be 512 instead?
    dd if=/dev/hda of=/foo/bar/mbr.img bs=1024 count=?!?

TIA,
-Koppe



Relevant Pages

  • Re: New installation of FreeBSD with Debian dual boot
    ... I'm looking to install FreeBSD 8.0 on my system today, where it would dual boot with Debian. ... I have the *.iso all ready to go, so just wanted to check a couple of points before I log out of Debian and boot into the DVD to install. ... The Debian is the only OS on my system, so I will have to resize the partitions. ...
    (freebsd-questions)
  • Update and thanks: was 137GB Barrier - multi O/S
    ... Formatted the FAT32 partitions - a waste of time, ... booted FreeBSD install - again it griped about geometry, and again, it wouldn't let me put in any values that it would accept. ... SPECIFICALLY did not make that slice/partition bootable 10) SPECIFICALLY did not request any MBR modification or bootloader install ... I asked it not to make the partition active and asked it not to touch the MBR or install any kind of boot manager - but I'm looking at a FreeBSD boot screen. ...
    (comp.sys.ibm.pc.hardware.storage)
  • Re: freebsd isntall, slices vs partitions, memory, booting ??
    ... > a little confused about what the freeBSD install is doing..i think it boots ... ``extended'' slices though. ... > divided into several more partitions to enable many partitions to be ...
    (comp.unix.bsd.freebsd.misc)
  • Im confused...
    ... Is the installer for freeBSD 4.5 broken? ... planned to do is simply to install it on another disk that I have ... In the middle of the screen was a list of partitions for da0 ...
    (freebsd-questions)
  • Re: FreeBSD install corrupts neighboring partitions
    ... I have found that when I install FreeBSD it corrupts ... >>neighboring NTFS and FAT partitions. ... Whether I tell FreeBSD not to install an MBR or whether ... In both cases I marked both the Windows ...
    (freebsd-questions)