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 19:39:24 +02:00
parent b50bd2675d
commit 0fcccbd088

@ -12,24 +12,24 @@ $ dd conv=notrunc if=/dev/zero of=disk.raw bs=1G count=1
Like a normal hard disk, we have to partition the image. The following command create one big partition.
```bash
]$ echo ';' | sfdisk ./stream.raw
$ echo ';' | sfdisk ./disk.raw
Checking that no-one is using this disk right now ... OK
Disk ./stream.raw: 50 MiB, 52428800 bytes, 102400 sectors
Disk ./disk.raw: 1 GiB, 1073741824 bytes, 2097152 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 0x69d82e2d.
Created a new partition 1 of type 'Linux' and of size 49 MiB.
./stream.raw2:
>>> Created a new DOS disklabel with disk identifier 0x75636418.
Created a new partition 1 of type 'Linux' and of size 1023 MiB.
./disk.raw2:
New situation:
Device Boot Start End Sectors Size Id Type
./stream.raw1 2048 102399 100352 49M 83 Linux
Device Boot Start End Sectors Size Id Type
./disk.raw1 2048 2097151 2095104 1023M 83 Linux
The partition table has been altered.
Syncing disks
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.