This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/dev/zero of=test.img bs=4096 count=10240 (can make larger) | |
fdisk test.img | |
use 'o' | |
then 'n', 'p', '1', '8192', '122879' | |
then 't', '1', 'c' | |
look up 'End' sector number of first partition, add 1 | |
then 'n', 'p', '2', 'number calculated above', default full space end | |
then 'w' | |
... |