Look of boot2, on HDD
Garrett Cooper
yanegomi at gmail.com
Fri Apr 29 22:37:23 UTC 2011
2011/4/29 <rank1seeker at gmail.com>:
> /boot/boot2 STAGE 2 bootstrap file
> Understands the FreeBSD file system enough, to find files on it, and can provide a simple interface to choose the kernel or loader to run.
>
> Once sys is fully booted, HDD is 'ada0'.
> However, STAGE 2, sees it, as a 'ad4', at boot process, which is same seen, by booted sys, when I turn off AHCI.
>
> So, here is the riddle ...
> On fully booted sys, how do I query STAGE 2, to tell me, how it'll see, my 'ada0' HDD?
This is a very interesting catch:
/usr/src/sys/boot/pc98/boot2/boot2.c:static const char *const
dev_nm[NDEV] = {"ad", "da", "fd"};
/usr/src/sys/boot/i386/boot2/boot2.c:static const char *const
dev_nm[NDEV] = {"ad", "da", "fd"};
It probably will be a no-op soon because of some of the
compatibility changes Alex made, but still a potential point of
confusion nonetheless.
Thanks!
-Garrett
More information about the freebsd-hackers
mailing list