1 |
On Friday 07 October 2005 03:52, Matthias Langer wrote: |
2 |
> Joe Menola wrote: |
3 |
> >On Thursday October 6 2005 7:49 pm, Matthias Langer wrote: |
4 |
> >>I want to move the /usr and /home directories to another partition, |
5 |
> >>because I'm thinking of buying a new HD. It would be great if both |
6 |
> >>directories were on the same partition, as splitting drives never seemed |
7 |
> >>very appealing to me. As far as I know, one possibility would be to |
8 |
> >>[with the boot-cd] |
9 |
> >> |
10 |
> >># mv /usr /mnt/newHD/ |
11 |
> >># mv /home /mnt/newHD/ |
12 |
> >># ln -s /mnt/newHD/usr usr |
13 |
> >># ln -s /mnt/newHD/home home |
14 |
> >> |
15 |
> >>However, I'm not sure if this is the suggested method of doing so and to |
16 |
> >>be honest, I'm not completley sure if this would even work. |
17 |
> >> |
18 |
> >>Any comments or suggestions ? |
19 |
> > |
20 |
> >In theory I suppose that would work. Myself, I would copy the contents |
21 |
> >to /mnt/newHD/ then rename the original directories and create the links. |
22 |
> > The renamed directories can be deleted after you've verified positive |
23 |
> > results. And if it all craps out, the originals can simply be renamed |
24 |
> > back to /usr and /home. |
25 |
> >You should consider creating separate partitions for these though. At some |
26 |
> >point you may wish to blow out the install but retain your /home. Separate |
27 |
> >partitions makes this much easier. And also opens the possibility of |
28 |
> > sharing your /home with multiple installs. |
29 |
> > |
30 |
> >HTH -jm |
31 |
> |
32 |
> Well, maybe you are right and creating a /usr and a /home partition is |
33 |
> the better choice. As I want to buy a 250GB drive, I'm thinking of 20G |
34 |
> for /usr and 230GB for home, while still 16GB remain for /opt, /root, |
35 |
> /bin .... . |
36 |
> Now another genooist pointed out that it would be wiser to use rsync or |
37 |
> tar instead of just |
38 |
> # cp - r /usr /mnt/newHd_part_usr/ |
39 |
> So, should I enter |
40 |
> # rsync -r /usr /mnt/newHd_part_usr/ |
41 |
> or are there some options I should activate to make sure I get what I want |
42 |
> ? |
43 |
|
44 |
if you want to use copy, I would prefer cp -a ;) |
45 |
|
46 |
hm, go to the suse site - they have a step-by-step example to move whole |
47 |
directory-trees from one partition to another.. or had it some yoears ago. |
48 |
They used tar, for some reasons they mentioned and I forgot ;) |
49 |
-- |
50 |
gentoo-user@g.o mailing list |