Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2001 16:54:25 +0000 (GMT)
From:      "P. U. (Uli) Kruppa" <root@pukruppa.de>
To:        "Gerald A.Speak" <gaspeak@va.prestige.net>
Cc:        Justin Stanford <jus@security.za.net>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Upgrading HDD space on existing installation.. ideas?
Message-ID:  <20010925163701.S802-100000@big>
In-Reply-To: <20010925130755.7D03437B419@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

the idea would be to
1) build in a second harddisk (ad1) and create your (future
/usr) partition, let us say ad1s1a (with as many GBs as you
like)
2) mount in somewhere on your existing system, let us say on
/new
3) copy the old /usr - partition onto /new
4) test your copy by doing
# umount /new
# mount /dev/ad1s1a /usr
Your old /usr-partition will not be deleted - just
invisible.
5) When your applications from /usr still work change
/etc/fstab : enter /dev/ad1s1a for /usr
6) reboot and pray!

The problematic step is 3): you cannot just use
# cp -r *
because links will not be reproduced correctly. You will
have to use  pax    or  tar  .  About the use of pax you
will find a small note in a freebsd-documentation called
formatting media (use freebsd-search).

Perhaps someone knows something about the use of tar.

Good Luck!

> On Tuesday 25 September 2001 06:22 am, Justin Stanford wrote:

> > My current workstation is running FreeBSD 4.4-STABLE, and resides on a
> > 10.2gb HDD.
> >
> > It looks like this:
> >
> > /dev/ad0s2a    48M    35M   9.2M    79%    /
> > /dev/ad0s2f   6.8G   5.8G   537M    92%    /usr
> > /dev/ad0s2e    19M    15M   2.5M    86%    /var
> >
> > ad0s1 is the first partition on the drive, which contains Win98se.
> >
> > Now, as you can see, /usr is running out of space quite fast.. during
> > today's general worktime I hit -68.5M and realised that I am in need of an
> > HDD upgrade for some more space.
> >
> > Now, the problem presents itself in that, I have been using this
> > workstation since 4.0-RELEASE (and have been tracking 4.x-STABLE via
> > cvsup), and it is nothing trivial for me to just reinstall a fresh FreeBSD
> > and start over -- my machine has years of configuration, software
> > installation, etc, behind it, so I need to find some way to move to a new,
> > bigger HDD, while still exactly preserving my system.. not just /usr,
> > everything, like /etc, /var/, and so on.
> >
> > Various suggestions have been made, but I'm not sure what the best route
> > is to follow.. any suggestions, anyone?
> >
> > Many thanks in advance,
> > Justin
> >
> > PS: Kindly CC me any answers as I am not subscribed to the questions
> > list. If this question is not suitable for this list, kindly forward it to
> > the appropriate one.
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


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?20010925163701.S802-100000>