3 # Try automatic generation of geometries
13 } elsif ($sec < 640*2) {
17 } elsif ($sec < 1200*2) {
21 } elsif ($sec < 1440*2) {
25 } elsif ($sec < 2880*2) {
29 } elsif ($sec < 4096*2) {
34 printf "%.1fK, %d sectors: ", $sec/2, $sec;
35 print "Considered a hard disk\n";
41 $s = int($sec/($c*$h)+0.5);
42 if ($s <= 63 && $sec == $c*$h*$s) {
49 printf "%.1fK, %d sectors: ", $sec/2, $sec;
51 print "c=$c, h=$h, s=$s, type=$type\n";
54 print "No valid geometry found (MEMDISK will fake it)\n";