all changes to file system gone after reboot


14 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: 1415
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: 1029
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
by jamborta » Thu Oct 08, 2015 9:48 pm
hi,

has anyone managed to solve this issue? I have the same problem on my pi2 with the latest:
Code: Select all
3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l


after each reboot it reverts all files to a state about two weeks ago. I have cloned to data, formatted and put it back, but still getting the same.

any suggestion how to solve this?
Posts: 1
Joined: Thu Oct 08, 2015 9:44 pm
by marioquark » Sun Jun 12, 2016 11:23 am
Same problem here. My SD is a Samsung EVO 8 GB.
Any news about this?
Tnx
Posts: 3
Joined: Fri Jan 10, 2014 5:14 pm
by Dis93 » Sun Jun 12, 2016 11:26 am
Wow, this zombie thread just won't go down, will it?
Pi 3B - RS one nine design clear case - Official Black 5v 2.5A PSU - HDMI>DVI-D - 32Gb Samsung EVO+ - Raspbian/Kodi/RetroPie
Pi Zero - Official White 5v 2A PSU - Raspberry Wifi - 32Gb Samsung EVO+ - Raspbian
Do what thou wilt.
User avatar
Posts: 125
Joined: Thu Apr 07, 2016 8:30 pm
Location: Wuthering, Yorkshire
by SonOfAMotherlessGoat » Mon Jun 13, 2016 3:49 am
Tons of necroposts lately. But for the poster, your card has been corrupted, it's in a read-only state.
Account Inactive
Posts: 690
Joined: Tue Jun 16, 2015 6:01 am
by fanoush » Mon Jun 13, 2016 5:21 am
Broken SD cards behave like that too. I had two such card over years. The card behaved like it is working but once it was removed from device it forgot everything written to it. Even after reformat or overwrite with zeroes via dd command everything comes back. It does not throw any i/o error when writing, it just ignores it after filling some internal ram buffer in card controller. The card worked fine for few months in a phone and then this happened.
Posts: 202
Joined: Mon Feb 27, 2012 2:37 pm