The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Add hard drive to SCO 6.0.0 uxlunatick SCO 13 04-18-2008 06:17 AM
The best partitioning schem for a 250GB Sata hard drive & a 75GB SCSI hard drive sirbijan Filesystems, Disks and Memory 0 04-05-2006 11:19 AM
How do copy certain files and directories from one hard drive to another? shorty UNIX for Dummies Questions & Answers 4 02-11-2006 04:26 PM
Processor and Hard Drive etaup02 SCO 1 04-06-2005 07:24 AM
Partition Hard drive amir UNIX for Dummies Questions & Answers 1 02-03-2005 02:01 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-27-2006
Registered User
 

Join Date: Jan 2006
Posts: 51
Stumble this Post!
Trying to copy old hard drive to new hard drive.

........I have a new hard drive and I need to copy ALL info from the old to the new. I would like to use the dd command. I know the command is as follows......

dd if=/dev/rdsk/c1t1d0s0 of=/dev/rdsk/????????

Where I have the question marks is the problem.
How do I find out what the id is?

Thanks in advance.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-27-2006
Registered User
 

Join Date: Nov 2004
Posts: 68
Stumble this Post!
shorty,

This looks like a solaris box. If its is, its is most likly c1t2d0s0. It will depend on how to formatted the disk. If you are on a sun box. Use format command to look at how it is name. Using format will not change anything IF you just use it to look at the disks. Please do man on format command before using it. I think if you use df -k it should also give you disk naming.

larryase
Reply With Quote
  #3 (permalink)  
Old 01-29-2006
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Stumble this Post!
df -k would only show you the device if it was currently mounted. Yes, the format command is probably the way to go. Did you remember to do a boot -r (or touch /reconfigure then init 6) after you added the new disk? If not, run devfsadm. Then the appropriate device entries will be created and you should be able to see the disk when you run format. You can use dd, or even ufsdump|ufsrestore to transfer your data. You're best to umount the source disk before you copy - if anything is writing to the filesystem whilst you're copying it's contents you could end up with corrupt data.

Cheers
ZB
Reply With Quote
  #4 (permalink)  
Old 01-30-2006
Registered User
 

Join Date: Jan 2006
Posts: 51
Stumble this Post!
Ok......I did a format and the new drive showed being c1t2d0.
So I did a dd if=/dev/rdsk/c1t1d0s0 of =/dev/rdsk/c1t2d0s0 and the following error showed up........
dd: /dev/rdsk/c1t2d0s0 open: Invalid argument

I did some research and the consensus is that slice 2 would span the entire disk, so I tried dd if=/dev/rdsk/c1t1d0s2 of=/dev/rdsk/c1t2d0s2 and the same error came up.

Any suggestions
Reply With Quote
  #5 (permalink)  
Old 01-30-2006
Registered User
 

Join Date: Jan 2006
Posts: 51
Stumble this Post!
Progress...........I had to label the drive......i typed format and it asked me if i wanted it labelled.......then i did dd dd if=/dev/rdsk/c1t1d0s2 of =/dev/rdsk/c1t2d0s2 and it's been running for about an hour and a half. Maybe I should have specified the blocksize?!?!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0