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:52:43 +02:00
parent 058819d364
commit c84c07b4e3

@ -32,4 +32,13 @@ The partition table has been altered.
Syncing disks
```
Afterwards, we have to setup two loop devices. One will be used for writing GRUB and its additional codes to MBR, and the second will be used for mounting filesystem of your operating system.
Afterwards, we have to setup two loop devices. One will be used for writing GRUB and its additional codes to MBR, and the second will be used for mounting filesystem of your operating system.
```bash
$ sudo losetup --find --show stream.raw
/dev/loop1
$ sudo losetup --find --show -o 1048576 stream.raw
/dev/loop2
```
The option `-o` defines the offset from start of the file. The offset 1048576 is actually 1024^2 = 1MB and that's the start of our partition.