Hi, On Friday, 13 Jan 2012 at 13:40 CET lilit-aibolit <lilit-aibo...@mail.ru> wrote:
> Hi misc. Here is newbee question. > I have disk with unused space: > > # disklabel -p g wd0 > 16 partitions: > # size offset fstype [fsize bsize cpg] > a: 1.0G 63 4.2BSD 2048 16384 1 # / > b: 1.2G 2097215 swap > c: 37.3G 0 unused > d: 2.6G 4683375 4.2BSD 2048 16384 1 # /tmp > e: 4.0G 10052439 4.2BSD 2048 16384 1 # /var > f: 2.0G 18541648 4.2BSD 2048 16384 1 # /usr > g: 1.0G 22735952 4.2BSD 2048 16384 1 # /usr/X11R6 > h: 3.5G 24833104 4.2BSD 2048 16384 1 # /usr/local > i: 1.9G 32229473 4.2BSD 2048 16384 1 # /usr/src > j: 1.9G 36247864 4.2BSD 2048 16384 1 # /usr/obj > k: 18.1G 40266255 4.2BSD 2048 16384 1 # /home So which one is unsed? Hint: partition c is always marked as unused, because it is the whole disk. You can NOT use it for anything. > and I have /var with ending space: > > # df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/wd0a 1005M 206M 749M 22% / > /dev/wd0k 17.8G 411M 16.5G 2% /home > /dev/wd0d 2.5G 6.0K 2.4G 0% /tmp > /dev/wd0f 2.0G 927M 985M 48% /usr > /dev/wd0g 1005M 167M 787M 18% /usr/X11R6 > /dev/wd0h 3.5G 280M 3.0G 8% /usr/local > /dev/wd0j 1.9G 993M 841M 54% /usr/obj > /dev/wd0i 1.9G 790M 1.0G 43% /usr/src > /dev/wd0e 4.0G 3.4G 376M 90% /var > > In /var I store some sites for apache and need more space for it. > How can I use unused space for /var or it will be used automatically > when /var reaches capacity 100%? No, it will not grow automagically. -- Greetings Rafal Bisingier