Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[IDEA] Auto fix SD card corruption
Thank you for your donation

Pages (2): « Previous 1 2
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Idea: Auto fix SD card corruption
22nd Feb, 2013, 03:15 AM
Post: #16
2twisty Offline
Registered
Posts: 33
Joined: Feb 2013
Reputation: 3
RE: Auto fix SD card corruption
Great idea! You should add this as a toggle in xbian-config! I had to start over from scratch the other day because of a bad filesystem error.

In fact, I'd recommend that it be enabled by default and can be disabled in xbian-config.
Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 09:22 PM
Post: #17
BartOtten Offline
Registered
Posts: 815
Joined: Jun 2012
Reputation: 29
Re: Auto fix SD card corruption
As far as I know it is enabled by default on A5. Reports of user pulling the plug three times in a row without corruption are somewhere at this forum (or was it IRC)
Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 09:31 PM
Post: #18
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Auto fix SD card corruption
As far as i know, it wasn't Wink

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
24th Feb, 2013, 07:20 PM
Post: #19
BartOtten Offline
Registered
Posts: 815
Joined: Jun 2012
Reputation: 29
Re: Auto fix SD card corruption
He knows best
Find all posts by this user
Quote this message in a reply
5th Mar, 2013, 04:34 PM
Post: #20
b0rna Offline
Registered
Posts: 9
Joined: Dec 2012
Reputation: 2
RE: Auto fix SD card corruption
This is really really annoying. Three full corruptions in 3 days. Pretty much every 5th time i turn the tv off, I get corruptions, lose all my config and data and have to install fresh. This never happened before alpha 5.
Find all posts by this user
Quote this message in a reply
5th Mar, 2013, 06:24 PM
Post: #21
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Auto fix SD card corruption
So you have your RPi connected to the USB port of your TV and when you turn of your TV the RPi is removed from power as well? If so, then that's in general a bad idea because pulling the power from the RPi leaves unsynced data causing corruption. Just the way the FS works. However, we are working on implementing boot from usb, nfs, and samba.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
6th Mar, 2013, 10:02 AM
Post: #22
b0rna Offline
Registered
Posts: 9
Joined: Dec 2012
Reputation: 2
RE: Auto fix SD card corruption
(5th Mar, 2013 06:24 PM)CurlyMo Wrote:  So you have your RPi connected to the USB port of your TV and when you turn of your TV the RPi is removed from power as well? If so, then that's in general a bad idea because pulling the power from the RPi leaves unsynced data causing corruption. Just the way the FS works. However, we are working on implementing boot from usb, nfs, and samba.

I understand that this is a dumb thing to do, however, the shutdown function has never worked properly for me. Especially combined with CEC and constant power.

Boot from SAMBA would be absolutely EPIC.


Thanks,

Borna.
Find all posts by this user
Quote this message in a reply
7th Mar, 2013, 06:15 AM
Post: #23
Sim1 Offline
Registered
Posts: 7
Joined: Mar 2013
Reputation: 0
RE: Auto fix SD card corruption
(5th Mar, 2013 06:24 PM)CurlyMo Wrote:  [...] However, we are working on implementing boot from usb, nfs, and samba.

Do you mean SD card boot but mounting root partition over nfs, samba or usb?
My 2 pis work this way already using usb sticks with root partitions moved from SD card.
I've already tried all xbmc distros and settled on xbian. With root partition on USB I have never experienced fs corruption issues while with SD card only it was kind of standard issue. It seems to be rock stable comparing to plain SD card installation even when you play around with overclocking.
Actually that's the only useful way of work for me. Even standard install of alpha5 resulted in SD corruption after first or second reboot. I had to edit config.txt before install run and remove all overclocking settings (pure 700MHz run) to run installation/initialization and copy root partition to USB stick. Then I could safely get back to 840 for daily normal use.
Find all posts by this user
Quote this message in a reply
17th Mar, 2013, 10:10 AM
Post: #24
gizi Offline
Registered
Posts: 5
Joined: Mar 2013
Reputation: 0
RE: Auto fix SD card corruption
i had in the past many SD Card corruptions when i try to overclock my PI......
Or i do a reboot, sometimes i do a reboot i have only a blining coursor on the top left....

so i used thsi command form you:

sudo sed -i 's/#FSCKFIX=no/FSCKFIX=yes/g' /etc/default/rcS && grep "FSCKFIX=yes" /etc/default/rcS | wc -l
i had a 1 after installtion.

But for me it dont worked.... after that i had several SD Card error..... every time i overclock my PI my SD Card is corrupt so i had to format it and restore the image i made before.....

this is te resault of the check:


root@xbian:~# tune2fs -l /dev/mmcblk0p2 | grep "[0-9]\{1,2\}:[0-9]\{1,2\}:[0-9]\{1,2\}"
Filesystem created: Sun Oct 28 21:50:41 2012
Last mount time: Thu Jan 1 00:00:02 1970
Last write time: Thu Jan 1 00:00:02 1970
Last checked: Wed Feb 20 18:00:11 2013
Find all posts by this user
Quote this message in a reply
21st Mar, 2013, 06:48 PM
Post: #25
gizag Offline
Registered
Posts: 30
Joined: Jan 2013
Reputation: 1
RE: Auto fix SD card corruption
Since Xbian is more an embedded OS would it not be better to mount most parts of the root filesystem as RO ?

If I'm correct it's only the home directory that needs RW, maybe some temp and logging dirs that need it and if people run sickbeard and stuff maybe an opt or /usr/local that needs it.

In that case only when updates are ran it's possible to corrupt the root system. This allows people to reset the device be plugging it (most common way for embedded devices), it will allways boot but might hang on a check only for less important file systems.
Find all posts by this user
Quote this message in a reply
21st Mar, 2013, 07:32 PM
Post: #26
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Auto fix SD card corruption
We are working towards a better implementation already.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
9th Oct, 2019, 02:06 PM
Post: #27
Evansans Offline
Registered
Posts: 1
Joined: Oct 2019
Reputation: 0
RE: Auto fix SD card corruption
First, troubleshoot the hardware and then reinstall the SD card driver. Right-click on this computer > Device Manager > double-click on the disk drive > right-click on the SD card name in the sub-directory > select Uninstall > click OK > Unplug SD Card > Restart PC > Insert Card, it will be detected again. Finally, you can also use cmd to <LINK_REMOVED>.
Find all posts by this user
Quote this message in a reply
12th Oct, 2019, 02:54 PM
Post: #28
deHakkelaar Offline
Administrator
******
Posts: 360
Joined: Dec 2012
Reputation: 23
RE: Auto fix SD card corruption
(9th Oct, 2019 02:06 PM)Evansans Wrote:  First, troubleshoot the hardware and then reinstall the SD card driver. Right-click on this computer > Device Manager > double-click on the disk drive > right-click on the SD card name in the sub-directory > select Uninstall > click OK > Unplug SD Card > Restart PC > Insert Card, it will be detected again. Finally, you can also use cmd to <LINK_REMOVED>.

Those instructions and commercial link are not relevant to the issue.
I removed the link.

There are only 10 types of people in the world: those who understand binary, and those who don't
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): « Previous 1 2
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 11:03 PM Powered By MyBB, © 2002-2025 MyBB Group.