Bug#422370: should switch to grub2 when using GPT
On Fri, May 11, 2007 at 08:48:43AM +0200, Robert Millan wrote:
> $ time sudo grub-probe -t partmap /boot/grub
> real 0m0.469s
> user 0m0.000s
> sys 0m0.088s
> Not sure why /dev/hda is so slow though. Maybe it's a bug, but not an
> important one.
Actually I think we can do much better with our own simple program that uses
libparted. See attachment.
On my amd64 sid, compiled with -Os and stripped it just takes 5224 bytes.
My spam trap is firstname.lastname@example.org. Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.
main (int argc, char **argv)
if (argc != 2)
fprintf (stderr, "Usage: %s DEVICE\n", argv);
device = ped_device_get (argv);
disk = ped_disk_new (device);
printf ("%s\n", disk->type->name);