home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Linux and Unix
Ask a Tech Support Question (free)!

How do you use dd for copying smaller hard drive to larger hard drive?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1772
Discussions: 200,924, Posts: 2,379,107, Members: 246,290
Old November 20th, 2003, 04:46 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Apr 2002
Location: Georgia
Posts: 137
How do you use dd for copying smaller hard drive to larger hard drive?

I know this is probably a very stupid question, but how do you use the UNIX/Linux dd command to copy the entire contents of one hard drive to another? The second hard drive is larger than the first, but I don't know how you specify when to stop or whatever. Really, ideally, I would just like the exact command-line which will copy the entirety of hard drive 1 to hard drive 2?

Assume /dev/hd0 and /dev/hd1 are the hard drives.

I mean, is it as simple as

dd if=/dev/hd0 of=/dev/hd1 bs=512
or what???

Also, how do you figure out the appropriate blocksize number? I just see 512 a lot, so I figure that is good, but I really don't know how to figure out correct blocksize number or if it even matters.

I don't care that the master boot record would end up all incorrect and yadda yadda on the larger disk, as that is fixable after the copy. I just want to know how to do this. ...thanks
__________________
Jüš† ä €öm¶ù†Ê® §ÇÌÈñŒ mÅjÒ®
Jüš† ä gü¥ is offline   Reply With Quote
Old November 20th, 2003, 04:59 PM     #2 (permalink)
Ultimate Member
 
Germ's Avatar
 
Join Date: Oct 2001
Location: Lat:36.5N, Lon:95.5W
Posts: 1,274
Send a message via AIM to Germ Send a message via Yahoo to Germ
bs is boot sector. resides in the first 512 bytes.

dd if=/dev/hd0 bs=512 count=1 of=/dev/hd1
__________________
How do you set this laser printer to stun??
Germ is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2856)
Obama the Muslim (14)
Why is Khalid Sheikh Mohammed even .. (9)
windows vista security holes (9)
Is the PSU I received dead? (10)
Foreign voltage (10)
Print spooler problem (13)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (9)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
New Computer wont recognize XP disc (7)
Ideal cheap graph card for PC-Gamin.. (15)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
Optical Audio A-B Switch (0)
windows vista security holes (9)
Fire in DVD (0)
radeon x850xt platinum & shader 3 (2)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)
Install XP pro and a Vista laptop ?? (9)
EVGA 9800 gtx help with finding a goo.. (8)
Modern Warfare For the PC (32)
Problem with speed step/turbo boost? (1)
Modern Warfare 2: Who Bought It? (61)
SIS 740 and Widescreen (8)
Baffling Problem with my CPU/MoBo's. .. (0)
HIS HD5770 graphic card question (15)


All times are GMT -4. The time now is 10:41 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28