1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-30 00:00:15 +01:00

Updated Boot HermitCore from a raw image (markdown)

Stefan Lankes 2017-05-28 17:42:07 +02:00
parent 16dfed28bb
commit e7aadd74a9

@ -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
```