resizing fbsd partition

resizing fbsd partition

Post by Lubomir Rade » Fri, 24 May 2002 02:01:36



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) (I intend to
make /tmp
symlink to /var/tmp) and use freed space to label beginning of /dev/ad0s1g
(/usr)
at the beginning of former /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.

 
 
 

resizing fbsd partition

Post by Brendhan Horn » Sun, 26 May 2002 08:09:46


Basically Yes

You  can take over the /tmp directory by merging it with /usr but you will
lose the /tmp directory. Two items to read
http://www.daemonnews.org/200111/growfs.html
http://lantech.geekvenue.net/chucktips/jason/chuck/jason/chuck/101987...
dex_html

I think you will find both helpful.
Brendhan


Quote:> 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) (I intend
to
> make /tmp
> symlink to /var/tmp) and use freed space to label beginning of /dev/ad0s1g
> (/usr)
> at the beginning of former /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.


 
 
 

1. Moving/Resizing Linux (ext2) partitions with Partition Magic: It works!

This is a success story - I didn't think it would work, but it did.  I did a
fairly complex set of operations (shrinking the FAT partition, moving the
extended partition, deleting one swap partition - resizing another one, and
moving/resizing the ext2 [Linux boot] partition), all in one Pmagic session,
and it worked just fine.

And here's the thing that's amazing: I did not have to re-run LILO - the
thing just booted up fine.  This totally amazed me, except for the fact that
this was a "LILO in the partition - booted by some other boot manager in the
MBR", rather than a "LILO in the MBR" setup.  So, it appears, Pmagic is
actually smart enough to fix the LILO setup if it is in the partition that
is being resized/moved.

Have I got this all right?  BTW, I've sort of lost my Pmagic documentation;
though in fact, I never really read it anyway - since this is the kind of
program that really should be self-documenting - which I've always found it
to be (translation: I haven't screwed up yet).

2. Driver for AMD PCNet adapter

3. creating a swap partition and resizing existing partitions

4. Help needed with RedHat Linux install!

5. Resize linux partition w/ Partition Magic!!

6. help with installing a .bin file

7. Resizing Linux partition by Partition Magic - help needed!

8. Linux and RAID

9. Newbie: How big a partition should be/resize Linux partition

10. Resize linux partition w/ Partition Magic!!

11. Linux (Ext2) Partitions are now Resizable (Re: Resize partition ?)

12. Can Partition Magic resize ext2 partitions?

13. Resizing partitions with Partition Magic