Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> How To Allocate Space For /opt
nvlramakanth
post Feb 21 2004, 07:25 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 7-September 03
Member No.: 1,399



Hi,
I was installing IBM DB2 on linux. The product gave me an error message saying that there is not enough space in /opt and it required 523456kb while there was only 11234kb available.
While partitioning my disc I had allocated 5GB to /kanth and 5GB to /home.(/root took is own space of about 500MB or so) And the remaining 29 GB to windows FAT32 partitions expecting that I can access the data.

Now I have to allocate space to /opt. How do I do it. Since most of the IBM products install in /opt.

Thankyou and regards.
Go to the top of the page
 
+Quote Post
hughesjr
post Feb 21 2004, 09:15 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



I always recommend only splitting out /home and /boot from the main / partition on all linux installs on a single drive ... and I don't personally split /home off unless I am going to create a dual boot machine.

The only reason to have multiple partitions is that you have several drives available (either seperate hard drives or raid controllers that show the array as several drives) .... and you want to install linux to use all the drives.

The above is my opinion....and it prevents problems like the one you currently have....

[BTW, linux can write to FAT32 directories ... but not very fast ... so putting files that change a lot (like IBM DB2 data files) on FAT32 would greatly reduce your performance]
---------------------------------------------------------------
It looks like you are going to have some more problems after we fix the /opt issue ... your root partition (where /opt and /tmp is) is only 500mb ... with only 11mb free space. This means that /tmp is going to fill up fast and make things like downloading files with mozilla larger than 11mb not work (the download manager uses the /tmp directory to hold files until it is finished downloading ... like windows).

If possible, I would recommend reinstalling linux with the following partiton setups

Linux boot (if you want it seperate) - 100mb
Linux / - 10-15 gb
Linux swap 2x physical memory

If you had this setup, all the 10-15 gb would be available for all the linux directories (including /opt, /tmp, and /home).

If, by a great stroke of luck, either /home OR /kanth is the partiton just after your linux / partiton (and by an even better stroke of luck, if the the other directory (/home OR /kanth) was touching that partiton) you might be able to copy all the files out of those directories ... expand the / partiton to include all the space, create /home and /kanth directories in the newly expanded / partition, and put all the files back in those directories.....

Post the output the command:

fdisk -l /dev/hda

(or /dev/sda and all the other devices ... if you have more than one hard drive)

and the output of the command:

df -h
-----------------------------------------------------------------
With that info I will give you specific advise.....


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
nvlramakanth
post Feb 25 2004, 10:10 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 7-September 03
Member No.: 1,399



Hi,
Here's the required information--
CODE
[root@kanth root]# fdisk -l /dev/hda

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       638   5124703+   7  HPFS/NTFS
/dev/hda2           639      4864  33945345    f  Win95 Ext'd (LBA)
/dev/hda5           639      1275   5116671    7  HPFS/NTFS
/dev/hda6          1276      1912   5116671    b  Win95 FAT32
/dev/hda7          1913      2549   5116671    b  Win95 FAT32
/dev/hda8          2550      3186   5116671    b  Win95 FAT32
/dev/hda9          3187      3589   3237066    b  Win95 FAT32
/dev/hda10         3590      3602    104391   83  Linux
/dev/hda11         3603      4168   4546363+  83  Linux
/dev/hda12         4169      4734   4546363+  83  Linux
/dev/hda13         4735      4864   1044193+  82  Linux swap
[root@kanth root]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda12            4.3G  4.1G  4.5M 100% /
/dev/hda10             99M  9.2M   85M  10% /boot
/dev/hda11            4.3G  2.8G  1.3G  69% /kanth
none                  247M     0  247M   0% /dev/shm
/dev/hda6             4.9G  1.2G  3.7G  25% /mnt/win/f
/dev/hda7             4.9G  2.7G  2.3G  55% /mnt/win/g
/dev/hda8             4.9G  3.6G  1.4G  73% /mnt/win/h
/dev/hda9             3.1G  2.6G  534M  84% /mnt/win/i
/dev/fd0              1.4M  334K  1.1M  24% /mnt/floppy
[root@kanth root]#


To make some space I emptied the /kanth and here's the info --
CODE
[root@kanth root]# fdisk -l /dev/hda
                                                                               
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
                                                                               
  Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       638   5124703+   7  HPFS/NTFS
/dev/hda2           639      4864  33945345    f  Win95 Ext'd (LBA)
/dev/hda5           639      1275   5116671    7  HPFS/NTFS
/dev/hda6          1276      1912   5116671    b  Win95 FAT32
/dev/hda7          1913      2549   5116671    b  Win95 FAT32
/dev/hda8          2550      3186   5116671    b  Win95 FAT32
/dev/hda9          3187      3589   3237066    b  Win95 FAT32
/dev/hda10         3590      3602    104391   83  Linux
/dev/hda11         3603      4168   4546363+  83  Linux
/dev/hda12         4169      4734   4546363+  83  Linux
/dev/hda13         4735      4864   1044193+  82  Linux swap
[root@kanth root]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda12            4.3G  4.1G  4.3M 100% /
/dev/hda10             99M  9.2M   85M  10% /boot
/dev/hda11            4.3G   33M  4.1G   1% /kanth
none                  247M     0  247M   0% /dev/shm
/dev/hda6             4.9G  1.2G  3.7G  25% /mnt/win/f
/dev/hda7             4.9G  2.8G  2.1G  58% /mnt/win/g
/dev/hda8             4.9G  3.6G  1.4G  73% /mnt/win/h
/dev/hda9             3.1G  2.6G  534M  84% /mnt/win/i
/dev/fd0              1.4M  130K  1.3M  10% /mnt/floppy
[root@kanth root]#


It would be fine if I am spared of another linux installation. Also the 4 FAT32 partitions are quite useful.

Thankyou and regards.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 08:43 AM