Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5080979

Checks size of wrong partition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 6
    • 6
    • install
    • x86
    • linux

      Name: jl125535 Date: 07/30/2004


      FULL PRODUCT VERSION :
      NOT Applicable

      ADDITIONAL OS VERSION INFORMATION :
      Debian Sarge

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Typical Web/mail server install. Disks are partioned into 8 diferent partitions

      A DESCRIPTION OF THE PROBLEM :
      When you install the j2sdk-1_4_2_05-linux-i586.bin self-extracting file using the directions shown on:
      http://java.sun.com/j2se/1.4.2/install-linux.html
      the install would fail if the last partition you have is less than 100 MB, even though you are installing it on a MUCH larger partition.

      Example:
      % df
      Filesystem 1K-blocks Used Available Use% Mounted on
      /dev/hda5 2883672 905032 1832156 34% /
      /dev/hda1 457656 24627 408612 6% /boot
      /dev/hda6 4806048 590372 3971540 13% /usr
      /dev/hda7 4806048 303436 4258476 7% /var
      /dev/hda8 14806048 46392 4515520 1% /home
      /dev/hda9 4806048 32872 4529040 1% /tmp
      /dev/hda10 150000 120000 30000 80% /win

      If you tried to install this in /usr/local or /home, the install would fail because it would say you don't have enough room. The below line is what checks the size:
      df -k . | tail -1 | awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'


      You need to add some type of way to check to see what physical partition you are on and then check the size of that partition.

      Sorry, I can't currently think of away to do this that is portable across all GNU/Linux distributions.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      You will need atleast 105804 kBytes of Disk Free
       Please free up the required Disk Space and try again


      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 285879)
      ======================================================================
      ###@###.### 10/28/04 17:10 GMT

            mromanchsunw Michael Romanchuk (Inactive)
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: