Page 1 of 1

Is my pi broken or i'm doing something very wrong?

Posted: Sun Jun 25, 2017 12:26 pm
by KerbleBerble
So, i have Pi 3 model B, which was working just fine since last two months with 8gb micro sd card i took from my phone. Few days ago i started to receive dpkg errors every time i tried to install something with "sudo apt-get install", but i already bought myself new, 16gb sd card so i wasn't even bothering with this errors, just installed brand new NOOBS, using this guide:

https://www.raspberrypi.org/learning/so ... uickstart/

After first boot i used this commands:

sudo raspi-config, to turn SSH and VLC on
sudo apt-get update
sudo apt-get upgrade

Up to this point everything seems to be ok, no errors, my Pi is working just fine, but as soon as i try to install something with:

sudo apt-get install

My pi is freezing completly during installation, sends dpkg, read only errors or just ejects sd card by himself, VLC server is hanging, Pi forgets it's commands, i can't even type "clear" or "whami" because it tells me this commands dont exist.
I can't even restart or shutdown so i just have to unplug power. After powering up everything seems to work again, as soon as i try to install and situation repeats.
This happens every time, i tried 3 diffrent sd cards and one of them was working before, other is brand new, power adapters, cables, running over wifi or over ethernet cable, nothing helps, my freshly installed system is falling apart as soon as i try to install something :(
The question is, am i doing something wrong? I'm not very experienced in raspberry or even linux system and i wannt to be sure before i RMA this Pi.

Cheers.

Re: Is my pi broken or i'm doing something very wrong?

Posted: Sun Jun 25, 2017 3:14 pm
by itimpi
From your description it seems unlikely that the Pi itself is faulty. The problem seems to be around trying to write new files to the SD card.

Try running the command

Code: Select all

df
and see if it shows there is spare space on the root file system. If the root file system is showing as full that would explain the symptoms.

As an aside, unless you want to use multiple operating systems you may find it easier to use the Raspbian image directly. That way the full space on the SD card is available for use. The easiest way to get a Raspbian image onto a SD card is to use the 'etcher' application which can be downloaded for Windows, Linux or OSX.

Re: Is my pi broken or i'm doing something very wrong?

Posted: Sun Jun 25, 2017 4:37 pm
by KerbleBerble
There is 33% uf space used on root partition.
Also, there is some exampe of what happens when i try to install anything, it was "sudo apt-get install vlc"

http://imgur.com/a/Gjr0H

Re: Is my pi broken or i'm doing something very wrong?

Posted: Fri Jun 30, 2017 10:05 pm
by KerbleBerble
I't sorry for digging this topic out but i still haven't found the answer .
I tried diffrent sd cards, power cables and adapters, even mouse and keyboard. Diffrent sd card readers and methods of installation.
I reinstalled systems like 100 times, raspbian, raspbian lite, kali linux, it seems like all of them go into read-only state right after installation and i don't know how to prevent or at least revert it. I'm about to start pulling hairs out of my head, any ideas? :cry:

Re: Is my pi broken or i'm doing something very wrong?

Posted: Sat Jul 01, 2017 6:35 am
by DougieLawson
Your first move should be to get a brand new, factory fresh, branded, genuine, 8GB (or larger) SDCard and write a copy of "Midsummer" 2017-06-21 Raspbian on it.

Re: Is my pi broken or i'm doing something very wrong?

Posted: Sun Jul 02, 2017 1:39 am
by wh7qq
@Dougie is correct. Start fresh, but with a fresh install you should only be seeing /dev/mmcblk0p1 and /dev/root so I would get the fresh card as he said but then, at your leisure, do a fresh FAT32 partition on the old card and try a fresh Raspbian install (latest). If that succeeds, do the df -h again...you should see something like :
pi@raspberrypi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 4.5G 9.4G 33% /
devtmpfs 213M 0 213M 0% /dev
tmpfs 218M 0 218M 0% /dev/shm
tmpfs 218M 4.5M 213M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 218M 0 218M 0% /sys/fs/cgroup
/dev/mmcblk0p1 63M 22M 42M 35% /boot
tmpfs 44M 0 44M 0% /run/user/1000
Keep it on hand as a backup OS if it works.

Re: Is my pi broken or i'm doing something very wrong?

Posted: Sun Jul 02, 2017 12:59 pm
by KerbleBerble
DougieLawson wrote:Your first move should be to get a brand new, factory fresh, branded, genuine, 8GB (or larger) SDCard and write a copy of "Midsummer" 2017-06-21 Raspbian on it.
I just got myself brand new SD card, SDCA10/16GBSP, i got it from 100% legit computer store and i'm sure it is nor any kind of chinese fake. I formatted it using "SD Formatter" from SD Association, downloaded fresh "RASPBIAN JESSIE WITH DESKTOP" and installed it using Etcher. Installation ended without any issues and my raspberry booted to desktop, then i did:

df -h, result was almost identical as in "wh7qq" post above.
sudo apt-get update, without issues
sudo reboot
sudo apt-get upgrade

I let raspberry do it's upgrades for about 40 minutes when i was doing other stuff and when i came back it was still standing in command line, doing one upgrade endlessly. I pressed windows logo on my keyboard and whole system just froze completly, i could only move my mouse but clicking, keyboard input has no effect so i had to plug power off, after restart raspberry only boots to emergency mode :(

journalctl -xb showed me this: http://imgur.com/a/mDeQ1
and this is how sd card looks like: http://imgur.com/a/N0jWu

Re: Is my pi broken or i'm doing something very wrong?

Posted: Sun Jul 02, 2017 1:29 pm
by fruitoftheloom
FYI Etcher both unzips and writes the .IMG file to the SD Card, no need for all the other software.

Also any SD Card Reader whether internal or external USB must be SDHC complient.