I just installed jdk and tomcat and on openSUSE 11, and I am getting out of space problems. I know I installed on fairly small hard disk. There are two hard disks(each 3GB)
1) df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.0G 2.8G 62M 98% /
udev 121M 104K 121M 1% /dev
gvfs-fuse-daemon 3.0G 2.8G 62M 98% /root/.gvfs
2) fdisk -l
Disk /dev/sda: 3249 MB, 3249340416 bytes
255 heads, 63 sectors/track, 395 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3dc33dc2
Device Boot Start End Blocks Id System
/dev/sda1 * 1 395 3172806 83 Linux
Disk /dev/sdb: 3228 MB, 3228696576 bytes
128 heads, 63 sectors/track, 782 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes
Disk identifier: 0x0001139d
Device Boot Start End Blocks Id System
/dev/sdb1 399 652 1024128 83 Linux
/dev/sdb2 26 398 1503936 83 Linux
/dev/sdb3 653 782 524160 82 Linux swap / Solaris
Partition table entries are not in disk order
Hi,
First I would remove all unnecessary packages, if any (like CUPS, bluetooth, office, sendmail, etc…)
Second I will move /usr to its own file system on disk 2 (or if you can reinstall the OS with custom partitioning)
Let’s face it: your hd is simply too small. I recommend about 10GB of space for the /-partition only, otherwise you’ll always struggle with too little space.
If you really have to work with those tiny disks, then I would split /usr into its own partition on the second disk. If you can reinstall that would be the easiest method, use the partition editor to specify where /usr should go. I wouldn’t bother to chop up sdb into partitions, it’s small enough as it is, just make one partition covering the whole disk.
Otherwise you would have to do a format, mount, copy /usr to new partition, rename old /usr, mkdir new /usr mountpoint and mount the new /usr. Which is ok if you can follow the steps.
Remember those minimal space specs are for CLI only servers and a small number of services, and not much data.
Also one large modern disk will take less power than two old small disks, if you want to be green.
Do you really need to keep the current installation? I am asking this because sometimes to perform a fresh installation is easier task from post-installation point of view rather than backup/restore.
The installer will do the right thing if you specify what goes where. Certainly it can handle more than one disk.
Are you comfortable with the CLI? If yo understand what this series of commands does, then go for it. Run as root in a console, of course.
cd /root
fdisk /dev/sdb # interactive, delete existing partitions, create one sdb1
mke2fs -j /dev/sdb1
mv /usr /oldusr
mkdir /usr
mount /dev/sdb1 /usr
cp -a /oldusr/. /usr
# edit /etc/fstab and add entry to mount sdb1 on /usr
# remove /oldusr at leisure
I think it will do the trick.
The REP points - just above the “Location” on right side of each post, on the same line with Date: time,you will see Rep = Reputation is something like saying “Thank you - the answer was helpful!”