Nils Olav Fossum wrote: > Torsdag 29 mars 2007 13:40, skrev Michael J. Kidd: >> I modified several of the routines in init.functions... Don't use dialog >> at all.. Check it out. :) > > You have probably noticed the dd error in the bootsect.dat part > busybox 'dd' does not support the 'conv=' parameter. > I just removed the conv=notrunc but I cant test it > because the kernel oom somehow kills the file copying... >
According to http://www.busybox.net/downloads/BusyBox.html, the dd with busybox does support conv=notrunc... Hmm.. just looking at my linuxboot devel area.. I'm running Busybox 1.1.3, and I checked the coreutils/dd.c file. It does have support for conv w/ notrunc, sync, and noerror... So, that shouldn't be a problem. This is what I'm doing to extract the boot data from a known good drive / partition. ( setup w/ the dosemu method, then rebooted onto a linux bootable to pull the data ) Mario, can you sanity check this? Even after using the files generated with the below code, I still get the "Disk Error, Press any key to restart" error message... Thanks, Michael #!/bin/bash BASEDIR=/mnt/dd_info dd if=/dev/sda \ of=$BASEDIR/mbr_boot_code.bin bs=1 \ count=446 dd if=/dev/sda1 \ of=$BASEDIR/ntldr_boot_code_sector0 \ bs=1 count=420 skip=90 dd if=/dev/sda1 \ of=$BASEDIR/ntldr_boot_code_sector12 \ bs=512 count=1 skip=12 dd if=/c/\$win_nt\$.~bt/bootsect.dat \ of=$BASEDIR/binary/ntldr_boot_code_install \ bs=1 count=420 skip=90 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ unattended-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unattended-devel
