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 10: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 03:19 PM
How do copy certain files and directories from one hard drive to another? shorty UNIX for Dummies Questions & Answers 4 02-11-2006 08:26 PM
Processor and Hard Drive etaup02 SCO 1 04-06-2005 11:24 AM
Partition Hard drive amir UNIX for Dummies Questions & Answers 1 02-03-2005 06:01 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-27-2006
shorty shorty is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 51
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.
  #2 (permalink)  
Old 01-27-2006
larryase larryase is offline
Registered User
  
 

Join Date: Nov 2004
Posts: 69
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
  #3 (permalink)  
Old 01-29-2006
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
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
  #4 (permalink)  
Old 01-30-2006
shorty shorty is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 51
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
  #5 (permalink)  
Old 01-30-2006
shorty shorty is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 51
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?!?!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0