Lines Matching refs:sectors
30 # Figure out cylinders, heads and sectors from a size in blocks.
37 sectors = sizeInBlocks
39 sectors = 63
41 headSize = sizeInBlocks / sectors
46 cylinders = sizeInBlocks / (sectors * heads)
48 return (cylinders, heads, sectors)
139 assert(lines[1] == 'unit: sectors')
143 # The fourth chunk is the offset of the partition in sectors followed by
145 sectors = string.atoi(chunks[3][:-1])
148 return sectors * BlockSize
262 (cylinders, heads, sectors) = chsFromSize((mb * MB) / BlockSize)
263 size = cylinders * heads * sectors * BlockSize
284 def partition(dev, cylinders, heads, sectors):
290 '-S', "%d" % sectors, \