El dom, 14-12-2008 a las 02:12 +0100, Robert Millan escribió: > On Tue, Dec 09, 2008 at 03:26:28PM -0800, Andrey Shuvikov wrote: > > Hello, > > > > I tried to compile Grub2 under FreeBSD, it compiles but doesn't work (grub-setup). The problem seems to be in the stat() call, which is used to determine disk size. The call returns 0 for st_size, and grub-setup complains for "Read out of range". Is it a known issue? Is there a way to use Grub2 under FreeBSD? > > Do you know how to obtain the disk size on FreeBSD ? > IF parted works on FreeBSD, we could look at what it does, since it's a GNU project, copyrights assigned to the FSF and all that (isn't it?)