posted debian image has error

Started by Lurch, July 08, 2013, 11:10:51 PM

Previous topic - Next topic

Lurch

your image <A20-OLinuXino-MICRO preliminary Debian image is available http://olimex.wordpress.com/2013/06/19/a20-olinuxino-preliminary-debian-linux-image/> has a defect.  This causes problems when I write it to 8GB sdcard and try to resize2fs.
How can I clean the defect?

[   13.247736] EXT4-fs error (device mmcblk0p2): ext4_mb_generate_buddy:739: group 2, 6877 clusters in bitmap, 6878 in gd
[   13.258568] JBD2: Spotted dirty metadata buffer (dev = mmcblk0p2, blocknr = 0). There's a risk of filesystem corruption in case of system crash.
fsck from util-linux 2.20.1
done.

[  305.270823] EXT4-fs (mmcblk0p2): initial error at 1370529427: ext4_mb_generate_buddy:739
[  305.278936] EXT4-fs (mmcblk0p2): last error at 1373312427: ext4_mb_generate_buddy:739

resize2fs /dev/mmcblk0p2
resize2fs 1.42.5 (29-Jul-2012)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
EXT4-fs warning (device mmcblk0p2): ext4_resize_begin:32: There are errors in the filesystem, so online resizing is not allowed
resize2fs: Permission denied to resize filesystem


HeHoPMaJIeH

Hi,
put your card in card reader and run
fsck.ext4 -y /dev/sdX
where X is your SD card

Lurch

#2
I'm doing this on the A20, which has two sdcard sockets.
Since it is supposed to run unmounted, I would think that the command (on the A20) would be fsck.ext4 /dev/mmcblk1p2 for the second partition on the second sdcard (the first partition is FAT32)?

<edit: tried fsck.ext4 -y /dev/mmcblk1p2 and it worked. Was able to boot with that and resize2fs
       Thanks for prodding me on>