Hi Dawn!

I am a big fan of your site, and so happy to have other grls here!


On 9/10/09, hoyden <[email protected]> wrote:
> I think I'm in trouble.
> Do I have to re-partition? (look at the home dir)
> and if so, what do ya'll suggest for space divvying up?
>
> /dev/sda2              19G  3.0G   15G  17% /
> tmpfs                1007M     0 1007M   0% /lib/init/rw
> varrun               1007M  112K 1007M   1% /var/run
> varlock              1007M     0 1007M   0% /var/lock
> udev                 1007M  168K 1007M   1% /dev
> tmpfs                1007M     0 1007M   0% /dev/shm
> lrm                  1007M  2.2M 1005M   1%
> /lib/modules/2.6.28-15-generic/volatile
> /dev/sda1              90M   26M   60M  31% /boot
> /dev/sda3              22G   21G   40K 100% /home
> /dev/sda6             465M   11M  431M   3% /tmp
> /dev/sda7             4.6G  138M  4.3G   4% /usr/local
> /dev/sda5             6.9G  3.7G  2.9G  57% /var
>
> still learning...
>
> thanks for thinks!
> Dawn
> _______________________________________________

First be sure there's not any big iso in there or other files that can
be decimated.

You have a couple of choices, for instance, you can either relocate
all of the /home directories to another partition, or just some (say
the developers, changing their login $HOME to /var/www/developer/ for
instance) by editing the /etc/passwd file.  Be sure to add directory
paths to /etc/profile where applicable in special applications using
java etc in file home directories).  And when you move the content
over, it might be easiest to use tar -xvf to preserve user/group
permissions.  This is possibly the easiest approach.

NOTE: Good systems administration file use states that you never build
or setup any regular server based tools in your home directory.  That
way, if it's a production or regular process, it's going to go into
/usr/sbin or /usr/local/src/ or /usr/local/bin.  You can't imagine how
much of mess, failure to use good standard file directory locations
can be when you go to move around files or do any capacity planning!

You can also move the /home to another partition trivially.

Like place it under /home (make a new directory) on /dev/sda2 by
tarring up content and moving to a temporary location then unmount
/dev/sda3 and remove (comment) the /etc/fstab /etc/mtab (what's your
distro?) mount points:

# cd /
# tar -cvf home.tar home
# umount /dev/sda3
# vi /etc/fstab (place a # in front of the /home or /dev/sda3 entry
# cd /
# tar -xvf home.tar

Reboot to be sure everything is working fine!

NOTE, if you have your /home/ directories on the / directory, and it
fills up, you can have issues logging in.  Be sure that all your
kernel reporting is setup to go to your email address (I use a nice
gmail/postfix transport
http://www.marksanborn.net/linux/send-mail-postfix-through-gmails-smtp-on-a-ubuntu-lts-server/)
so you will get notified is something fills up the drive.


> Reminder: All replies will go back to this mailing list. If you wish to send
> a reply to a specific person, please use the reply function and change the
> &quot;To:&quot; address to that person before sending.
>


-- 
(623)239-3392
(503)754-4452 www.obnosis.com
http://www.obnosis.com/motivatebytruth/gnu-people.jpg
_______________________________________________
PLUG-applications mailing list
[email protected]
http://lists.plug.phoenix.az.us/cgi-bin/mailman/listinfo/plug-applications

Reminder: All replies will go back to this mailing list. If you wish to send a 
reply to a specific person, please use the reply function and change the 
&quot;To:&quot; address to that person before sending.

Reply via email to