The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Moving the root partition (simple fstab / grub question) d11wtq UNIX for Dummies Questions & Answers 7 15 Hours Ago 09:55 AM
Copying & moving en masse anekab UNIX for Dummies Questions & Answers 4 06-02-2008 09:50 AM
Moving a file system to a new partition Remi SUN Solaris 7 12-04-2006 02:10 AM
Copying a Linux distro from one partition to the other... Mr_Proper UNIX for Advanced & Expert Users 5 06-18-2003 10:38 AM
moving space from one partition to another jason6792 UNIX for Advanced & Expert Users 4 10-08-2001 03:54 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-10-2006
antalexi's Avatar
Registered User
 

Join Date: May 2004
Location: Southern California
Posts: 52
Stumble this Post!
copying/moving partition

I have a slice on a 72GB hard drive like this (example):

/dev/dsk/c0t1d0s0 51424287 51009 50859036 1% /usr/stuff

that I need to copy or move to a slice on a MUCH larger slice like this:

/dev/dsk/c0t2d0s6 70592505 570236 69316344 1% /usr/newstuff

What is the suggested operation (cp?, tar?) and syntax?

I tried to use the dd command like so:

dd if=/dev/dsk/c0t1d0s0 of=/dev/dsk/c0t2d0s6 bs=1024

but the screen just sits there. I know it's moving data, but it sure is taking a long time.

Thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-10-2006
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 629
Stumble this Post!
since you're not transferring anything big and since you want to see some "action" ... try ...

Code:
(cd /usr/stuff; tar cvfp - *) | (cd /usr/newstuff; tar xvfp -)

have fun!
Reply With Quote
  #3 (permalink)  
Old 11-10-2006
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,513
Stumble this Post!
Personally I prefer this becasue it doesn't have the same file/path length issues


Code:
cd /dir to copy from
find . -depth -print | cpio -pmd /dir to copy to
Reply With Quote
  #4 (permalink)  
Old 11-11-2006
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,293
Stumble this Post!
try "lu" to to something like this
Reply With Quote
  #5 (permalink)  
Old 11-11-2006
antalexi's Avatar
Registered User
 

Join Date: May 2004
Location: Southern California
Posts: 52
Stumble this Post!
Thanks JustIce! That was the command I was looking for.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
cpio

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:11 AM.


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