Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[FAQ] Howto move the system on to a bigger harddrive ?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
alinv
Guru
Guru


Joined: 19 Nov 2002
Posts: 395
Location: Bucharest

PostPosted: Fri Sep 02, 2005 10:45 am    Post subject: Reply with quote

tragor wrote:
# cd /mnt/hda1
# find . -print | cpio -pamd /mnt/hdb1


cpio silently failed to copy a 3+ Gb file to the new location (the file was created, but zero-sized).
I would recommend using either tar
Code:
(cd /path/to/source ; tar cpsO .) | (cd /path/to/destination ; tar xf -)

or cp -a , as previously stated.
BTW, either method is faster.
_________________
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
S.B.
Back to top
View user's profile Send private message
revertex
l33t
l33t


Joined: 23 Apr 2003
Posts: 806

PostPosted: Wed Oct 19, 2005 7:07 am    Post subject: Reply with quote

I'm surprised nobody sugested rsync.
Back to top
View user's profile Send private message
alinv
Guru
Guru


Joined: 19 Nov 2002
Posts: 395
Location: Bucharest

PostPosted: Wed Oct 19, 2005 7:23 am    Post subject: Reply with quote

revertex wrote:
I'm surprised nobody sugested rsync.


Usually, this is a one-time job, and I don't think rsync is that efficient.
_________________
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
S.B.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum