Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2007 19:33:12 -0800 (PST)
From:      Alou Dialy <aloudialy@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: How can I use the Windows loader to boot FreeBSD
Message-ID:  <9995.27528.qm@web45516.mail.sp1.yahoo.com>

next in thread | raw e-mail | index | archive | help
--- Giorgos Keramidas <keramida@ceid.upatras.gr>
wrote:

> On 2007-11-07 15:19, Alou Dialy
> <aloudialy@yahoo.com> wrote:
> > I read this FAQ but I am still confused. How does
> it
> > work if you have windows on ad0 and freebsd on
> ad1.
> >
> >
>
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NT-BOOTLOADER
> 
> AFAICT, the 'explicit' list of steps missing from
> the FAQ is:
> 
>   1. Run boot0cfg from FreeBSD:
> 
> 	# boot0cfg -B /dev/ad1
> 
>   2. Copy the MBR of the ad1 disk to a file:
> 
> 	# dd if=/dev/ad1 of=bootsect.bsd bs=512 count=1
> 
>   3. Save this file to a floppy disk, or some other
> Windows-accessible
>      place.  Using a floppy-disk, formatted as FAT,
> this could be done
>      by typing:
> 
> 	# mount -t msdosfs /dev/fd0 /mnt/dos
> 	# cp bootsect.bsd /mnt/dos
> 	# umount /mnt/dos
> 
>   4. Boot into Windows and copy the file
> A:\BOOTSECT.BSD to C:\
> 
OK, but how does this work:

> When the FreeBSD boot manager runs it records the
last OS booted by setting the active flag on the
partition table entry for that OS and then writes the
whole 512-bytes of itself back to the MBR so if you
just copy /boot/boot0 to C:\BOOTSECT.BSD then it
writes an empty partition table, with the active flag
set on one entry, to the MBR.

How can /boot/boot0 be in the MBR and in the file that
gets loaded by ntldr. Doesnt the MBR load ntldr.

>   5. Continue as described in the FAQ :)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9995.27528.qm>