stivbert
Posts: 1
Joined: Sat Oct 15, 2016 4:38 pm

need reinstall of os

Sat Oct 15, 2016 4:46 pm

How can i do a reinstall of OS on my raspberry pi.

I dont have a sd card reader, i only have access over SSH and USB to the raspberry pi.

My reason for a reinstall, is that allot of my packages are corrupt. and easiest way is new install.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5645
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: need reinstall of os

Sat Oct 15, 2016 4:56 pm

stivbert wrote:How can i do a reinstall of OS on my raspberry pi.
I dont have a sd card reader, i only have access over SSH and USB to the raspberry pi.
My reason for a reinstall, is that allot of my packages are corrupt. and easiest way is new install.
If your "packages" (or do you mean the file system and/or the card itself?**) are corrupt then I don't think you can do much w/o access to another computer + card reader, other than to purchase a fresh, up to date, pre-loaded card**** and a USB card reader for your Pi to recover what (personal) files you can from the corrupted card.
Trev.
** If the file system's "corrupted" anything downloaded could become "corrupted" too.
**** Something like this: https://shop.pimoroni.com/products/noobs-8gb-sd-card
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: need reinstall of os

Sat Oct 15, 2016 5:06 pm

It may be possible, but it isn't easy.

It would be better to see if you can reinstall the corrupt packages, or get access to the card and write a new image to it.

If the file system is corrupted, then you are probably going to have to take the card out and write it fresh using a card reader anyway.

It is possible the card is faulty and shouldn't be used.

Why is it not possible to get a USB card reader?

ejolson
Posts: 5477
Joined: Tue Mar 18, 2014 11:47 am

Re: need reinstall of os

Sat Oct 15, 2016 8:55 pm

stivbert wrote:How can i do a reinstall of OS on my raspberry pi.

I dont have a sd card reader, i only have access over SSH and USB to the raspberry pi.

My reason for a reinstall, is that allot of my packages are corrupt. and easiest way is new install.
Is the Pi in some sort of remote location or inside the wall or someplace where you can't get at it?

If you started with noobs it may be possible to boot into the installer and reinstall. If not, it may be possible to install a new root directory of Raspbian-lite onto a thumb drive using your current broken system, change some parameters in the /boot directory to mount root from the thumb drive and then boot with the thumb drive as root. After that unmount the /boot partition so only the thumb drive is mounted. Then copy a new Raspbian image to the sdcard and reboot again. At any step of this procedure something could go wrong and you will need a working computer to recover.

Maybe easier to take your sdcard to a friend who has an sdcard reader and just copy a new Raspbian to the card. That's probably what you'll have to do anyway, even if you follow the instructions given here.

W. H. Heydt
Posts: 12785
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: need reinstall of os

Sun Oct 16, 2016 2:29 am

Regardless of what route to recovery you follow, since you don't have another system usually available, once you have a good, working SD card, make sure you have a second card and a reader. Use your Pi to make a *duplicate* SD card. That way you will have a backup system to use in case of future problems.

Return to “General discussion”