[vox-tech] Resizing Root Partition
Tim Riley
vox-tech@lists.lugod.org
Tue, 23 Sep 2003 09:05:41 -0700
Richard Crawford wrote:
> I'm trying to install Java onto my server at home so that I can start
> mucking around with JSP and Tomcat. Unfortunately, the Java SDK refuses
> to install, telling me that I don't have enough disk space. I ran df to
> get the disk usage, and this is what I get:
>
> root@hagrid:~/
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda1 486M 462M 4.0K 100% /
> /dev/hda6 25G 6.2G 17G 27% /home
> none 125M 0 124M 0% /dev/shm
> /dev/hda7 99M 4.1M 89M 5% /tmp
> /dev/hda2 4.8G 1.5G 3.1G 32% /usr
> /dev/hda3 494M 167M 301M 36% /var
>
> My partition map looks like this:
>
> root@hagrid:~/
> # fdisk -l
>
> Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
> Units = cylinders of 16065 * 512 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 64 514048+ 83 Linux
> /dev/hda2 65 701 5116702+ 83 Linux
> /dev/hda3 702 766 522112+ 83 Linux
> /dev/hda4 767 4111 26868712+ 5 Extended
> /dev/hda5 767 831 522081 82 Linux swap
> /dev/hda6 832 4098 26242146 83 Linux
> /dev/hda7 4099 4111 104391 83 Linux
>
> In this case, I wonder if it's best to resize the root partition, or to go
> in and wipe out a bunch of files. Thoughts? Suggestions?
I'm not a Sys-admin -- just a long-time user -- but I like this partition
mapping
because /usr, /tmp, and /var are on their own partitions. I see there's plenty
of
room in /usr, but / (root) is filled up (yuck).
Before doing any major surgery, I would find out why root is filled up --
you've allocated almost a half-gig to it. If it's a just a handful of big
files
or a single big directory, then I would move them to /usr and then add a link
pointer
to them from / (root).
If you want to do minor surgery, I would suggest "ext2resize." I successfully
used it to expand a partition, but it takes careful understanding of the
relationship
between blocks and cylinders.
>
>
> Sliante,
> Richard S. Crawford
>
> http://www.mossroot.com http://www.stonegoose.com/catseyeview
> AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford
> MSN: underpope@hotmail.com
> Howard Dean for America: http://www.deanforamerica.com
> "It is only with the heart that we see rightly; what is essential is
> invisible to the eye." --Antoine de Saint Exupéry
>
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech