all changes to file system gone after reboot


9 posts
by leomanic » Sun Oct 28, 2012 5:15 pm
Hi all,

I don't know exactly when it started, but after trying to install the LAMP packages a subsequent reboot causes the rollback of the filesystem to before all the changes.
Just tested it and it happens again. Also new files / folders are gone after a reboot.
I don't know what tools / logs to post here; I hope someone can help out with that.
Seems to me like something with the file table?

SDCard = sandisk extreme III 2 Gb, class 6
running Arch, started from archlinux-hf-2012-09-18.img
Code: Select all
$ sudo uname -rvm
3.2.27-13-ARCH+ #1 PREEMPT Sun Oct 21 02:16:17 UTC 2012 armv6l

cheers,
Lennard
Posts: 6
Joined: Sun Oct 28, 2012 5:04 pm
by bredman » Sun Oct 28, 2012 10:25 pm
Please post the result of the df command. There is a chance that you have re-mapped the file systems to something strange.
Posts: 1413
Joined: Tue Jan 17, 2012 2:38 pm
by leomanic » Mon Oct 29, 2012 9:00 am
Hi Bredman,
here's the output of df:
Code: Select all
Filesystem     1K-blocks    Used Available Use% Mounted on
rootfs           1805152 1313236    400220  77% /
/dev/root        1805152 1313236    400220  77% /
devtmpfs          247660       0    247660   0% /dev
tmpfs             247732       0    247732   0% /dev/shm
tmpfs             247732     200    247532   1% /run
tmpfs             247732       0    247732   0% /sys/fs/cgroup
tmpfs             247732       0    247732   0% /tmp
/dev/mmcblk0p1     96050   20234     75816  22% /boot
Posts: 6
Joined: Sun Oct 28, 2012 5:04 pm
by leomanic » Mon Oct 29, 2012 10:18 pm
by the way, although it seemed far fetched, I checked whether the SD card was write locked; it wasn't.
Furthermore, I can say that another reboot still causes all changes to the file system to roll back.

I hope someone can shed some light on this weird problem.
cheers
Lennard
Posts: 6
Joined: Sun Oct 28, 2012 5:04 pm
by pepedog » Mon Oct 29, 2012 10:38 pm
Can you try again but sync before reboot.
There is an ext4 bug around causing corruption, not entirely clear what kernel versions affected.
Posts: 966
Joined: Fri Oct 07, 2011 9:55 am
by leomanic » Tue Oct 30, 2012 8:05 am
the system was synced before reboot.
I can't try again at the moment, not at home this week. Firewall keeps rolling back too, causing me to not have access from here after reboot.
Posts: 6
Joined: Sun Oct 28, 2012 5:04 pm
by jaromanda » Tue Oct 30, 2012 8:19 am
pepedog wrote:Can you try again but sync before reboot.
There is an ext4 bug around causing corruption, not entirely clear what kernel versions affected.

according to http://linux.slashdot.org/story/12/10/2 ... nux-kernel it's "The latest Linux 3.4, 3.5, 3.6 stable kernels"

raspbian is 3.2, so, would seem to be unaffected?
I now own 2 RPi - does that mean I own a circumference?
Posts: 93
Joined: Wed Sep 12, 2012 12:33 pm
by leomanic » Sun Nov 11, 2012 8:47 am
just thought i'd post the conclusion:
I copied the partition on the memory card to my pc and then onto another memory card. Now data is remembered when rebooting. (Yay!)

I did notice some problems with certain folders and files. In the 'usr/share/locale/' folder, the LC_MESSAGES folder could not be written to for one language, while in other languages the glibc.so file appeared as a folder instead of a file. Fixed that manually and it seems to work..

cheers,
Lennard
Posts: 6
Joined: Sun Oct 28, 2012 5:04 pm
by uw.lau » Thu Nov 21, 2013 10:48 am
same error here...

i have 2 raspberrys (same model):
- rasp01 with a Transcend Class 10 16GB SD Card (SD01).
- rasp02 with a Samsung Class 6 8GB SD Card (SD02).

rasp01 with SD01 --> works
rasp02 wiht SD01 --> all changes gone after reboot

tried to change the sd cards in the raspberrys and both work!
- rasp01 with SD02 --> works
- rasp01 wiht SD01 --> works.

changing it back.. same error...
rasp01 with SD01 --> works
rasp02 wiht SD01 --> all changes gone after reboot
Posts: 1
Joined: Mon Sep 23, 2013 8:33 am