Date: Tue, 25 Sep 2001 14:26:45 +0200 (CEST) From: Micke Josefsson <mj@isy.liu.se> To: Justin Stanford <jus@security.za.net> Cc: freebsd-questions@FreeBSD.ORG Subject: RE: Upgrading HDD space on existing installation.. ideas? Message-ID: <XFMail.20010925142645.mj@isy.liu.se> In-Reply-To: <Pine.BSF.4.21.0109251216250.461-100000@athena.za.net>
next in thread | previous in thread | raw e-mail | index | archive | help
You do not need to reinstall. I suggest you endow your machine with two disks in
total, the one you have there already and the new one.
I think this route would be succesful:
Insert your new disk, format it etc.
Is it /usr/home that is crowded? Then put /home on the new disk.
If not then move the entire /usr to the new disk:
#cd /usr
#find . -depth -print | cpio -pudm <newdisk>
change /etc/fstab accordingly.
Now you seem to be short on /var too?
Given that your new disk has /usr on it, proceed as:
either:
# reuse your old /usr space
mount /dev/ad0s2f /mnt
cd /mnt
rm -rf
# then put /var into it
cd /var
find . -depth -print | cpio -pudm /mnt
# and finally edit the /var-line in /etc/fstab
or
dump -0uaf /usr/var.dump /dev/ad0s2e
This will build an exact image in /usr/var.dump
cd /wherever you have ample amount of space
restore rvf /usr/var.dump
This will fill the new space with the old dump.
Hope some of this is useful for you. Feel free to email me privately if you need
to.
Finally: Exactly what is taking all that space? Have you done make clean in
/usr/ports? When I am building CD:s I have a separate disk mounted as /disk1 for
the huge files needed.
/Micke
On 25-Sep-2001 Justin Stanford wrote:
> Hi,
>
> 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.
>
> --
> Justin Stanford
> Internet/Network Security & Solutions Consultant
> 4D Digital Security
> http://www.4dds.co.za
> Cell: (082) 7402741
> E-Mail: jus@security.za.net
> PGP Key: http://www.security.za.net/jus-pgp-key.txt
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
----------------------------------
Michael Josefsson, MSEE
mj@isy.liu.se
This message was sent by XFMail
running on FreeBSD 4.4-STABLE
----------------------------------
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?XFMail.20010925142645.mj>
