PDA

View Full Version : advanced usage of dd command


berky
11-07-2004, 08:14 AM
all of the following needs to be performed on a Sun V120 (ie. solaris 8 on sparc)

i need help using dd to copy a 36 gb hdd to a 72 gb hdd.

i tried to rtfm, but couldn't find anything that seemed to let me do this so it would fill up the drive and not screw anything up.

common sense tells me that if i just dd from the 36 to the 72, it will work, but i will have smaller partitions than i want. can i then somehow resize the partitions? i know you can w/partition magic, but that will not be available to me for obvious reasons.

also, it is not feasible for me to rebuild the entire box.

thanks.

HHunt
11-07-2004, 01:40 PM
Partition the 73Gb, and copy the contents some other way?
(Will cp -R recreate everything? I don't know.)

[H]EMI_426
11-07-2004, 02:06 PM
Yeah...I wouldn't use dd for that, honestly...I'd partition the drive by hand and use ufsdump/ufsrestore.

berky
11-07-2004, 04:30 PM
i will look into this ufsdump/ufsrestore. thank you for your input.