Feb. 23rd, 2008

reldnahkram: (Default)
Apparently, cp craps out when you give it too many things to move. I think the magic number is around 5000. So, for those really big copy jobs, use:
find . -depth -print0 | cpio --null --sparse -pvd $TARGET
Yes, it does subdirectories.

How do I know this? I grouped all of my mail archives into one Maildir last night [1]. Before I did that, I moved /home to a new 100 GB partition [2]. And that's where learned that trick. Google "ubuntu home new partition"; the first result is what I used.

[1] Swarpa folks, I'll clean out my Maildir shortly and give you some MBs back - I'm just going to double check a few things first.
[2] No, I don't have that much mail. But I have a 500 GB hard drive, and it's still not all partitioned, so why not [3]?
[3] The best thing about a 500 GB hard drive? Unless you start messing around with uncompressed audio, lots of video, or serious photography, you don't have to delete anything. Ever. I have a partition that, among other things, has the entire contents of the hard drives that used to be in my two ancient servers. I could go through and delete the old OS installs, but why bother?

Profile

reldnahkram: (Default)
reldnahkram

September 2016

S M T W T F S
    123
45678910
11121314151617
18192021 222324
252627282930 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 11th, 2026 10:13 pm
Powered by Dreamwidth Studios