2014.12.14. 3:02 keltezéssel, Matthew Midgett írta:
I'd have to say that if the customer didn't ask for a data disk it would just error and quit. Someone with some better scripting skills could possible make it look for a un-partitioned drive and the only run the scrip if it found one.
You can check disk existance like this:
[fazy(d:0)] <~> cat check #!/bin/bash if [ -e /dev/$1 ]; then echo "Found" else echo "Not Found" fi And you can run: ./check xvdb Regards, Peter
