diff --git a/Boot-HermitCore-from-a-raw-image.md b/Boot-HermitCore-from-a-raw-image.md index e44adb6..ba15ea5 100644 --- a/Boot-HermitCore-from-a-raw-image.md +++ b/Boot-HermitCore-from-a-raw-image.md @@ -9,12 +9,10 @@ $ 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. +Like a normal hard disk, we have to partition the image. The following command create one big partition. ```bash -$ sfdisk ./stream.raw << EOF -,50M -EOF +]$ echo ';' | sfdisk ./stream.raw Checking that no-one is using this disk right now ... OK Disk ./stream.raw: 50 MiB, 52428800 bytes, 102400 sectors @@ -22,7 +20,7 @@ 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 DOS disklabel with disk identifier 0x69d82e2d. Created a new partition 1 of type 'Linux' and of size 49 MiB. ./stream.raw2: New situation: @@ -31,5 +29,5 @@ Device Boot Start End Sectors Size Id Type ./stream.raw1 2048 102399 100352 49M 83 Linux The partition table has been altered. -Syncing disks. +Syncing disks ``` \ No newline at end of file