home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 October / Enter 10 2006.iso / boot / isolinux / initrd / in / usr / lib / setup / SeTfull < prev    next >
Encoding:
Text File  |  2006-03-30  |  1.0 KB  |  27 lines

  1. #!/bin/sh
  2. export TEXTDOMAIN=SeTfull
  3.  
  4. if [ "$TMP" = "" ]; then
  5.  TMP=/var/log/setup/tmp
  6. fi
  7. if [ ! -d $TMP ]; then
  8.   mkdir -p $TMP
  9. fi
  10. # Test writing a 256K file and assume if it returns an error
  11. # that it means the drive filled up
  12. dd if=/dev/zero of=$TMP/SeTtestfull bs=1024 count=256 1> /dev/null 2> /dev/null
  13. FULLERR=$?
  14. rm -f $TMP/SeTtestfull
  15. if [ ! "$FULLERR" = "0" ]; then
  16.   dialog --title "`gettext "ERROR: TARGET PARTITION FULL"`" --msgbox "`gettext "Setup has \
  17. detected that one or more of your target partitions has become full.  \
  18. I'm sorry, but you will have to try installing again onto a partition \
  19. or partitions with more free space.  You could also try selecting \
  20. fewer packages to \
  21. install.  Since there is no longer any space for setup to make its \
  22. temporary files, this is an unrecoverable error.  Press control-alt-delete \
  23. to reboot and try again.  Before doing that, you might want to switch to \
  24. another console (Alt-F2) and use df (disk free utility) to see if you \
  25. can get an idea of how to avoid this the next time around."`"  14 65
  26. fi
  27.