decrease memory need of dd while erasing the partition table
this was leading to the OOM killer killing dd.
This commit is contained in:
@@ -41,7 +41,7 @@ setupPendrivePartitions()
|
|||||||
{
|
{
|
||||||
log "Erasing partition table"
|
log "Erasing partition table"
|
||||||
# erase partition table
|
# erase partition table
|
||||||
dd if=/dev/zero of=/dev/sda bs=1M count=1
|
dd if=/dev/zero of=/dev/sda bs=1k count=256
|
||||||
|
|
||||||
rereadPartitionTable
|
rereadPartitionTable
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user