#!/bin/bash for entry in $(cat /proc/partitions |awk '{print $4}'|sed -n '/[0-9]/!d; /name\|mmc\|loop/!p');do pmount /dev/$entry;done
#!/bin/bash cat /proc/partitions |awk '{print $4}'|sed -n '/[0-9]/!d; /name\|mmc\|loop/!p' > /home/user/partitions.txt for entry in $(cat /home/user/partitions.txt);do pmount /dev/$entry;done
#!/bin/bash for entry in $(cat /home/user/partitions.txt);do pumount /dev/$entry;done