Date: Thu, 23 May 2002 00:41:06 -0400 From: "Lubomir Radev" <lubomirr@sympatico.ca> To: <freebsd-questions@FreeBSD.ORG> Subject: resizing fbsd partition Message-ID: <007201c20214$0dab3240$0201a8c0@HAL9000>
next in thread | raw e-mail | index | archive | help
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" = size=3D3>I need to=20 resize my /usr partition, here's the current situation:<BR><BR>edi# df=20 -h<BR>Filesystem Size Used Avail=20 Capacity Mounted on<BR>/dev/ad0s1a = 126M =20 43M 72M 37% =20 /<BR>/dev/ad0s1f 252M 26M =20 206M 11% = /tmp<BR>/dev/ad0s1g =20 856M 835M -48.2M 106% =20 /usr<BR>/dev/ad0s1e 252M 74M =20 158M 32% =20 /var<BR>procfs = 4.0K =20 4.0K 0B 100% =20 /proc<BR><BR>edi# disklabel ad0s1<BR>...<BR>8=20 partitions:<BR># = size =20 offset fstype [fsize bsize = bps/cpg]<BR> =20 a: 262144 =20 0 4.2BSD 2048 = 16384 =20 94 # (Cyl. 0 - 65*)<BR> = b: =20 231488 262144 =20 swap &nb= sp; =20 # (Cyl. 65*- 122*)<BR> c: =20 3322305 0 =20 unused = 0 =20 0 # = (Cyl. 0 -=20 823*)<BR> e: 524288 = 493632 =20 4.2BSD 2048 16384 = 94 #=20 (Cyl. 122*- 252*)<BR> f: 524288 =20 1017920 4.2BSD 2048=20 16384 94 # (Cyl. 252*- = 382*)<BR> =20 g: 1780097 1542208 = 4.2BSD =20 2048 16384 89 # (Cyl. 382*-=20 823*)<BR><BR>Given that layout, is it possible to delete /dev/ad0s1f = (/tmp)=20 </FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" = size=3D3>(I intend to=20 make /tmp symlink to /var/tmp) and use freed space </FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" = size=3D3>to label=20 beginning of /dev/ad0s1g (/usr) at the beginning of former = </FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" = size=3D3>/tmp partition,=20 then use grows(8) to increase /usr partition?<BR>In other words, can I = re-label=20 a partition moving its beginning<BR>back, provided there is a free space = just=20 before that=20 partition?<BR><BR>Thanks.</FONT><BR><BR><BR></DIV></FONT></BODY></HTML> ------=_NextPart_000_006F_01C201F2.864D1FF0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007201c20214$0dab3240$0201a8c0>