aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2010-12-20 22:24:10 +0100
committerAndreas Oberritter <obi@opendreambox.org>2010-12-20 22:24:10 +0100
commite66c53dd065aec5f9aca27ab45dc9e4f6fdc211e (patch)
tree5f6968f3c7d5d5d40c57ad0db517ab1d81d5cc28
parent3c282ef6f5bd54f2b0f4cb407d075cf321405b84 (diff)
downloadenigma2-e66c53dd065aec5f9aca27ab45dc9e4f6fdc211e.tar.gz
enigma2-e66c53dd065aec5f9aca27ab45dc9e4f6fdc211e.zip
Harddisk.py: start partition at sector 8 to improve performance of disks with 4KiB sectors
-rw-r--r--lib/python/Components/Harddisk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py
index 0f1a8fca..30a7b609 100644
--- a/lib/python/Components/Harddisk.py
+++ b/lib/python/Components/Harddisk.py
@@ -190,7 +190,7 @@ class Harddisk:
return (res >> 8)
def createPartition(self):
- cmd = 'printf "0,\n;\n;\n;\ny\n" | sfdisk -f ' + self.disk_path
+ cmd = 'printf "8,\n;0,0\n;0,0\n;0,0\ny\n" | sfdisk -f -uS ' + self.disk_path
res = system(cmd)
return (res >> 8)