Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RAW Read and Write to DISK
2015-08-19, 15:16
Post: #4
RE: RAW Read and Write to DISK
What's driving your desire for iPXE-only? I would do this by booting into a minimal Linux initrd. Gentoo have a decent guide.

You would give iPXE something like:
Code:
#!ipxe
dhcp
kernel disk-write/kernel
imgfetch disk-write/initrd
imgfetch disk-write/sda.img /sda.img
boot

The image fetched to /sda.img will appear in that location once you've booted.

The /init in your initrd could then be something like:
Code:
#!/bin/busybox sh

dd if=/sda.img of=/dev/sda
echo Completed.
sleep 10
shutdown -r now
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RAW Read and Write to DISK - jrsmile - 2015-07-18, 11:08
RE: RAW Read and Write to DISK - icb - 2015-08-19 15:16



User(s) browsing this thread: 1 Guest(s)