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
16dfed28bb
commit
e7aadd74a9
1 changed files with 4 additions and 6 deletions
|
@ -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
|
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
|
```bash
|
||||||
$ sfdisk ./stream.raw << EOF
|
]$ echo ';' | sfdisk ./stream.raw
|
||||||
,50M
|
|
||||||
EOF
|
|
||||||
Checking that no-one is using this disk right now ... OK
|
Checking that no-one is using this disk right now ... OK
|
||||||
|
|
||||||
Disk ./stream.raw: 50 MiB, 52428800 bytes, 102400 sectors
|
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
|
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||||
I/O size (minimum/optimal): 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.
|
Created a new partition 1 of type 'Linux' and of size 49 MiB.
|
||||||
./stream.raw2:
|
./stream.raw2:
|
||||||
New situation:
|
New situation:
|
||||||
|
@ -31,5 +29,5 @@ Device Boot Start End Sectors Size Id Type
|
||||||
./stream.raw1 2048 102399 100352 49M 83 Linux
|
./stream.raw1 2048 102399 100352 49M 83 Linux
|
||||||
|
|
||||||
The partition table has been altered.
|
The partition table has been altered.
|
||||||
Syncing disks.
|
Syncing disks
|
||||||
```
|
```
|
Loading…
Add table
Reference in a new issue