Skip site navigation (1)Skip section navigation (2)
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&nbsp;&nbsp;&nbsp; Size&nbsp;&nbsp; Used&nbsp; Avail=20
Capacity&nbsp; Mounted on<BR>/dev/ad0s1a&nbsp;&nbsp; =
126M&nbsp;&nbsp;&nbsp;=20
43M&nbsp;&nbsp;&nbsp; 72M&nbsp;&nbsp;&nbsp; 37%&nbsp;&nbsp;&nbsp;=20
/<BR>/dev/ad0s1f&nbsp;&nbsp; 252M&nbsp;&nbsp;&nbsp; 26M&nbsp;&nbsp;=20
206M&nbsp;&nbsp;&nbsp; 11%&nbsp;&nbsp;&nbsp; =
/tmp<BR>/dev/ad0s1g&nbsp;&nbsp;=20
856M&nbsp;&nbsp; 835M -48.2M&nbsp;&nbsp; 106%&nbsp;&nbsp;&nbsp;=20
/usr<BR>/dev/ad0s1e&nbsp;&nbsp; 252M&nbsp;&nbsp;&nbsp; 74M&nbsp;&nbsp;=20
158M&nbsp;&nbsp;&nbsp; 32%&nbsp;&nbsp;&nbsp;=20
/var<BR>procfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
4.0K&nbsp;&nbsp;=20
4.0K&nbsp;&nbsp;&nbsp;&nbsp; 0B&nbsp;&nbsp; 100%&nbsp;&nbsp;&nbsp;=20
/proc<BR><BR>edi# disklabel ad0s1<BR>...<BR>8=20
partitions:<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
size&nbsp;&nbsp;=20
offset&nbsp;&nbsp;&nbsp; fstype&nbsp;&nbsp; [fsize bsize =
bps/cpg]<BR>&nbsp;=20
a:&nbsp;&nbsp; 262144&nbsp;&nbsp;&nbsp;&nbsp;&nbs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bsp;&nbsp;=20
2048 16384&nbsp;&nbsp;&nbsp; 89&nbsp;&nbsp; # (Cyl.&nbsp; 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>