noobs icon indicating copy to clipboard operation
noobs copied to clipboard

Minor filesystem issues cause noobs failure.

Open plugwash opened this issue 10 years ago • 6 comments

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.

plugwash avatar Jun 14 '15 12:06 plugwash

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... :-)

lurch avatar Jun 18 '15 12:06 lurch

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 avatar Jun 21 '15 01:06 plugwash

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.

plugwash avatar Jun 21 '15 01:06 plugwash

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

lurch avatar Jun 23 '15 09:06 lurch

Has this issue been resolved yet?

Androbin avatar Feb 26 '18 20:02 Androbin

I don't think so.

XECDesign avatar Feb 26 '18 20:02 XECDesign