bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub fails to detect harddrive on freebsd 5.0-release


From: leon j. breedt
Subject: Re: grub fails to detect harddrive on freebsd 5.0-release
Date: Sat, 14 Jun 2003 05:15:47 +0100
User-agent: Mutt/1.4i

> Do you know what the API does? What system calls does it use?
i'm not sure which APIs one should use to access the disk directly
if its in use.

but what i have gleaned so far:

if the MBR needs writing, you can use the DIOCSMBR ioctl
defined in sys/diskmbr.h to write it, passing the device fd opened
with O_RDONLY, and a 512-byte block.

if you need to modify the partitions, i'm not sure what you'd
use, maybe whats defined in sys/diskslice.h, perhaps DIOCSYNCSLICEINFO,
i don't know.

the workaround for me was to install from floppy.

leon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]