raspberrypi / noobs

NOOBS (New Out Of Box Software) - An easy Operating System install manager for the Raspberry Pi
http://www.raspberrypi.org/downloads
2.21k stars 434 forks source link

Minor filesystem issues cause noobs failure. #265

Open plugwash opened 9 years ago

plugwash commented 9 years ago

I was at a jam recently and a newbie was having problems with noobs. The resize was complaining about a minor filesystem issue (free space inconsistent) and hence refusing to resize the partition and hence unable to install any OS.

Putting the card in another linux box and running fsck with the "auto fix" option fixed the issue but I wouldn't expect newbies to be able to do that themselves.

IMO it would make sense for noobs to do an "auto-fix" fsck run before doing the partition resize.

lurch commented 9 years ago

Unfortunately this comes under the same category as #174 - without a reproducible test-case, I can't test that the proposed fix always works as expected.

If you have a way in which this can be reproduced, that would be fantastic... :-)

plugwash commented 9 years ago

Using information from https://staff.washington.edu/dittrich/misc/fatgen103.pdf I was able to construct the following recipie to make an image which I believe will suffer from the issue (note: this requires a recent losetup, wheezy's version is too old, I think jessie's is sufficient)

truncate -s 4G testimg parted testimg unit b
mklabel msdos mkpart primary fat32 4194304 100% print quit loopdev=losetup -P -f --show testimg echo loopdev mkdosfs /dev/loop0p1 printf '\x40' | dd of=${loopdev}p1 bs=1 seek=1000 losetup -d $loopdev

plugwash commented 9 years ago

ok i've posted the SD card image I created with the process above at https://plugwash.raspbian.org/badfreespace.bz2

Try writing that to a SD card, then copying the noobs files and booting it in a pi and see what happens.

lurch commented 9 years ago

Thanks @plugwash ! I'm busy all this week, but I'll take a look at this next week.

Androbin commented 6 years ago

Has this issue been resolved yet?

XECDesign commented 6 years ago

I don't think so.