maha1
Posts: 31
Joined: Fri Apr 05, 2019 10:08 pm

trouble with booting my raspberry pi 3

Fri Apr 19, 2019 2:44 am

I foolishly rolled back my firmware so that I could install MySQL using this command

Code: Select all

sudo rpi-update f6eef32dd6388c3b04dbf462bd324d93281bf397
I rebooted my Pi
and then it didn't appear in the network scan anymore
how can i fix this without erasing the files which contain all my work
also, it would be great if i can make a copy of those files before fixing the problem, just to be in the safe side
thank you in advance

epoch1970
Posts: 2760
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: trouble with booting my raspberry pi 3

Fri Apr 19, 2019 7:39 am

For a backup you need another computer or another SD to boot the Pi, plus a card reader.
I understand (almost never touch the stuff myself) rpi-update will mostly affect the contents of the boot partition on Raspbian.
If you Frankenstein your SD with the contents of the FAT partition in a Raspbian release image, less cmdline.txt and config.txt in order to keep your boot configuration, you should be able to boot at least to emergency mode.
Modules versions would probably be out of sync; they are in /lib/modules on the ext4 rootfs partition.
Then there is the odd chance of a firmware blob having been updated, these are in /lib/firmware IIRC.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

User avatar
DougieLawson
Posts: 35117
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: trouble with booting my raspberry pi 3

Fri Apr 19, 2019 9:01 am

Why on earth did you run rpi-update? Don't ever run it again - it can break your system. MySQL has no dependencies on the kernel and bootcode versions.

Rolling it back on a rescue system is non-trivial. Boot another SDCard in your RPi. Mount the broken card in a USB reader.

Run this recipe.
sudo -i
umount /dev/sda1
umount /dev/sda2

or
umount /dev/sda5
umount /dev/sda6

if NOOBS

mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot


or
mount /dev/sda6 /mnt
mount /dev/sda5 /mnt/boot

if NOOBS

mount -o bind /dev /mnt/dev
mount -o bint /sys /mnt/sys
mount -t proc /proc /mnt/proc

cd /mnt
chroot .

PRUNE_MODULES=1 SKIP_WARNING=1 rpi-update a08ece3d48c3c40bf1b501772af9933249c11c5b

exit
umount /mnt/proc
umount /mnt/sys
umount /mnt/dev
umount /mnt/boot
umount /mnt

poweroff
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a hippy & doctor free zone.

maha1
Posts: 31
Joined: Fri Apr 05, 2019 10:08 pm

Re: trouble with booting my raspberry pi 3

Thu Apr 25, 2019 6:06 am

hi again
thanks DougleLawson for replying .it was a foolish mistake ,now i get the lesson
so finally, i got my new sd card and usb adapter
i installed the rasbian image using balenaEtcher ,but as it finished installation my pc asked to format the card
i tried to open it but it showed that error 'is not accessible'
the raspberry can't read the card
so i tried to format it using cmd windows and sdcard formatter but still not working
i even tried to reinstall the image with balenaEtcher but it gives the same result
so am stuck here
any help would be appreciated

LTolledo
Posts: 1358
Joined: Sat Mar 17, 2018 7:29 am

Re: trouble with booting my raspberry pi 3

Thu Apr 25, 2019 6:30 am

In windows pc, after flashing image to microSD using balenaEtcher, ALWAYS IGNORE windows warnings.

Start again

Insert microSD card in windows pc microSD slot (or USB to microSD adapter) --- flash image to microSD using Etcher --- ignore windows warnings after flashing -- remove microSD card --- put microSD card to RPi -- turn on power to RPi

then follow DougieLawson's procedure... dont deviate from it.
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

maha1
Posts: 31
Joined: Fri Apr 05, 2019 10:08 pm

Re: trouble with booting my raspberry pi 3

Thu Apr 25, 2019 9:25 am

actually ,that's what i did but the rpi can't read the sd card
there is no different between what happens with card sd and without it
and no green light

maha1
Posts: 31
Joined: Fri Apr 05, 2019 10:08 pm

Re: trouble with booting my raspberry pi 3

Thu Apr 25, 2019 8:08 pm

has anybody experienced this problem before or have any idea how to format my sd card
i really need some help :(

B.Goode
Posts: 7685
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: trouble with booting my raspberry pi 3

Thu Apr 25, 2019 8:41 pm

maha1 wrote:
Thu Apr 25, 2019 8:08 pm
has anybody experienced this problem before or have any idea how to format my sd card
i really need some help :(
If you are going to create a bootable micro SD card for your RPi using a standard Raspberry Pi Foundation image of the Raspbian Stretch Operating System with the BalenaEtcher utility you do not need to format the card first. Any formatting you apply at that stage will be superceded/undone/overwritten when the image is 'flashed' to the card.

MrEngman
Posts: 3805
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: trouble with booting my raspberry pi 3

Thu Apr 25, 2019 8:42 pm

maha1 wrote:
Fri Apr 19, 2019 2:44 am
I foolishly rolled back my firmware so that I could install MySQL using this command

Code: Select all

sudo rpi-update f6eef32dd6388c3b04dbf462bd324d93281bf397
I rebooted my Pi
and then it didn't appear in the network scan anymore
how can i fix this without erasing the files which contain all my work
also, it would be great if i can make a copy of those files before fixing the problem, just to be in the safe side
thank you in advance
Why did you do this? It installs kernel 3.10.38 from Apr 2014. Years before any kernel the pi 3 will work with.

No wonder your pi 3 doesn't work.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

maha1
Posts: 31
Joined: Fri Apr 05, 2019 10:08 pm

Re: trouble with booting my raspberry pi 3

Thu Apr 25, 2019 8:58 pm

MrEngman wrote:
Thu Apr 25, 2019 8:42 pm
maha1 wrote:
Fri Apr 19, 2019 2:44 am
I foolishly rolled back my firmware so that I could install MySQL using this command

Code: Select all

sudo rpi-update f6eef32dd6388c3b04dbf462bd324d93281bf397
I rebooted my Pi
and then it didn't appear in the network scan anymore
how can i fix this without erasing the files which contain all my work
also, it would be great if i can make a copy of those files before fixing the problem, just to be in the safe side
thank you in advance
Why did you do this? It installs kernel 3.10.38 from Apr 2014. Years before any kernel the pi 3 will work with.

No wonder your pi 3 doesn't work.
actually, i'm using a new card sd not the broken one

maha1
Posts: 31
Joined: Fri Apr 05, 2019 10:08 pm

Re: trouble with booting my raspberry pi 3

Thu Apr 25, 2019 9:03 pm

B.Goode wrote:
Thu Apr 25, 2019 8:41 pm
maha1 wrote:
Thu Apr 25, 2019 8:08 pm
has anybody experienced this problem before or have any idea how to format my sd card
i really need some help :(
If you are going to create a bootable micro SD card for your RPi using a standard Raspberry Pi Foundation image of the Raspbian Stretch Operating System with the BalenaEtcher utility you do not need to format the card first. Any formatting you apply at that stage will be superceded/undone/overwritten when the image is 'flashed' to the card.
the rpi can't read the card, that's why I'm trying to reflash it
and i tried reflashing it with Etcher again but it's not working

B.Goode
Posts: 7685
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: trouble with booting my raspberry pi 3

Thu Apr 25, 2019 10:05 pm

maha1 wrote:
Thu Apr 25, 2019 9:03 pm
B.Goode wrote:
Thu Apr 25, 2019 8:41 pm
maha1 wrote:
Thu Apr 25, 2019 8:08 pm
has anybody experienced this problem before or have any idea how to format my sd card
i really need some help :(
If you are going to create a bootable micro SD card for your RPi using a standard Raspberry Pi Foundation image of the Raspbian Stretch Operating System with the BalenaEtcher utility you do not need to format the card first. Any formatting you apply at that stage will be superceded/undone/overwritten when the image is 'flashed' to the card.
the rpi can't read the card, that's why I'm trying to reflash it
and i tried reflashing it with Etcher again but it's not working

So one of the following is probably true:

The microSD card is faulty;

or the microSD card writer is faulty;

or the RPi has become faulty, independently of your original misconfiguration.

maha1
Posts: 31
Joined: Fri Apr 05, 2019 10:08 pm

Re: trouble with booting my raspberry pi 3

Thu Apr 25, 2019 10:16 pm

B.Goode wrote:
Thu Apr 25, 2019 10:05 pm
maha1 wrote:
Thu Apr 25, 2019 9:03 pm
B.Goode wrote:
Thu Apr 25, 2019 8:41 pm


If you are going to create a bootable micro SD card for your RPi using a standard Raspberry Pi Foundation image of the Raspbian Stretch Operating System with the BalenaEtcher utility you do not need to format the card first. Any formatting you apply at that stage will be superceded/undone/overwritten when the image is 'flashed' to the card.
the rpi can't read the card, that's why I'm trying to reflash it
and i tried reflashing it with Etcher again but it's not working

So one of the following is probably true:

The microSD card is faulty;

or the microSD card writer is faulty;

or the RPi has become faulty, independently of your original misconfiguration.
and how could i identify the problem

B.Goode
Posts: 7685
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: trouble with booting my raspberry pi 3

Fri Apr 26, 2019 10:20 am

maha1 wrote:
Thu Apr 25, 2019 10:16 pm
B.Goode wrote:
Thu Apr 25, 2019 10:05 pm
maha1 wrote:
Thu Apr 25, 2019 9:03 pm

the rpi can't read the card, that's why I'm trying to reflash it
and i tried reflashing it with Etcher again but it's not working

So one of the following is probably true:

The microSD card is faulty;

or the microSD card writer is faulty;

or the RPi has become faulty, independently of your original misconfiguration.
and how could i identify the problem

The problem you are now troubleshooting is different to the one you initially presented


There is a summary of all the knowledge accumulated from these forums during the past 7 years about difficulties getting an RPi to boot, see - STICKY: Is your Pi not booting? (The Boot Problems Sticky) - viewtopic.php?f=28&t=58151


There is no 'Magic Wand' that we can wave to fix your RPi or diagnose the cause of your problem: you simply have to proceed by methodically changing one component at a time.

maha1
Posts: 31
Joined: Fri Apr 05, 2019 10:08 pm

Re: trouble with booting my raspberry pi 3

Thu May 02, 2019 11:50 am

thanks DougieLawson
your solution is working my raspberry is working again and i found all my files
and thanks everyone else but i gave up on the old card sd and bought a new one

unfortunately, i'm facing a new problem now
i connected my rasp pi on my laptop using ethernet, it was working but suddenly it stopped connecting
i reboot it ,it appears on mobaxterm scan interface but ssh connection is disabled .
i tried to fix this by adding ssh file to boot directory in the sd card but still not working.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22044
Joined: Sat Jul 30, 2011 7:41 pm

Re: trouble with booting my raspberry pi 3

Thu May 02, 2019 12:13 pm

maha1 wrote:
Thu May 02, 2019 11:50 am
thanks DougieLawson
your solution is working my raspberry is working again and i found all my files
and thanks everyone else but i gave up on the old card sd and bought a new one

unfortunately, i'm facing a new problem now
i connected my rasp pi on my laptop using ethernet, it was working but suddenly it stopped connecting
i reboot it ,it appears on mobaxterm scan interface but ssh connection is disabled .
i tried to fix this by adding ssh file to boot directory in the sd card but still not working.
Please start a new thread with this new problem.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

Return to “Troubleshooting”