boot2 and ntldr on sata2

Victor M. Blood freebsd at masm.elcom.ru
Sat Feb 7 13:14:27 PST 2009


Hi, All.

People, may be realy need to add compile in boot command line, souch
as /boot.config staticaly in boot2.c instead of dynamic load it at
bootstrap process.


I have sata2 disk with 4 primary partition:
[ntfs]
[bsd] (/var, /usr)
[bsd] (/, swap)
[ntfs]

then system bootup from ntldr with bootpart 2.6 support, I got an
error `Invalid Partition'

then try boot with command `0:ad(4,3,a)/boot/loader bootstrap process
finished succesful!

I tryed set in /sys/boot/i386/boot2/boot2.c
dsk.drive=0; // may be here must be 0x80 ??
dsk.unit=4;
dsk.slice=3;
dsk.part=0;
i had error 1 lba 0 ... may be i realy set wrong number to dsr.drive

I try to add at line 258, after
    if ((ino = lookup(PATH_CONFIG)))
        fsread(ino, cmd, sizeof(cmd));
line:
     memcpy(cmd, "0:ad(4,3,a)/boot/loader\0\0", 24);

after this system boot sucess!


ps: sorry for my english.
-- 
With all regards, Victor M. Blood.     mailto: freebsd at masm.elcom.ru
FTN: 2:5024/1.95 at Fidonet.org, ICQ#3567656






More information about the freebsd-current mailing list