#!/bin/py 
""" Python 2.7 disk wiping utility for use on Linux OSs. """

# Import Python module 
# os module allows use of operating system-dependent functions 
import os

# Define functions 

#def osName(): 
#    """ Get OS name """
#    return os.system('uname') 

#def osCheck():
#    """ Confirm Linux stautus """

def listBlockDevices():
	""" List mounted block devices """ 
	return os.system('lsblk --nodeps --output NAME,MODEL,VENDOR,SIZE,STATE')    # lsblk -d -o NAME,MODEL,VENDOR,SIZE,STATE

def wipes(): 
    """ Prompt user for number of wipes to perform """ 
    while True: 
        try: 
            numberWipes = int(raw_input('How many times do you want to wipe the disk?: '))
            return numberWipes
        except ValueError: 
            print "Sorry, that\'s not a valid number. Please try again."

def confirm():
    """ Prompt user to confirm wipe process """
    while True: 
        try: 
            reply = str(raw_input('Are you sure you want to proceed? (Yes/No): ')).lower().strip()
            if reply == 'yes': 
                return True 
            if reply == 'no': 
                return False 
        except ValueError: 
            print "Sorry, that\'s not a valid entry. Please try again." 
 

listBlockDevices()

wipes()

confirm()
#def selectDiskWipe()

#def numberWipes()

#def confirmWipe()

#def zeroDisk()



@@ -498,17 +498,25 @@
 TE%0A%0Adef 
-w
+numberOfW
 ipes(): 
@@ -615,25 +615,20 @@
         
-numberWip
+pass
 es = int
@@ -708,25 +708,20 @@
  return 
-numberWip
+pass
 es%0A     
@@ -828,16 +828,20 @@
  confirm
+Wipe
 ():%0A    
@@ -871,19 +871,22 @@
 irm 
-wipe proces
+number of wipe
 s %22%22
@@ -1241,16 +1241,183 @@
 ain.%22 %0A 
+%0Adef zerosToDrive(): %0A    %22%22%22 Write zeros to drive %22%22%22%0A    round=1%0A    for int in range(wipes): %0A        os.system((%22dd if=/dev/zero of =%25s(device)) %0A        round+=1 
 %0A%0AlistBl
@@ -1433,17 +1433,16 @@
 s()%0A
-%0A
 wipes()%0A
 %0Acon
@@ -1437,17 +1437,16 @@
 wipes()%0A
-%0A
 confirm(
@@ -1447,16 +1447,18 @@
 nfirm()%0A
+%0A%0A
 #def sel

add zero out function