Page 1 of 1

all changes to file system gone after reboot

Posted: Sun Oct 28, 2012 5:15 pm
by leomanic
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

Re: all changes to file system gone after reboot

Posted: Sun Oct 28, 2012 10:25 pm
by bredman
Please post the result of the df command. There is a chance that you have re-mapped the file systems to something strange.

Re: all changes to file system gone after reboot

Posted: Mon Oct 29, 2012 9:00 am
by leomanic
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

Re: all changes to file system gone after reboot

Posted: Mon Oct 29, 2012 10:18 pm
by leomanic
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

Re: all changes to file system gone after reboot

Posted: Mon Oct 29, 2012 10:38 pm
by pepedog
Can you try again but sync before reboot.
There is an ext4 bug around causing corruption, not entirely clear what kernel versions affected.

Re: all changes to file system gone after reboot

Posted: Tue Oct 30, 2012 8:05 am
by leomanic
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.

Re: all changes to file system gone after reboot

Posted: Tue Oct 30, 2012 8:19 am
by jaromanda
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?

Re: all changes to file system gone after reboot

Posted: Sun Nov 11, 2012 8:47 am
by leomanic
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

Re: all changes to file system gone after reboot

Posted: Thu Nov 21, 2013 10:48 am
by uw.lau
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

Re: all changes to file system gone after reboot

Posted: Thu Oct 08, 2015 9:48 pm
by jamborta
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?

Re: all changes to file system gone after reboot

Posted: Sun Jun 12, 2016 11:23 am
by marioquark
Same problem here. My SD is a Samsung EVO 8 GB.
Any news about this?
Tnx

Re: all changes to file system gone after reboot

Posted: Sun Jun 12, 2016 11:26 am
by Dis93
Wow, this zombie thread just won't go down, will it?

Re: all changes to file system gone after reboot

Posted: Mon Jun 13, 2016 3:49 am
by SonOfAMotherlessGoat
Tons of necroposts lately. But for the poster, your card has been corrupted, it's in a read-only state.

Re: all changes to file system gone after reboot

Posted: Mon Jun 13, 2016 5:21 am
by fanoush
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.

Re: all changes to file system gone after reboot

Posted: Sat Sep 24, 2016 4:26 pm
by trlaing
I had the same issue with a Samsung Evo 8GB Micro SD card. Each reboot the files were reverting back to old files that contained errors and were messing up my RPi. I backup up the Samsung Evo 8 GB card image using Win32DiskImager and restored to a Sandisk 8GB card, fixed all the files and all seems to be okay for now...

I'm not sure what to do with the Samsung card now though...bin?

Re: all changes to file system gone after reboot

Posted: Sat Sep 24, 2016 4:31 pm
by trlaing
Further to my last message...

I tried to format the Samsung card using SDFormatter, and get the error "The Memory Card is write-protected. Please release the write protect swtich". The switch is not on write-protect on the MicroSD to SD adaptor and I'm pretty sure that MicroSD cards don't have one! I guess it is bin time! I have never, ever had a MircoSD card fail on me before.

Re: all changes to file system gone after reboot

Posted: Wed Mar 14, 2018 10:19 pm
by ReverseEMF
Same problem, here. And also a Samsung EVO. 16 GB in my case!

This is yet one more Samsun issue in many:
  1. A TV crapped out.
  2. another with buggy HDMI connection issues.
  3. another SD card dead!
Kind of sensing a pattern!

Stuff on the back of the card:
MB-MP16D
MBMPAGVDDDCW-P
DHQA028PZ509
Made In Koera

Re: all changes to file system gone after reboot

Posted: Sat Mar 24, 2018 5:40 pm
by lsegalla
I am having the same problem here, did anyone find any solution ?

Re: all changes to file system gone after reboot

Posted: Sun Mar 25, 2018 10:49 am
by lsegalla
Corrupted SD CARD in my case, solved :)

Re: all changes to file system gone after reboot

Posted: Fri Dec 13, 2019 3:21 pm
by eeqinfeng
Same problem, here. And also a Samsung EVO. 16 GB in my case!

Wasted my whole night. Thanks for the insight.