#Use udisks utility #sudo apt-get install udisks $> udisks --show-info /dev/sr0 | grep -c "blank: *1" #this will return 0:if not blank/present; or 1:blank disk present
#Use udisks utility #sudo apt-get install udisks $> udisks --show-info /dev/sr0 | grep -c "blank: *1" #this will return 0:if not blank/present; or 1:blank disk present