LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to determine block size when using dd (https://www.linuxquestions.org/questions/linux-software-2/how-to-determine-block-size-when-using-dd-608451/)

kav 12-21-2007 07:03 PM

how to determine block size when using dd
 
How do I figure out what the maximum value of bs can be for a given hard drive when using dd to mirror hard drives?

I know there was some math you could plug into python using the output of fdisk to figure out how high a limit you could put on bs= when running dd to speed up a disk to disk copy. It had something to do with not making it so high that the last block didn't hang off the end of the disk.

I can't find it in any of my googling and I don't want to wait for this thing to finish at 512 block sizes...

kav 12-21-2007 07:37 PM

I just searched for the last 30 minutes and can't find it. The last time I did this for some other backup 1M was safe, and you don't get much faster if you go any higher. I'm just gonna go with 1M and compare the sizes listed in fdisk and hopefully the two drives will match. Then I'll boot all the partitions to make absolutely sure.

Honestly it probably doesn't even really matter. I think the swap partition was last on the disk, which is where any discrepancies would show up anyway...

teckk 12-22-2007 07:16 PM

http://www.linuxquestions.org/questi...ommand-366442/
Good thread for dd.


All times are GMT -5. The time now is 10:49 AM.