From owner-freebsd-questions Wed May 22 21:41:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by hub.freebsd.org (Postfix) with ESMTP id 5D47337B40B for ; Wed, 22 May 2002 21:41:16 -0700 (PDT) Received: from HAL9000 ([64.229.161.60]) by tomts7-srv.bellnexxia.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20020523044107.NLBG12966.tomts7-srv.bellnexxia.net@HAL9000> for ; Thu, 23 May 2002 00:41:07 -0400 Message-ID: <007201c20214$0dab3240$0201a8c0@HAL9000> From: "Lubomir Radev" To: Subject: resizing fbsd partition Date: Thu, 23 May 2002 00:41:06 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_006F_01C201F2.864D1FF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_006F_01C201F2.864D1FF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I need to resize my /usr partition, here's the current situation: edi# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 126M 43M 72M 37% / /dev/ad0s1f 252M 26M 206M 11% /tmp /dev/ad0s1g 856M 835M -48.2M 106% /usr /dev/ad0s1e 252M 74M 158M 32% /var procfs 4.0K 4.0K 0B 100% /proc edi# disklabel ad0s1 ... 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 262144 0 4.2BSD 2048 16384 94 # (Cyl. 0 - = 65*) b: 231488 262144 swap # (Cyl. 65*- = 122*) c: 3322305 0 unused 0 0 # (Cyl. 0 - = 823*) e: 524288 493632 4.2BSD 2048 16384 94 # (Cyl. 122*- = 252*) f: 524288 1017920 4.2BSD 2048 16384 94 # (Cyl. 252*- = 382*) g: 1780097 1542208 4.2BSD 2048 16384 89 # (Cyl. 382*- = 823*) Given that layout, is it possible to delete /dev/ad0s1f (/tmp)=20 (I intend to make /tmp symlink to /var/tmp) and use freed space=20 to label beginning of /dev/ad0s1g (/usr) at the beginning of former=20 /tmp partition, then use grows(8) to increase /usr partition? In other words, can I re-label a partition moving its beginning back, provided there is a free space just before that partition? Thanks. ------=_NextPart_000_006F_01C201F2.864D1FF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I need to=20 resize my /usr partition, here's the current situation:

edi# df=20 -h
Filesystem    Size   Used  Avail=20 Capacity  Mounted on
/dev/ad0s1a   = 126M   =20 43M    72M    37%   =20 /
/dev/ad0s1f   252M    26M  =20 206M    11%    = /tmp
/dev/ad0s1g  =20 856M   835M -48.2M   106%   =20 /usr
/dev/ad0s1e   252M    74M  =20 158M    32%   =20 /var
procfs        = 4.0K  =20 4.0K     0B   100%   =20 /proc

edi# disklabel ad0s1
...
8=20 partitions:
#        = size  =20 offset    fstype   [fsize bsize = bps/cpg]
 =20 a:   262144       =20 0    4.2BSD     2048 = 16384   =20 94   # (Cyl.    0 - 65*)
  = b:  =20 231488   262144     =20 swap           &nb= sp;           =20 # (Cyl.   65*- 122*)
  c: =20 3322305        0   =20 unused        = 0    =20 0         # = (Cyl.    0 -=20 823*)
  e:   524288   = 493632   =20 4.2BSD     2048 16384    = 94   #=20 (Cyl.  122*- 252*)
  f:   524288 =20 1017920    4.2BSD     2048=20 16384    94   # (Cyl.  252*- = 382*)
 =20 g:  1780097  1542208    = 4.2BSD    =20 2048 16384    89   # (Cyl.  382*-=20 823*)

Given that layout, is it possible to delete /dev/ad0s1f = (/tmp)=20
(I intend to=20 make /tmp symlink to /var/tmp) and use freed space
to label=20 beginning of /dev/ad0s1g (/usr) at the beginning of former =
/tmp partition,=20 then use grows(8) to increase /usr partition?
In other words, can I = re-label=20 a partition moving its beginning
back, provided there is a free space = just=20 before that=20 partition?

Thanks.



------=_NextPart_000_006F_01C201F2.864D1FF0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message