mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
modified: chr.sh
This commit is contained in:
parent
f427b87487
commit
c2e58c16cd
1 changed files with 3 additions and 2 deletions
5
chr.sh
5
chr.sh
|
|
@ -1,12 +1,13 @@
|
|||
dd if=/dev/zero of=/dev/sda bs=1 count=512
|
||||
sgdisk --clear --set-alignment=2 \
|
||||
sgdisk --set-alignment=2 \
|
||||
--new=1::+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" --attributes=1:set:2 \
|
||||
--new=2::-0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
||||
--gpttombr=1:2 \
|
||||
/dev/sda
|
||||
dd if=/dev/sda of=pt.bin bs=1 count=66 skip=446
|
||||
echo -e "\x80" | dd of=pt.bin bs=1 count=1 conv=notrunc
|
||||
sgdisk --mbrtogpt --clear --set-alignment=2 \
|
||||
dd if=/dev/zero of=/dev/sda bs=1 count=512
|
||||
sgdisk --set-alignment=2 \
|
||||
--new=1::+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" --attributes=1:set:2 \
|
||||
--new=2::-0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
||||
/dev/sda
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue