Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2005 11:00:28 -0400 (EDT)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        freebsd@philip.pjkh.com (Philip Hallstrom)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: resizing partitions
Message-ID:  <200504211500.j3LF0SZh016675@clunix.cl.msu.edu>
In-Reply-To: <20050421073339.N79966@wolf.pjkh.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
> 
> On Thu, 21 Apr 2005, Jerry McAllister wrote:
> 
> >>
> >> Hello,
> >>     I've got a 5.3-RELEASE box which has a /usr partition /dev/ad0s1e that
> >> is to small by approximately 700 mb. I've got the space on /var /dev/ad0s1d
> >> to do a resize, but i am unsure as to the procedure. I tried this once a
> >> while back on a test box and lost everything. If anyone has done this or has
> >> a procedure i'd be interested.
> >
> > Instead of actually resizing the partition, you can just move some
> > of the stuff to a partition where you have plenty of room and then
> > make sym-links to it.   /usr/local  and  /usr/ports are good
> > candidates.   Tar the whole directory tree up and put it where
> > you want and untar it.   Then make links and rm the old one.
> 
> Probably worth making sure you add the 'pS' options to tar as well...

Good idea.

////jerry

> 
> -p
> --same-permissions
> --preserve-permissions  Extract all protection information.
> 
> -S
> --sparse                Handle ``sparse'' files efficiently.
> 
> I find whenever I do something like this and forget those -- particularly 
> -p -- I end up regretting it when users whine at me because they can't 
> write to their files :-)
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504211500.j3LF0SZh016675>