[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] /var is full!

On Thu, 2003-10-23 at 10:57, Richard K. Ingallsl wrote:

> >>can i increase the size of the partition /var ?
> >>OR am i doomed to delete / move files before doing 
> >>up2date from now on?/
> >>
> > 
> > 
> > you cannot safely increase the size.  You could add an extra HDD to the 
> > machine and mount it inside var somewhere.
> > 
> > 
> ok how do i do that?  (not the installation of the 
> hard drive, but the mounting part).

ok, install the hdd, taking note of which IDE channel, and whether
master or slave.

The BIOS should detect it during boot (doesn't matter if it won't) but
that will tell you where the drive is located.

You might have to fdisk the drive now, and put a partition table on it,
etc.  Just `fdisk /dev/hdg` or whatever the drive is..  BE CAREFUL!!  If
you trash your primary partition you are ON YOUR OWN.  Kick everyone
out.  Lock the Door.  THINK !!

You cannot break anything, as long you THINK!! and triple-check.  8-/ 
actually, you can break a lot.

You will also have to put a filesystem on the new drive, like this ;

mke2fs -j /dev/hdg1

Again, BE CAREFUL!!  one typo, and it's goodnight.

Now, as root, 

# cd /var
# du -sh *

[root linuxathome var]# du -sh *
238M    cache
4.0K    db
8.0K    empty
4.0K    games
148K    gdm
55M     lib
4.0K    local
12K     lock

blah, blah, blah...

# mkdir temp
# mount /dev/hdg1 -t ext3 /var/temp

You can now mount hdg1 (or whatever disk) anywhere you want, and copy
stuff to it, and then remount wherever you want.

Practice with mounting the disk in your home directory and copying
things onto it, unmounting, and remounting it elsewhere.  You will get
the gist of it.  Ask if you have questions, or want to do something
seemingly critical.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]