LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 05-04-2015, 03:14 PM   #1
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Raspberry Pi2 keeps crashing and corrupting disk


I moved my Owncloud instance over to a Raspberry PI 2 a month or so ago. A couple weeks ago we had an extended power outage and it appears it went down hard and corrupted the disk. I fsck'ed it and it started going again but went down a couple days later and the drive was corrupt so I fsck'ed it again and it ran for a couple more days then went down again. I figured the original power outage messed it up so I reformatted and started clean. I ran slackpkg-update and rebooted afterward and it didn't come back up and again I had to fsck the drive.

I'm wondering if I have a failing microsd? What brand do you run? How can I test it? Do you leave your / (root) on the microsd or do you run it on a usb flash drive? What are the best practices?

Last edited by enine; 05-04-2015 at 03:16 PM.
 
Old 05-04-2015, 08:30 PM   #2
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
I had a similar situation and the SD card failed, went completely DOA. Root cause was an under-powered power supply.

Chuck your SD card and get a good one. I've been up now for 40 days.

I use a 8GB SanDisk UHS-I
 
Old 05-04-2015, 09:49 PM   #3
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Hmm, I did swap the PS for a small powered USB hub so I could power both Pi's off of one plug. I suppose high utilization could be part of the problem, loading the ps down.
 
Old 05-05-2015, 03:38 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
RasPi's can be power sensitive and not all power supplies are created equal. I've had all sorts of problems with "generic" micro-usb power supplies that only push out 500ma, when I changed to a 1amp I had no further problems.
 
Old 05-05-2015, 07:14 AM   #5
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
This is supposed to be 1A per port but is a generic no name. I can install clean then do the slackpkg ugrade-all and reboot and it will die. I bet its corrupting the drive as its writing the installs. I'm working around that by resyncing my source so everything is up to date during the initial setup then there will be less to upgrade.
Will try a different ps tonight.
 
Old 05-05-2015, 09:17 AM   #6
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
Quote:
Originally Posted by enine View Post
This is supposed to be 1A per port but is a generic no name.
I gave up on the generics. You cannot trust their labels. They target phone charging.

I finally went with a 2.2A switcher from MCM. Guaranteed to work all needs up through the Pi 2 model B. Now if something fails, it's not due to dodgy power supplies.
 
Old 05-05-2015, 02:32 PM   #7
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
I need something with multiple ports, I'm running my PI's inside a small network cabinet.
 
Old 05-05-2015, 03:00 PM   #8
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
I need something with multiple ports, I'm running my PI's inside a small network cabinet.

Are you all using microsd for root or are you moving it to a usb flash drive and just booting off the microsd?
 
Old 05-05-2015, 06:32 PM   #9
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
Quote:
Originally Posted by enine View Post
I need something with multiple ports, I'm running my PI's inside a small network cabinet.

Are you all using microsd for root or are you moving it to a usb flash drive and just booting off the microsd?
Depends on what you want to do. I just have root, var, usr, home etc on the SD and application specific data filesystems (i.e. apache docroot, motion directories) on separate flash thumb drives plugged into a powered hub.
 
Old 05-05-2015, 07:08 PM   #10
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
well crap, now I'm fighting multiple issues. arm-current is borked, it gives a bunch of ldconfig errors and doesn't find eth0
 
Old 05-06-2015, 04:37 PM   #11
OldHolborn
Member
 
Registered: Jul 2012
Posts: 229

Rep: Reputation: 190Reputation: 190
The very best thing you can do for any rpi/rpi2 is get / and swap off that damn sdcard and onto a proper hard drive. Mine run rock solid after that.

Also, after any write to /boot, the only thing left on the sdcard, sync and unmount it before shutdown/reboot. Not convinced that the card itself gets long enough to "settle" before the system reboots itself.

Edit...
Also (pt2) all the slackware installer images start at sector 32, As I understand it, this puts the MBR far too close to the FAT of mmcbmk0p1 meaning that any write to the FAT is potentially within the same stripe block. Note that all sdcards now have their partitions starting at 8192.

If you mount the .img file (losetup and offset) you can copy the contents of the image to your sdcard with P1 starting at 8192, this also seems to help.

Last edited by OldHolborn; 05-06-2015 at 04:46 PM. Reason: add more....
 
Old 05-07-2015, 07:39 AM   #12
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
By proper hdd do you mean a spinning disk or is a USB flash sufficient. I don't have any hdd's running now, my data is on a 128G USB flash.
 
Old 05-07-2015, 12:29 PM   #13
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,547

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by enine View Post
well crap, now I'm fighting multiple issues. arm-current is borked, it gives a bunch of ldconfig errors and doesn't find eth0
If you have more than 1 warning from ldconfig, it means you did not update your aaa_elflibs package. If you have one warning then it's expected since one package made it into that batch prematurely.
See http://www.linuxquestions.org/questi...ts-4175541253/
There's a new set of updates ready to go out when x86 goes. You should update to the new aaa_elflibs package in that update as well.

Can you expand on what you mean by "find eth0". If you mean that there is no eth0 interface present using
Code:
ip link show (or ifconfig -a)
then that normally means that if the network driver is compiled a a module then the Kernel module is missing, or udev failed to load it for some reason. Check the log messages and dmesg. There are no such issues on all of the four varieties of build machines that built -current, but I don't know a lot about the customisations for the Raspberry Pi stuff.

Last edited by drmozes; 05-07-2015 at 12:37 PM.
 
Old 05-07-2015, 06:37 PM   #14
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
If config didn't list eth0. I suppose it was just bad timing, I had resynced my arm-current then did a clean install and saw all the ldconfig messages and no eth0 so I assumed related but maybe not. I updated Exaga's driver/firmware packages and its working now. I think the logs have wrapped already to go back and see any details.
 
Old 05-14-2015, 06:15 PM   #15
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
ok, def seems related to the microsd
Code:
[646302.585955] EXT4-fs error (device mmcblk0p3): ext4_ext_check_inode:495: inode #179146: comm updatedb: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 1, max 4(4), depth 2(2)
[646816.575485] EXT4-fs (mmcblk0p3): error count since last fsck: 31
I've been running 10 days now since moving / from microsd to another usb flash drive, so far so good. Did she slackpkg update a coupld days ago with maybe a dozen new packages. No crash yet.

I have not imported my calendar back into the database or swapped the power supply, I'm trying to test one change at a time.

Last edited by enine; 05-26-2015 at 08:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Enter the element14 Pi Day ??Raspberry RoadTest? Challenge for a chance to win a Raspberry Pi c LXer Syndicated Linux News 0 03-08-2012 06:20 AM
Kernel is Crashing while mouning the Hard Disk kaushal_kansara Linux - Kernel 4 04-19-2011 02:17 PM
Redhat 5 Crashing after adding extra disk. Blushus Linux - Server 2 03-03-2011 05:25 AM
disk crashing and moving /home to a new server but all permissions are root HELP! nocnoc Linux - Newbie 4 11-29-2006 11:29 AM
Help! Server's hard disk crashing in UDMA mode! Avatar Linux - Hardware 2 12-20-2004 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration