Re: safe way to reduce partition
Hello! On Tue, May 31, 2005 at 08:31:55PM +0200, mess-mate wrote: Hannah Schroeter [EMAIL PROTECTED] wrote: | On Tue, May 31, 2005 at 06:05:39PM +0200, mess-mate wrote: | Hi list, | anyone known a safe way to reduce my /usr partition and moving my | /var ? | Here my slice : | Filesystem 512-blocks UsedAvail Capacity Mounted on | /dev/wd0a 301532 2327765368081%/ | /dev/wd0d 2420124 229908 0%/tmp | /dev/wd0f 2821788 990880 168982037%/usr | /dev/wd0e 604412 4850848910884%/var | Backup *everything*, edit the disklabel to move around the space between | /usr and /var (it can work while preserving the other partitions if they | are adjacent), newfs, restore the backups. If you should break the other | partitions by accident, you have got a backup of everything, haven't you? Here is my disklabel layout : 16 partitions: #size offsetfstype [fsize bsize cpg] a: 307377 634.2BSD 2048 16384 304 # (Cyl. 0*- 304) b: 196560 307440 swap# (Cyl. 305 - 499) c: 42336000unused0 0 # (Cyl.0 - 4199) d: 245952 5040004.2BSD 2048 16384 244 # (Cyl. 500 - 743) e: 614880 7499524.2BSD 2048 16384 328 # (Cyl. 744 - 1353) f: 2868768 13648324.2BSD 2048 16384 328 # (Cyl. 1354 - 4199) So f seems the last one (/usr). *nods* And if i leave /var as it is, only /usr must be reduced. You wanted to grow /var instead, didn't you? You could try growfs for /usr then, but you should backup anyway, best everything. But /usr has to be unmounted to make a backup, do it ? Best you do it in single user mode. You can have it mounted though (perhaps read-only, e.g. if you want to gzip the backup). That case can't get the system running. Thanks for your time mess-mate Kind regards, Hannah. -- Hannah SchrvterEntwicklung [EMAIL PROTECTED] Bei Schlund + Partner AG Brauerstra_e 48 D-76135 Karlsruhe This specification allows any of these approaches. Solving the Halting Problem is considered extra credit. (RFC 3028)
Re: safe way to reduce partition
Hello! On Tue, May 31, 2005 at 06:05:39PM +0200, mess-mate wrote: Hi list, anyone known a safe way to reduce my /usr partition and moving my /var ? Here my slice : Filesystem 512-blocks UsedAvail Capacity Mounted on /dev/wd0a 301532 2327765368081%/ /dev/wd0d 2420124 229908 0%/tmp /dev/wd0f 2821788 990880 168982037%/usr /dev/wd0e 604412 4850848910884%/var Backup *everything*, edit the disklabel to move around the space between /usr and /var (it can work while preserving the other partitions if they are adjacent), newfs, restore the backups. If you should break the other partitions by accident, you have got a backup of everything, haven't you? best regards mess-mate Kind regards, Hannah.
Re: safe way to reduce partition
Hannah Schroeter [EMAIL PROTECTED] wrote: | Hello! | | On Tue, May 31, 2005 at 06:05:39PM +0200, mess-mate wrote: | Hi list, | anyone known a safe way to reduce my /usr partition and moving my | /var ? | Here my slice : | Filesystem 512-blocks UsedAvail Capacity Mounted on | /dev/wd0a 301532 2327765368081%/ | /dev/wd0d 2420124 229908 0%/tmp | /dev/wd0f 2821788 990880 168982037%/usr | /dev/wd0e 604412 4850848910884%/var | | Backup *everything*, edit the disklabel to move around the space between | /usr and /var (it can work while preserving the other partitions if they | are adjacent), newfs, restore the backups. If you should break the other | partitions by accident, you have got a backup of everything, haven't you? | Here is my disklabel layout : 16 partitions: #size offsetfstype [fsize bsize cpg] a: 307377 634.2BSD 2048 16384 304 # (Cyl. 0*- 304) b: 196560 307440 swap# (Cyl. 305 - 499) c: 42336000unused0 0 # (Cyl.0 - 4199) d: 245952 5040004.2BSD 2048 16384 244 # (Cyl. 500 - 743) e: 614880 7499524.2BSD 2048 16384 328 # (Cyl. 744 - 1353) f: 2868768 13648324.2BSD 2048 16384 328 # (Cyl. 1354 - 4199) So f seems the last one (/usr). And if i leave /var as it is, only /usr must be reduced. But /usr has to be unmounted to make a backup, do it ? That case can't get the system running. Thanks for your time mess-mate -- Delay not, Caesar. Read it instantly. -- Shakespeare, Julius Caesar 3,1 Here is a letter, read it at your leisure. -- Shakespeare, Merchant of Venice 5,1 [Quoted in VMS Internals and Data Structures, V4.4, when referring to I/O system services.]