Hi,

Ive been wrestling with an Thinkpad T60 today.
(I used the ISO image at http://ubertechnique.com/unattended/NTLDRNotFound
for a newer kernel than 4.6 has) 

This is where things goes wrong:

---------install.pl from line 1472-----------------
        if (-e $settings_file) {
            print "\nSetting C/H/S for $hda to 
$cylinders/$bios_head/$bios_sect...";
            open SETTINGS, ">$settings_file"
                or die "Unable to open $settings_file for writing: $^E";
            printf SETTINGS "bios_cyl:%d bios_head:%d bios_sect:%d\n",
            $cylinders, $bios_head, $bios_sect;
            close SETTINGS
                or die "Unable to close $settings_file: $^E";
            print "done.\n";
        }
        else {
            # Non-IDE disk.  Should probably sanity-check kernel
            # geometry against legacy BIOS geometry here.  FIXME.
        }
-------------------------------------------------------

I belive this is where unattended 'fools' parted to use correct disk 
geometry for IDE disks. 
Non-IDE disc systems end up in the commented out else .. :-/
(at least this Thinkpad ends up here)

Under startup Unattended reports 240 heads from legacy bios, but 255 heads are 
what parted writes to disk.. ..Windows install uses what the 'legacy bios' 
reports and we get a 'NTLDR not found'  

So, how do we fool parted to use the correct geometry we already have at hand?


This machine has to go back into production again asap, but I still have some 
R52's with the same problem.



Sidenote/workaround:

Use a Windows XP with sp2 integrated, start install, use FAT as filesystem.
I used 20000 as size of partition.
Let it do its thing untill the machine restarts and flip in a Knoppix cd 
before it boots up.
mount /dev/sda1 somewhere and delete boot.ini and the windows directory.
Then use Unattended CD and do not touch partiton. skip format also :-)




_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to