w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
dd - Backup MBR/partition table and first partition

Use a subshell like this:

(dd if=/dev/sda1 bs=1m; dd if=/dev/sda2 bs=1m) >
~/Desktop/sda1+2.raw

Or, if you want the 512 byte MBR in there as well (probably not the best idea), you could do:

(dd if=/dev/sda bs=512 count=1; dd if=/dev/sda1 bs=1m; dd
if=/dev/sda2 bs=1m) > ~/Desktop/MBR+sda1+2.raw




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.