Homepage Wiki Forum Buy




"EXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced: 694962"

In this case, the file system is "shot down" on the SD card. The file system must properly "halt" or "poweroff" like a PC with shutdown from the operating system. With a Linux PC you can repair the file system.

You just need a Linux PC on the console. Insert the SD card into the reader an check via "dmesg" which devicename was awarded.


The first partition is the important one. Here is an ext2 file system on it, which can be repaired.

[ 1549.424156] sd 7:0:0:2: [sdh] Assuming drive cache: write through [ 1549.425624] sdh: sdh1 sdh2 [ 1549.427527] sd 7:0:0:2: [sdh] Assuming drive cache: write through [ 1549.427533] sd 7:0:0:2: [sdh] Attached SCSI removable disk [ 1549.730223] EXT2-fs (sdh1): warning: mounting unchecked fs, running e2fsck is recommended

In this case it is /dev/sdh1. First we disconnect the filesystem:

umount /dev/sdh1

Now you can restore the file system with various tools (fsck.ext2 would also work)

sudo e2fsck /dev/sdh1 [sudo] password for sauterbe: e2fsck 1.41.14 (22-Dec-2010) /dev/sdh1 wurde nicht ordnungsgemäß ausgehängt, Prüfung erzwungen. Durchgang 1: Prüfe Inodes, Blocks, und Größen Durchgang 2: Prüfe Verzeichnis Struktur Durchgang 3: Prüfe Verzeichnis Verknüpfungen Durchgang 4: Überprüfe die Referenzzähler Durchgang 5: Überprüfe Gruppe Zusammenfassung /dev/sdh1: 20165/952504 Dateien (1.0% nicht zusammenhängend), 774628/1903702 Blöcke

Sometimes it happens that the program will be carried out asking whether certain actions. In this case, always answer with y everything.

Now, everything should work flawlessly.

Gnublin Installer can not install

install this package first.


Elektor: restore SD Card from 120180-12.zip

Tested under Ubuntu 10.04, 11.10 and 12.04

If you want to bring your SD-card back to the original state it is easy to do with the download 120180-12.zip.

download at Elektor 120180-12.zip [1] "SD Card Image".

Afterwards extract the archive:

unzip 120180-12.zip

this takes some time and then the following output appears:

Archive: ../120180-12.zip inflating: Elektor_Linux_Board - Build_New_SD_Card.txt inflating: gnublin.img

now connect your SD card to you computer. the system automatically mounts the SD-card. But we want to copy the Image 1:1 on the SD-card, so you have to unmount the card manually.

got to the console und type dmesg after you connected the SD-card. In the last lines you'll see which devicename the kernel assigned for the SD-card.



[ 1069.427374] sdf: sdf1 sdf2 [ 1069.430857] sd 5:0:0:0: [sdf] No Caching mode page present [ 1069.430863] sd 5:0:0:0: [sdf] Assuming drive cache: write through [ 1069.430868] sd 5:0:0:0: [sdf] Attached SCSI removable disk [ 1070.002620] EXT2-fs (sdf1): warning: mounting unchecked fs, running e2fsck is recommended

Now you have to unmaount the SD-card manually:

umount /dev/sdf1

now copy the downloaded Image on the SD-card:

sudo dd if=gnublin.img of=/dev/sdf

Hint: This process can take up to 10 minutes!

Alternatively you can use the Gnublin Installer: [2].

libgcc_s.so: file not recognized: File truncated"

Unfortunately theres Unfortunately, an error has crept in the image of VirtualBox for Elektor. If you want a C program compiled for embedded Linux on the PC the following message is received:

/opt/eldk-5.0/armv5te/sysroots/arm-linux-gnueabi/lib/libgcc_s.so: file not recognized: File truncated collect2: ld returned 1 exit status

The easiest way to fix this error is to install the toolchain in the virtual machine.

First you need a Terminal:

Download the ISO file:

cd /tmp
wget ftp://ftp.denx.de/pub/eldk/5.0/iso/armv5te-qte-5.0.iso
cd /media
sudo mkdir eldk-iso
sudo mount -o loop /tmp/armv5te-qte-5.0.iso /media/eldk-iso
sudo rm -Rf /opt/eldk-5.0
cd eldk-iso
sudo ./install.sh -s -i -qte armv5te

Now it should work again.

In other languages