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
058819d364
commit
c84c07b4e3
1 changed files with 10 additions and 1 deletions
|
@ -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.
|
Loading…
Add table
Reference in a new issue