guardianproject / lildebi

UNMAINTAINED please adopt! we can no longer maintain this
https://guardianproject.info/code
GNU General Public License v3.0
227 stars 55 forks source link

Problem with dd when SD card is ext4 formated #194

Open ghost opened 8 years ago

ghost commented 8 years ago

Created debian.img had size of 1MB. I must change script create-debian-setup.sh on line 68, from: dd if=/dev/zero of=$install_path seek=$imagesize bs=1M count=1 to: dd if=/dev/zero of=$install_path bs=1M count=$imagesize.

ghost commented 8 years ago

try fallocate -l $imagesize "$install_path"

If you get it working, perhaps make it conditional for ext4 instead of dd (lil'debi is a work-in-progress community effort, so it's good to leave the old way in the file for other hackers to see incase they need to debug stuff)

Then make a pull request?