Move files and resize partition automatically?

Posted by Rob on Super User See other posts from Super User or by Rob
Published on 2012-07-04T02:32:32Z Indexed on 2012/07/04 3:18 UTC
Read the original article Hit count: 391

Filed under:
|
|
|

I'm in a bit of an odd situation. I've recently been working on switching from debian to arch, and I've got my home partition for both pointing to the same partition (different usernames, so that's not an issue).

What I want to do is one of two things, either:

  1. Set up user on arch with same username and group as debian, and have everything just sort of work! OR
  2. Move files I'd like to share between home folders to their own partition, and mount it with fstab.

For the second one, I have around 150gb of files that would need moved to their own partition, and i've got about 15gb of free space on my home partition. So what I'd want to do is somehow make a 10gb ext4 partition, move 10gb-ish of files, expand the partition again, move files again, etc until all the files are moved to their own partition.

I can do it manually, but it'd be easier if I could say "Move 10GB-ish of files from here to there, and then resize it and repeat until I'm out of files".

Is that even possible?

© Super User or respective owner

Related posts about linux

Related posts about partitioning