Page 1 of 1

SD card or connector corrupt?

Posted: Mon May 19, 2014 3:43 pm
by HeroS_NL
Update: I found out that it was my sd card OR my sd connector who is not properly functioning. When plugging in my sd card, only the power light comes on. When I adjust the card a bit eventually the ACT LED will blink 3/4 times. Is it the SD card or the pi sd connector that is corrupt??




(don't read this below, it's old!)
--------------


Hello,

I recently corrupted my sd card so I had to rewrite the backup to my SD. I chose to just provide a clean install of the system instead. I downloaded and installed Raspbian to get rid of the unused active processes etc.

I tried to install the GO programming language from google. This is the second time I tried it without succes (on a new fresh raspbian image).

Code: Select all

Setting up libc-dev-bin (2.13-38+rpi2+deb7u1) ...
Setting up libc6-dev:armhf (2.13-38+rpi2+deb7u1) ...
Setting up mercurial-common (2.2.2-3) ...
Setting up mercurial (2.2.2-3) ...

Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version
pi@raspberrypi ~ $ hg clone -u default https://code.google.com/p/go $HOME/go
requesting all changes
adding changesets
adding manifests
adding file changes
transaction abort!
failed to truncate 00changelog.i
rollback failed - please run hg recover
abort: Read-only file system: /home/pi/go/.hg/store/.fncache-OhqmWN
pi@raspberrypi ~ $ hg recover
-bash: /usr/bin/hg: No such file or directory
pi@raspberrypi ~ $ ls
-bash: ls: command not found
pi@raspberrypi ~ $ hg recover
-bash: /usr/bin/hg: No such file or directory
pi@raspberrypi ~ $
So basically it ends up deleting everything from my sd card! I think the mercurial repo is corrupt or something, but I am quite a beginner with this! What can I do?? Even the basic commands like ls cannot be used anymore!

HeroS

ps. I can't see any logs because in WinSCP there is nothing in the directories (or any directory at all), and 'tail' is not working.
pps. When you close the ssh session and reconnect, you won't come in either ;)

Re: Installing GO -> Corruption??

Posted: Mon May 19, 2014 9:49 pm
by drgeoff
When I look at http://golang.org/doc/install I don't see any ready to run code for ARM processors, never mind the RPi.

What exactly are you trying to install?

Re: Installing GO -> Corruption??

Posted: Mon May 19, 2014 10:52 pm
by HeroS_NL
I am reinstalling the Mega sync client (https://github.com/t3rm1n4l/megacmd). It worked before on the raspberry pi, but had to reinstall because of sd corruption.

I used this 'tutorial' as far as it applied to the current raspbian (no memory split configured):
http://dave.cheney.net/2012/09/25/insta ... spberry-pi

Re: Installing GO -> Corruption??

Posted: Tue May 20, 2014 4:50 pm
by miko-andru
I am experiencing the same issue when performing larger updates. It seems to be not connected strictly to GO. Small installs work fine. I even made my swap file 1gb large and it doesn't help. The filesystem is not getting corrupted, the system works after cutting the power and re-booting.

Re: SD card or connector corrupt?

Posted: Tue May 20, 2014 6:52 pm
by HeroS_NL
BUMP! Found out it was either the SD card or the sd card connector..... How can I check which is faulty? Don't have another spare SD card!

Re: SD card or connector corrupt?

Posted: Tue May 20, 2014 6:59 pm
by DougieLawson
You need to get a spare SDCard. Or you need to borrow a friend's RPi.

Or you need a Linux system with an SDCard reader (where you can verify that your SDCard is intact and the filesystems aren't trashed).

Re: SD card or connector corrupt?

Posted: Tue May 20, 2014 7:19 pm
by redhawk
Is your SD Card physically bent by any chance??

Richard S.