The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 10-07-2008 12:55 PM
Copying & moving en masse anekab UNIX for Dummies Questions & Answers 4 06-02-2008 12:50 PM
Moving a file system to a new partition Remi SUN Solaris 7 12-04-2006 06:10 AM
Copying a Linux distro from one partition to the other... Mr_Proper UNIX for Advanced & Expert Users 5 06-18-2003 01:38 PM
moving space from one partition to another jason6792 UNIX for Advanced & Expert Users 4 10-08-2001 06:54 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-10-2006
antalexi's Avatar
antalexi antalexi is offline
Registered User
  
 

Join Date: May 2004
Location: Southern California
Posts: 53
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
  #2 (permalink)  
Old 11-10-2006
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
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!
  #3 (permalink)  
Old 11-10-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
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
  #4 (permalink)  
Old 11-11-2006
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,953
try "lu" to to something like this
  #5 (permalink)  
Old 11-11-2006
antalexi's Avatar
antalexi antalexi is offline
Registered User
  
 

Join Date: May 2004
Location: Southern California
Posts: 53
Thanks JustIce! That was the command I was looking for.
Closed Thread

Bookmarks

Tags
cpio

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 02:41 AM.


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