Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] extending /usr partition...
Date: Sat, 21 Mar 2009 18:14:30
Message-Id: 200903212012.57099.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] extending /usr partition... by Jarry
1 On Saturday 21 March 2009 20:05:42 Jarry wrote:
2 > Hi,
3 >
4 > I found out my /usr is getting full pretty fast, so I want
5 > to increase it before it happens a real problem. I have:
6 >
7 > /dev/md4 (sda5+sdb5), ~5GB size, used for /var, nearly empty
8 > /dev/md5 (sda6+sdb6), ~5GB size, used for /usr, nearly full (90%)
9 > And I have /backup on separate partition (hda1), big enough
10 >
11 > What I think of is this procedure: First I copy /var and /usr:
12 > cp -a /var /backup
13 > cp -a /usr /backup
14
15 Yes
16
17 > Then I intend to reboot with install-cd, repartition sda/sdb
18 > (make sda5/sdb5 smaller and sda6/sdb6 bigger), create new
19 > /dev/md4 and /dev/md5, mount them, and copy the content back.
20
21 Yes
22
23 > cp -a /mnt/gentoo/backup/var /mnt/gentoo/var
24 > cp -a /mnt/gentoo/backup/usr /mnt/gentoo/usr
25
26 Um, no. This gives you new usr and var directories like so:
27
28 /usr/usr/
29 /var/var
30
31 You want:
32
33 cp -a /mnt/gentoo/backup/var /mnt/gentoo/
34 cp -a /mnt/gentoo/backup/usr /mnt/gentoo/
35
36 > Is it a correct procedure? All partitions are ext3 type, no lvm2,
37 > moreover on /dev/md so I can not extend/shrink them while using...
38
39 It's correct, and it also highlights just what a PITA it is to manipulate
40 traditional disk partitions. With lvm, this becomes a breeze. With ZFS (we
41 might see it one day) this becomes invisible.
42
43
44 --
45 alan dot mckinnon at gmail dot com

Replies

Subject Author
Re: [gentoo-user] extending /usr partition... Dirk Heinrichs <dirk.heinrichs@××××××.de>
Re: [gentoo-user] extending /usr partition... Jarry <mr.jarry@×××××.com>
[gentoo-user] Re: extending /usr partition... Francesco Talamona <francesco.talamona@××××.eu>