Create Disk

  • August 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Create Disk as PDF for free.

More details

  • Words: 45
  • Pages: 1
#!/usr/bin/python # Copyright (c) 2004 Marco Lange. import sys GRANULARITY = 516096 imagename = sys.argv[1] imagesize = int(sys.argv[2]) if imagesize % GRANULARITY != 0: imagesize = ((imagesize / GRANULARITY) + 1) * GRANULARITY print "Using image size:", imagesize imagefile = open(imagename, "wb+") imagefile.seek(imagesize-1) imagefile.write("\x00") imagefile.close

Related Documents

Create Disk
August 2019 11
Disk
October 2019 37
Disk.
November 2019 32
Create
April 2020 25
Disk 4
November 2019 21
Disk Operations
May 2020 14