HeroS_NL
Posts: 17
Joined: Mon Nov 04, 2013 10:07 pm

SD card or connector corrupt?

Mon May 19, 2014 3:43 pm

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 ;)
Last edited by HeroS_NL on Tue May 20, 2014 6:51 pm, edited 1 time in total.

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: Installing GO -> Corruption??

Mon May 19, 2014 9:49 pm

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?

HeroS_NL
Posts: 17
Joined: Mon Nov 04, 2013 10:07 pm

Re: Installing GO -> Corruption??

Mon May 19, 2014 10:52 pm

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

miko-andru
Posts: 1
Joined: Tue May 20, 2014 4:43 pm

Re: Installing GO -> Corruption??

Tue May 20, 2014 4:50 pm

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.

HeroS_NL
Posts: 17
Joined: Mon Nov 04, 2013 10:07 pm

Re: SD card or connector corrupt?

Tue May 20, 2014 6:52 pm

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!

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: SD card or connector corrupt?

Tue May 20, 2014 6:59 pm

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).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: SD card or connector corrupt?

Tue May 20, 2014 7:19 pm

Is your SD Card physically bent by any chance??

Richard S.

Return to “Troubleshooting”