17 users online | 17 Guests and 0 Registered

How can the first 4MB of a disk, which contain the backup config, be read?

Use the command below:

dd if=/dev/sdb of=/root/sdb.dat bs=1M count=4


Here's the breakdown of what is happening:

dd - this is the actual program that will be running

if=/dev/sdb - declares the input file, which in this case is /dev/sdb

of=/root/sdb.dat - declares the file you wish to write the output to

bs=1M - declared s 1MB block size

count=4 - 4 blocks, of the 1MB size declared above, will be transferred

Average rating:0 (0 Votes)


Please enter your login name and password.

Add question

Ask your question below: