Tirsdag 13 november 2007 16:42, skrev Dave Wainwright:
> I know that there has been some talk about the parted tool not working on
> the boot disks. What is the fix for this?
I have hacked my unattended installation to run some scripts to extract a
preformatted partition onto the harddisk. This works, but is sloooow.
So I now tend to use a script to fix wrong headcounts after the dosemu run:
#!/bin/bash
if [ -n $LEGACY_BIOS_HEAD ] ; then
echo "We have $LEGACY_BIOS_HEAD legacy bios heads to work with"
if [ "$LEGACY_BIOS_HEAD" == "240" ] ; then
echo "..ohoa 240 heads,.. ..patching disk manually..: "
#FOR IBM R52 AND R51
echo -e -n "\xf0" |dd of=/dev/sda1 bs=1 seek=26 conv=notrunc
mkdir -p /mnt/drive
mount -t msdos /dev/dsk1 /mnt/drive
echo -e -n "\xf0" |dd of=/mnt/drive/\$win_nt\$.~bt/bootsect.dat bs=1
seek=26 conv=notrunc
sleep 5
fi
fi
The script is messy, but works well.
I have used this script on Thinkpads, some HP laptops and it also works on old
PATA intel P3s (Compaq Deskpro)
Im will soon try to upgrade from the old parted-1.6.22 to parted-newest, as
the problem seem to bee the same.
So, in case of 'Ntldr not found';
You can try this script by booting back up into the unattended linuxboot,
change console with alt-f2 and run the script from there, example:
$ /z/site/sh/fix240heads.sh
I also use a known good line in UNATTEND.TXT:
fdisk_cmds = "fdisk /clear 1;fdisk /pri:12288;fdisk /pri:100,100 /spec:7;\
fdisk /delete /pri:1;fdisk /pri:4000;fdisk /activate:1"
The current fdisk to parted translation is outdated and should be fixed...
Maybe 'fdisk_cmds' should be able to run system commands direct...?
In a previous unattended incarnation parted failed to blank the disk, but I
dont see this now.
So to sum it up, we have two problems:
1. Disks with 240 heads
2. In need of good ideas to fix 'fdisk_cmds' (and friends) in install.pl
hehe, this is the unattended world as I see it right now :-)
Any suggestions, more insight or ideas are welcome!
--
mvh
Nils Olav Fossum
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info