79 partitions="`mount |grep -v dos|grep -v fat|grep -v ntfs|egrep -o "/mnt/[a-z]+[0-9]+" | uniq`" 80 j="0" 81 for i in $partitions; do 82 ## was trying to eliminate partitions without enought space I havent found a good way yet this doesnt always work 83 #if [ "`df -h|grep $i|cut -d G -f3|cut -d . -f1`" -gt 2 ] 2>/dev/null; then 84 part[$j]="$i" 85 j=`expr $j + 1` 86 #fi 87 done 88 $DIALOG --icon $ICON --title $TITLE --menubox "\n 89 Which partition would you like to install the livecd to?\n 90 This will be your root partition.\n 91 If all you see is the placeholder it means your partitions arent \n 92 mounted or dont contain a linux filesystem\n 93 Choose which partition you would like to use" \ 94 600x400 4 \ 95 "placeholder" "Do not choose this" \ 96 ${part[0]} ${part[0]} \ 97 ${part[1]} ${part[1]} \ 98 ${part[2]} ${part[2]} \ 99 ${part[3]} ${part[3]} \ 100 ${part[4]} ${part[4]} \