diff --git a/Boot-HermitCore-from-a-raw-image.md b/Boot-HermitCore-from-a-raw-image.md index 81c4a89..e44adb6 100644 --- a/Boot-HermitCore-from-a-raw-image.md +++ b/Boot-HermitCore-from-a-raw-image.md @@ -9,4 +9,27 @@ $ dd if=/dev/zero of=stream.raw bs=512 count=102400 52428800 bytes (52 MB, 50 MiB) copied, 0.138028 s, 380 MB/s ``` -Like a normal hard disk, we have to partition the image. \ No newline at end of file +Like a normal hard disk, we have to partition the image. + +```bash +$ sfdisk ./stream.raw << EOF +,50M +EOF +Checking that no-one is using this disk right now ... OK + +Disk ./stream.raw: 50 MiB, 52428800 bytes, 102400 sectors +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / 512 bytes + +>>> Created a new DOS disklabel with disk identifier 0x2c9f24b8. +Created a new partition 1 of type 'Linux' and of size 49 MiB. +./stream.raw2: +New situation: + +Device Boot Start End Sectors Size Id Type +./stream.raw1 2048 102399 100352 49M 83 Linux + +The partition table has been altered. +Syncing disks. +``` \ No newline at end of file