16a99
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi
I use FreeBSD 8.2 dual boot with winXP under VirtualBOX, I'm just training with basic commands like fdisk . So after deleting my MBR using dd, I used the live CD to recover it (fdisk -B) but the FreeBSD partition table haS not been detected; only winXP can boot. Any idea how I can resolve this problem?
Last edited by DutchDaemon; November 6th, 2011 at 04:01. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043 |
|
#2
|
||||
|
||||
|
/boot/mbr is plain bootcode. It will boot the active partition. See boot0cfg(8) about the interactive bootloader /boot/boot0. Neither of these change the partition table.
|
|
#3
|
|||
|
|||
|
Quote:
![]() Same result, F1 links to Windows not to FreeBSD
|
|
#5
|
|||
|
|||
|
|
|
#6
|
||||
|
||||
# fdisk ad0is enough. The output shows that the first partition, which appears to be the only partition, is type 0xa5, or FreeBSD. Just guessing, I think it's actually NTFS and FreeBSD was installed on the second hard disk. Or possibly, the first disk is FreeBSD but it's not bootable, and the second disk is Windows. |
|
#7
|
|||
|
|||
![]() partition 1 for NTFS, 2 for FreeBSD the other disk is just additional free disk Last edited by DutchDaemon; November 7th, 2011 at 18:40. Reason: It's "FreeBSD". |
|
#8
|
||||
|
||||
|
But that output shows partition 2 is unused. What does fdisk show for the other drive?
|
|
#9
|
|||
|
|||
|
yes and i don't know why ! physically it really exist but fdisk couldn't read it
don't care about this, it's just UFS free disk |
|
#10
|
||||
|
||||
|
Quote:
First, back up at least the MBR (I would back up the whole disk) to someplace safe, then change only the type of the first partition back to NTFS, type 07. Then test and make sure it still boots Windows. Once that's fixed, edit the second partition to use the rest of the disk, with type 165 (0xa5) for FreeBSD. |
|
#11
|
|||
|
|||
|
|
|
#12
|
||||
|
||||
|
Excellent! Copy just the first 512 bytes from that backup to the first block of the disk:
# dd if=backupfile of=/dev/ad0 bs=512 count=1
|
|
#13
|
|||
|
|||
|
I know
but the gool of this "exercise" is to reinitialize the boot0 using basic command comparing Grub and other bootmanager and to know the limit of each ones.
Last edited by DutchDaemon; November 8th, 2011 at 01:30. |
|
#14
|
||||
|
||||
|
See post #10.
|
![]() |
| Tags |
| mbr |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] MBR sent via mail in binary form | Seeker | General | 6 | September 22nd, 2011 06:51 |
| [Solved] No MBR Installed After Boot | joshdmiller | Installing & Upgrading | 8 | August 12th, 2011 08:18 |
| [Solved] convert OpenBSD mbr to FreeBSD mbr with FreeBSD boot manager | sidney6 | Installing & Upgrading | 2 | July 18th, 2011 23:43 |
| FreeBSD overwrites MBR. | elias | Installing & Upgrading | 8 | June 18th, 2011 22:31 |
| mbr | lumiwa | Installing & Upgrading | 5 | December 10th, 2009 00:16 |