Re: Issue writing image to disk via dd



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. 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 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/20110412221052.66c5b811@xxxxxxxxxxxxxxxxx



Relevant Pages

  • /dev/cdrom and /dev/cdrw both point to the writer
    ... Whenever I reboot my Debian Etch, running 2.6.15 or 2.6.16, both ... is a CD writer. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Update KB929777
    ... The computer now needs to reboot. ... "Robert Aldwinckle" wrote: ... Couldn't they do it via boot loader? ... KB303399 - You Cannot Finish Installing or Upgrading Internet Explorer) ...
    (microsoft.public.windowsupdate)
  • RE: System hang when installing 5.1
    ... ---> that when the USB host controller driver disables legacy ... ---> emulation you still have a working keyboard, ... >> computers appear to hang immediately after to boot loader is ... >To unsubscribe, send any mail to ...
    (freebsd-questions)
  • Re: FreeBSD-6.1 bootup hangs after power failure
    ... Tek Bahadur Limbu wrote: ... However, upon reboot right after the initial startup menu, it simply ... Also since I get the initial startup menu, something must be wrong or corrupted in the Boot loader. ...
    (freebsd-questions)
  • Re: GRUB error 18
    ... I have found out that error 18 has something to do with the boot loader and 8 gigs, ... strange thing was that it seemed to autodetect LBA anyway, ... The only options my BIOS has is LBA, NORMAL, and LARGE. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)