I had to alter a few things, but essentially, it worked pretty well. I
found that what I needed to do was to make a switch between /usr, which is
huge, and /home, which is not quite so huge. I finally had to just make
all the switches and hope for the best, as there wasn't enough room to save
/usr.old and do everything else, too. But so far, things seem to be
working. I moved /usr to the second hard drive where it sits all alone on
its big partition, and I moved /home to the main hard drive. I'll let you
know if anything else crops up, as things tend to do at atimes. But for
now, thanks a lot!
Don J.
On Sun, 30 Apr 2000, Paul wrote:
Date: Sun, 30 Apr 2000 08:26:58 +0200 (CEST)
To: [EMAIL PROTECTED]
From: Paul [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Subject: [newbie] Don: About moving /usr and /home (fwd)
Hi Don,
This is one of the mails I got to help me in this, and it worked all
great. Hope it helps you too!
Paul
)0(---)0(
The fear of death keeps us from living,
not from dying...
)0([[EMAIL PROTECTED]]-)0(
http://nlpagan.net - ICQ 147208
Registered Linux User 174403
-- Forwarded message --
Date: Tue, 25 Apr 2000 22:03:10 +0200
From: flupke [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Moving usr and home
Paul wrote:
Hi all,
Now I am in need of an answer.
I have /usr and /home as subdirectories on the / (root) partition. This
is
a 1.6 Gb partition.
Now I got 2 large partitions extra available, 4 and 4.5 Gb. I want to
move
/usr to one of them, and /home to the other one.
These extra partitions now are called /b1 and /b2.
Can someone tell me how I should go about with this, without messing up
my
entire system?
Thanks for the help and advice you can give me.
Paul
First of all, if you're not confident with linux, read the whole mail
before proceeding, and make sure you understand everything (if you
don't, read the related man pages). I mean, don't do it "blindly".
Let's say your / partition is on /dev/hda1 and you want to move /usr to
/dev/hda2.
All the following should be done ad root, so TAKE CARE AND THINK TWICE
BEFORE HITTING YOUR 'ENTER' KEY!
You should take one more precaution by going into single user mode (by
typing "init 1") before doing this. Ok. Here we go.
- First, you create a ext2 file system on /dev/hda2 with mke2fs.
mke2fs /dev/hda2
- Then you mount this partition. (Let's say in /mnt/tmp)
mount /dev/hda2 /mnt/tmp
- You now have to transfer your /usr to /mnt/tmp. To do this, I'd use a
command as :
(cd /usr tar cpf - .) | (cd /mnt/tmp tar xpf -)
Once this is done, rename your /usr directory (for instance in
/usr.old), create a new /usr directory, umount your /dev/hda2 partition,
and remount it into /usr.
mv /usr /usr.old
mkdir /usr
umount /mnt/tmp
mount /dev/hda2 /usr
Finaly, update your /etc/fstab and add the line :
/dev/hda2/usr ext2defaults1 2
Voila! You're done!
Useless to say that you do exactly the same for your /home partition.
To go back to your previous runlevel, type init 3 (console login) or
init 5 (graphical login).
ONCE YOU'VE SEEN THAT YOUR NEWLY CREATED PARTITIONS ARE OK, you can
delete your /usr.old and /home.old directories.
If you need more infos, take a look at the Hard-disk-upgrade mini-HOWTO
HTH
Flupke
--
My dual-boot system
Works better than my Z
And isn't as greasey.
Do Good Stuff! 8^)