LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-21-2007, 07:03 PM   #1
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Rep: Reputation: 15
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...
 
Old 12-21-2007, 07:37 PM   #2
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Original Poster
Rep: Reputation: 15
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...
 
Old 12-22-2007, 07:16 PM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,751

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

Last edited by teckk; 12-22-2007 at 07:18 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determine Physical RAM size skistner Linux - Hardware 18 02-22-2010 12:57 PM
Determine a function's stack size. koodoo Programming 9 06-11-2007 11:40 AM
determine size of a CF card partition lbdgwgt Linux - Newbie 2 11-09-2006 05:44 AM
How to determine file system block size? provo1234 Linux - Newbie 2 02-14-2005 09:30 AM
Determine physical disk size Kristijan Linux - General 4 01-23-2005 05:56 PM


All times are GMT -5. The time now is 05:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration