Displaying 2 results from an estimated 2 matches for "legacy_head".
Did you mean:
legacy_heads
2004 Feb 27
14
BIOS disk geometry and Linux 2.6
I am working on a Linux-based boot disk for my project
(http://unattended.sourceforge.net/), and I have hit a snag.
Under Linux 2.6, the kernel (via HDIO_GETGEO) always reports the C/H/S
geometry of an IDE drive as X/16/63. But most BIOSes want to use the
geometry Y/255/63.
Most partitioning tools (including Parted) will take clues from an
existing partition table and adapt to the BIOS values.
2014 Nov 28
2
[PATCH] Add ldisk.c32 Lua module
...if (get_drive_parameters(&info) == -1 // disk does not exist
+ || !info.cbios) { // is not an hdd (-> a cdrom or whatever)
+ continue;
+ }
+ lua_pushinteger(L, i);
+ lua_newtable(L);
+ SET_TABLE_STRING_INT(L, "id", id);
+ // legacy info
+ SET_TABLE_STRING_INT(L, "legacy_heads", info.legacy_max_head + 1);
+ SET_TABLE_STRING_INT(L, "legacy_cylinders", info.legacy_max_cylinder + 1);
+ SET_TABLE_STRING_INT(L, "legacy_sectors_per_track",
+ info.legacy_sectors_per_track + 1);
+ // edd
+ SET_TABLE_STRING_INT(L, "info", info.edd_params....