News for hackers. Stuff that matters.
Re:Hacked Together 118 GB Floppy Disk by whyagaindavid on Friday February 26, 2016 @08:21AM (#11181192)
I use this bash script to a umount with a shortcut key. Using KDE. (bad formatting in hn)

#!/bin/bash for i in `ls /media/$USER` do cd /media/$USER umount $i done

ls /media/$USER |grep -v cdrom0 |grep -v cdrom> /tmp/disk_status file=/tmp/disk_status if [ ! -s $file ]; then kdialog --passivepopup "Nothing Mounted " 1 else kdialog --passivepopup "Mounted devices: `cat /tmp/disk_status`" 2 fi

There are no comments on this comment yet.