actual boot device
Sergey Lyubka
devnull at uptsoft.com
Tue Aug 17 09:25:55 PDT 2004
I am booting kernel directly from bootblock, and do not have
boot loader, so kenv does not work.
certainly, sysctl kern.bootfile points to /kernel,
but it does not tell anything.
The actual device may be floppy, CF card or harrdisk,
and I do not have any means of figuring it out.
On Tue, Aug 17, 2004 at 11:15:16AM -0500, Dan Nelson wrote:
> In the last episode (Aug 17), Sergey Lyubka said:
> > How would one know the actual boot device after kernel successfully
> > booted ?
>
> The kern.bootfile sysctl points to the kernel file that was loaded,
> according to the loader. If you booted off of cdrom or floppy, you can
> run "kenv loaddev" to find out which device was actually used to read
> the file.
>
> --
> Dan Nelson
> dnelson at allantgroup.com
--
Sergey Lyubka, Network Security Consultant
NetFort ISS Ltd, Galway, Ireland
More information about the freebsd-hackers
mailing list