Мне нужно вырезать раздел, используя команду DD. Как мне этого добиться? В моем случае мне нужно скопировать из блока 205267 в (включая этот блок) 29311545. Размер блока составляет 512 байт.
Можно достигнуть этого с:
# make sure you set the right paths for sdX dd if=/dev/sdX of=~/outputfile bs=512 skip=205266 count=29106280
Объяснение опций:
if= describes the inputfile path of= describes the output file path bs= states the blocksize in bytes skip= skips bs size blocks at the beginning of input file count= read N blocks (so in your case N = (End+1)-Begin)
cat
не должны делать этого. Я don' t знают. – Byte Commander♦ 2 September 2017 в 23:12