|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
Well I will not tell you that you nuked your Windows partition as I don't know what you did, but it seams as a serious error. Anyway, follow this to get the Windows loader back, and also use it to boot FreeBSD with it:
First you save the MBR in case something goes wrong so you could restore it and at least boot the FreeBSD. I also suggest you get the fdisk and bsdlabel output to a file on a usb disk so you have other needed information in case of failure. Code:
dd if=/dev/ad0 of=/mnt/usb_disk/mbr.backup bs=512 count=1 Code:
dd if=/dev/ad0s2a of=/mnt/usb_disk/bootsect.bsd bs=512 count=1 Code:
C:WINDOWS> FIXMBR C: If it boots, open boot.ini file located in C: and put the following bellow the line mentioning Windows (you do not delete anything, just add another entry at the end of file): Code:
C:bootsect.bsd="FreeBSD 7.0"
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn. If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD |
|
|||
It's possible the partition table is damaged (more precisely the C/H/S values for the Windows partition).
Resetting the boot manager (MBR) code will probably not change anything. Since you can boot FreeBSD, do a backup of your current MBR as s0xxx suggested. Now, edit your partition table using # fdisk -u ad0 Say no to the first question ("what the BIOS thinks"). When it says "The data for partition 1 is" (Windows being on partition 1), press y to change it. Press enter 3 times to accept the defaults. When it asks for "Explicitly specifying beg/end address", press y, give it a 0 (zero) for each of the 6 subsequent questions (beg C/H/S & end C/H/S) and say you're "happy with this entry". Even though you already backed up your MBR, you could also write down the values you just zeroed here and restore them later following the same process if this doesn't fix the problem. When it asks for changing other partitions say no. In the end, tell it you want to "write the new partition table".
__________________
May the source be with you! |
Tags |
boot, loader, windows |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to boot from a CD with the FreeBSD BTX Loader? | Turquoise88 | FreeBSD General | 6 | 25th August 2009 04:16 PM |
FreeBSD boot loader menu is missing | PeterSteele | FreeBSD Installation and Upgrading | 0 | 26th November 2008 06:08 PM |
Disable CTRL+ALT+DEL FreeBSD Gnome | mfaridi | FreeBSD Security | 7 | 27th August 2008 07:10 PM |
Deleted my /boot/loader | enpey | FreeBSD General | 16 | 10th June 2008 10:02 PM |
How to modify the boot loader? | Sunsawe | FreeBSD General | 5 | 29th May 2008 05:13 AM |