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)
parent
a0981541f7
commit
16dfed28bb
1 changed files with 24 additions and 1 deletions
|
@ -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.
|
||||
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.
|
||||
```
|
Loading…
Add table
Reference in a new issue