Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Wednesday, June 22, 2011

Windows dd for Super Grub2 Disk live usb

I wanted to create a live usb for Super Grub2 Disc, and unetbootin currently won't do that properly.

So I got hold of Windows dd and used that.

First did

dd --list

to find which device name the USB stick had (in this case \\?\Device\Harddisk1\Partition0). Then

dd --filter=removable --progress --size bs=32k if=c:\super_grub_disk_hybrid-1.98s1.iso of=\\?\Device\Harddisk1\Partition0

to write the image to the stick. It booted fine and I was able to locate and boot the Ubuntu installation I'd lost on my HD.

(I used bs=32k because the iso is very small - 1.4M - and I wanted to see some evidence that it was being written. You'd use bs=1M or larger to write a full-size CD iso.)


(Updated to say: --filter-removable is a safety precaution. It restricts writing only to discs which dd believes to be removeable. Sometimes dd --list will report a disc as removeable, but dd --filter-removable will refuse to write to it, thinking it isn't removeable. In such cases, try omitting the --filter-removable switch, but of course you should make sure you do actually have the right output target.)

Linux

Linux dd may not have any of the -- or - options - try eg
sudo dd status=progress bs=1M if=/U/com/packages/lubunto18.04.iso of=/dev/sdd
noting particularly that you specify a drive (/dev/sdd) here, not a partition (/dev/sdd1).)

I read that sync is no use afterwards, the equivalent is eg
blockdev --flushbufs /dev/sdd

Followers

Blog Archive