DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th July 2009
Turquoise88's Avatar
Turquoise88 Turquoise88 is offline
Real Name: M.H.
Port Guard
 
Join Date: Nov 2008
Location: Southern Finland (but not Helsinki)
Posts: 11
Thanked 0 Times in 0 Posts
Unhappy How to disable FreeBSD boot loader?

Hey, thanks for your previous answer. I will reply to them later. I have been busy.
I have a new problem. I have to disable or remove the FreeBSD Boot Manager because I can't boot Windows XP now. I get an error message when I'm trying to boot Windows (by pressing F1=Win at the OS selection): "Disk reading error. Press Ctrl-Alt-Del to reboot."
The rebooting doesn't help. I'm back again in the loader. FreeBSD works very well. FreeBSD version is 7.2/AMD64.
Reply With Quote
  #2   (View Single Post)  
Old 17th July 2009
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 194
Thanked 47 Times in 22 Posts
Default

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
Then you need first sector of your FreeBSD root partition. You will put this on Windows C partition so NT loader so can pass instructions to it. It is actually /boot/boot1 (stage one) so you could copy it from either FreeBSD root partition (unless FreeBSD is on another disk), install CD, or just grab it with dd:
Code:
dd if=/dev/ad0s2a of=/mnt/usb_disk/bootsect.bsd bs=512 count=1
This is assuming your FreeBSD is installed on second slice of the first disk. Then, you boot the Windows installation disk and go to recovery console and just type:
Code:
C:WINDOWS> FIXMBR C:
This will restore the NTLoader back. Try to see if you can boot into Windows now. If it doesn't boot, go boot the CD again and try the FIXBOOT command.
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"
That should present you with an option to boot FreeBSD after reboot. If you ever deceide to remove FreeBSD you just delete the file and remove the entry in boot.ini.
__________________
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
Reply With Quote
  #3   (View Single Post)  
Old 17th July 2009
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 270
Thanked 23 Times in 23 Posts
Default

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!
Reply With Quote
Reply

Tags
boot, loader, windows

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick