On 13/04/11 13:10, Mark Kane wrote: > On Wed, Apr 13, 2011, at 10:54:46 +1000, Scott Ferguson wrote: >> What commands did you use to create the original image? >> >> If image.img was created by simply:- >> dd if=/dev/sda of=/image.img >> then bs is unnecessary. > > I did not create the image directly using dd but rather used a script > which makes a bootable disk image for this purpose of remotely > reinstalling the OS.
It's possible the script uses ddrescue instead of dd to create the image - though I still don't understand why that would make a difference. Which OS did you run the image creation script from? > Running file(1) on the image from Debian shows > this if it helps: > > image.img: x86 boot sector; partition 4: ID=0xa5, active, starthead > 0, startsector 0, 50000 sectors, code offset 0x3c, BSD disklabel I'd expect a x86 bs to use 512 bytes, rather than 1M (I have a hazy memory about 512 and larger multiples being valid values...) - but partition type and file-system (5xbsd?) being BSD probably changes things. > > I tried dd with and without bs, however there is no difference. Just to > clarify why I am so confused about this: > > In Debian etch or squeeze: > > 1) dd if=image.img of=/dev/sda bs=1M > 2) Reboot > 3) New boot loader is seen and starts to boot OS, but the the OS hangs > or crashes. > > In the current Arch release: > > 1) dd if=image.img of=/dev/sda bs=1M > 2) Reboot > 3) New boot loader is seen, new operating system boots properly. > > Thanks a lot for the reply, > > -Mark > > Which would support your theory that it's due to a difference in dd between to two distros... I'm assuming the message displayed by dd when the write is finished, is identical in both cases (Debian and ArchLinux)? Both Debian and ArchLinux use the GNU coreutils package to provide dd. Debian Squeeze uses v8.5-1, while ArchLinux current uses v8.10-1 - but I see nothing upstream to indicate the differences you're experiencing. Sorry I can't provide an answer. Any chance you could post the script you used to create the image, or a link to it (I suspect it will answer the questions)?? Curiouser and curiouser.... Cheers -- Tuttle? His name's Buttle. There must be some mistake. Mistake? [Chuckles] We don't make mistakes. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4da5279e.7000...@gmail.com