savvvy86
Posts: 5
Joined: Tue Mar 18, 2014 10:57 am

Files not saved after reboot

Tue Mar 18, 2014 12:18 pm

Hi, I'm running Raspbian Wheezy and since this morning, it seems several specific files are being reset to their previous states after rebooting.
/etc/rc.local for example has a python script set to run after login, and after changing to a newer script version with a different name it goes back to the previous version after reboot.
Saving scripts to /home/pi works for the current session, but they are also reset after rebooting.

The known problem with config.txt is not relevant. Config.txt can be saved.

Just now, I managed to edit a few lines of code, "GPIO.output(..." which was saved, but a different line "print('..." wasn't...

cleverca22
Posts: 780
Joined: Sat Aug 18, 2012 2:33 pm

Re: Files not saved after reboot

Tue Mar 18, 2014 1:33 pm

how are you turning it off when you are done?

savvvy86
Posts: 5
Joined: Tue Mar 18, 2014 10:57 am

Re: Files not saved after reboot

Tue Mar 18, 2014 1:48 pm

Code: Select all

sudo reboot
or

Code: Select all

sudo shutdown -h now

cleverca22
Posts: 780
Joined: Sat Aug 18, 2012 2:33 pm

Re: Files not saved after reboot

Tue Mar 18, 2014 1:49 pm

does it list any errors when you run dmesg after trying to edit a file?

savvvy86
Posts: 5
Joined: Tue Mar 18, 2014 10:57 am

Re: Files not saved after reboot

Tue Mar 18, 2014 1:55 pm

No. I'm connecting using MobaXTerm (and previously PuTTY), and I did change the IP to static, maybe that's caused some kind of problem. I'll go back to DHCP and see what happens.

savvvy86
Posts: 5
Joined: Tue Mar 18, 2014 10:57 am

Re: Files not saved after reboot

Tue Mar 18, 2014 1:57 pm

Hmm me changing the network settings didn't save, so I'm still on DHCP...

cleverca22
Posts: 780
Joined: Sat Aug 18, 2012 2:33 pm

Re: Files not saved after reboot

Tue Mar 18, 2014 2:01 pm

your network settings should have absolutely no impact on your ability to save files, so that wont be the cause

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: Files not saved after reboot

Tue Mar 18, 2014 2:08 pm

It might be worth trying...

Code: Select all

sync
sudo reboot
Whether it's technically necessary or not I don't know, but doing so gives it the opportunity to flush the buffers before being rebooted. It makes me feel all warm and fuzzy doing it anyway. :D
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.

savvvy86
Posts: 5
Joined: Tue Mar 18, 2014 10:57 am

Re: Files not saved after reboot

Tue Mar 18, 2014 2:22 pm

Nope sync didn't work...

Return to “Troubleshooting”