Ejemplo n.º 1
0
 def __init__(self, internLog, terminalLog, type, offset, image_path,
              mount_path):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = [
         "mount", "-t", type, "-o",
         "r,force,loop,offset=%i" % (offset), image_path, mount_path
     ]
Ejemplo n.º 2
0
 def __init__(self, internLog, terminalLog, mount_path):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["umount", mount_path]
Ejemplo n.º 3
0
 def __init__(self, internLog, terminalLog, image, dumpDir):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["foremost", "-i", image, "-o", dumpDir]
Ejemplo n.º 4
0
 def __init__(self, internLog, terminalLog, image, dumpDir):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["foremost", "-i", image, "-o", dumpDir]
Ejemplo n.º 5
0
 def __init__(self, internLog, terminalLog, drive, image, log, retry=3):
     Launcher.__init__(self, internLog, terminalLog)
     if retry == 0:
         self.cmd_ = ["ddrescue", drive, image, log]
     else:
         self.cmd_ = ["ddrescue", "-r%i" % retry, drive, image, log]
Ejemplo n.º 6
0
 def __init__(self, internLog, terminalLog):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["yes"]
Ejemplo n.º 7
0
 def __init__(self, internLog, terminalLog, drive):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["smartctl", "--info", drive]
     self.serial_ = ""
     self.size_ = ""
Ejemplo n.º 8
0
 def __init__(self, internLog, terminalLog, mount_path):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["umount", mount_path]
Ejemplo n.º 9
0
 def __init__(self, internLog, terminalLog, type, offset, image_path, mount_path):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["mount", "-t", type, "-o", "r,force,loop,offset=%i" % (offset), image_path, mount_path]
Ejemplo n.º 10
0
 def __init__(self, internLog, terminalLog, path):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["md5sum", path]
     self.hash_ = ""
Ejemplo n.º 11
0
 def __init__(self, internLog, terminalLog, drive):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["blkid", drive]
     self.uuid_ = ""
Ejemplo n.º 12
0
 def __init__(self, internLog, terminalLog, image_path):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["mmls", image_path]
     self.partitions_ = []
Ejemplo n.º 13
0
 def __init__(self, internLog, terminalLog, drive):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["hdparm", "-i", drive]
     self.serial_ = ""
Ejemplo n.º 14
0
 def __init__(self, internLog, terminalLog, file):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["python", "/media/raid0/Owade/ivan/LsaMemParser.py", file]
Ejemplo n.º 15
0
 def __init__(self, internLog, terminalLog, image_path):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["mmls", image_path]
     self.partitions_ = []
Ejemplo n.º 16
0
 def __init__(self, internLog, terminalLog, drive):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["blkid", drive]
     self.uuid_ = ""
Ejemplo n.º 17
0
 def __init__(self, internLog, terminalLog, path):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["md5sum", path]
     self.hash_ = ""
Ejemplo n.º 18
0
 def __init__(self, internLog, terminalLog, file):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["python", "/media/raid0/Owade/ivan/LsaMemParser.py", file]
Ejemplo n.º 19
0
 def __init__(self, internLog, terminalLog, drive):
     Launcher.__init__(self, internLog, terminalLog)
     self.cmd_ = ["hdparm", "-i", drive]
     self.serial_ = ""
Ejemplo n.º 20
0
 def __init__(self, internLog, terminalLog, drive, image, log, retry=3):
     Launcher.__init__(self, internLog, terminalLog)
     if retry == 0:
         self.cmd_ = ["ddrescue", drive, image, log]
     else:
         self.cmd_ = ["ddrescue", "-r%i" % retry, drive, image, log]