close
Warning:
Failed to sync with repository "(default)": [Errno 12] Cannot allocate memory; repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
- Timestamp:
-
May 12, 2017, 10:18:07 AM (7 years ago)
- Author:
-
M.N. Akhiezer
- Comment:
-
Basic factoring for Bootcode (GPT/MBR).
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v19
|
v20
|
|
48 | 48 | dd if=/dev/zero of=/dev/sda bs=446 count=1[[BR]] |
49 | 49 | |
50 | | ==== MBR ==== |
51 | | dd bs=440 conv=notrunc count=1 if=/cross-tools/syslinux/mbr.bin of=/dev/sda[[BR]] |
52 | | |
53 | | ==== GPT ==== |
54 | | dd bs=440 conv=notrunc count=1 if=/cross-tools/syslinux/gptmbr.bin of=/dev/sda[[BR]] |
| 50 | ==== Bootcode ==== |
| 51 | BOOTCODE_TYP='gpt' ; # 'gpt' (for GPT) or empty-string (for MBR).[[BR]] |
| 52 | dd bs=440 conv=notrunc count=1 if=/cross-tools/syslinux/${BOOTCODE_TYP}mbr.bin of=/dev/sda[[BR]] |
55 | 53 | |
56 | 54 | Second we will install the Extlinux.sys file for bootup. This is the bootloader.[[BR]] |
… |
… |
|
106 | 104 | dd if=/dev/zero of=/dev/sda bs=446 count=1[[BR]] |
107 | 105 | |
108 | | ==== MBR ==== |
109 | | dd bs=440 conv=notrunc count=1 if=/usr/share/syslinux/mbr.bin of=/dev/sda[[BR]] |
110 | | |
111 | | ==== GPT ==== |
112 | | dd bs=440 conv=notrunc count=1 if=/usr/share/syslinux/gptmbr.bin of=/dev/sda[[BR]] |
| 106 | ==== Bootcode ==== |
| 107 | BOOTCODE_TYP='gpt' ; # 'gpt' (for GPT) or empty-string (for MBR).[[BR]] |
| 108 | dd bs=440 conv=notrunc count=1 if=/usr/share/syslinux/${BOOTCODE_TYP}mbr.bin of=/dev/sda[[BR]] |
113 | 109 | |
114 | 110 | Second we will install the extlinux.sys file for bootup. This is the bootloader.[[BR]] |