decrease memory need of dd while erasing the partition table
this was leading to the OOM killer killing dd.
This commit is contained in:
@@ -34,7 +34,7 @@ hasBigEnoughPendrive()
|
|||||||
setupPendrivePartitions()
|
setupPendrivePartitions()
|
||||||
{
|
{
|
||||||
# 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
|
||||||
|
|
||||||
# sda1 is 'swap'
|
# sda1 is 'swap'
|
||||||
# sda2 is 'root'
|
# sda2 is 'root'
|
||||||
|
|||||||
Reference in New Issue
Block a user