torsdag 15. juni 2006, 15:49, skrev Falko Trojahn: > Nils Olav Fossum schrieb: > > Or, we can use whats already on disk (as parted do?) > > (im trying to find where the first erasing is done in the script..) > fdisk_cmds="fdisk /clear 1;fdisk /pri:4000;fdisk /activate:1" > which only deletes partition no. 1, but perhaps not the whole > partition table.
"fdisk /clear 1" translates into "parted mklabel msdos" (in "sub convert_fdisk_parted") I tried to change this translation to "parted --help" But parted still writes 255 heads to disk :-/ Seems like parted writes wrong geometry every time it touches the disk.. > I'm doing it this way > http://www.mail-archive.com/unattended-info@lists.sourceforge.net/msg04840. >html so fdisk to parted conversion under linux is out of the way. This is interesting.. > >> What we could do here is getting an bootsector from this manual install > >> on this specific device, save it then - having booted Knoppix or other > >> live CD - eg. with dd if=/dev/sda of=mybootsec count=1 > >> and put this file to /z/site/mybootsec > >> > >> When installing with unattended, throw it with > >> dd if=/z/site/mybootsec of=/dev/sda > >> on the disk before parted is first time started (you know, it's the same > >> as erasing all data on the disk, so be careful). I have this in mind as a solution.. ..but its not a clean way to do it.. > > > > or, is it possible to 'patch' mbr' direct on disk? I tried to do: echo -e -n "\xf0" |dd of=/dev/sda1 bs=1 seek=26 conv=notrunc before dosemu/windows installation started, but it did not work.. ..I have to do some more reading about this.. Maybe find a tool to fix on-disk geometry, (fdisk ?) after partitioning is done.. oh, well, still some options left. _______________________________________________ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel