Restore default Debian system
#1
After messing up the default Debian system, how can one restore it to the original factory settings?
  Reply
#2
(11-06-2019, 11:29 PM)perceg Wrote: After messing up the default Debian system, how can one restore it to the original factory settings?

I second this! 
We should have a step by step tutorial to restore factory settings. 

This is very needed considering that by definition, we are kind of testers and most of us will mess up the software. Wink
  Reply
#3
It's pretty simple! Download the latest build of the default Debian image, flash to an SD card, boot from the SD card, and let it flash to the eMMC.
Community administrator and sysadmin for PINE64
(Translation: If something breaks on the website, forum, or chat network, I'm a good person to yell at about it)

  Reply
#4
(11-07-2019, 08:29 AM)fire219 Wrote: It's pretty simple! Download the latest build of the default Debian image, flash to an SD card, boot from the SD card, and let it flash to the eMMC.

would one use an iso burner to transfer the download to the sd card  ?
      LINUX = CHOICES
         **BCnAZ**
               Idea
   Donate to $upport
your favorite OS Team
  Reply
#5
(11-07-2019, 08:37 AM)bcnaz Wrote:
(11-07-2019, 08:29 AM)fire219 Wrote: It's pretty simple! Download the latest build of the default Debian image, flash to an SD card, boot from the SD card, and let it flash to the eMMC.

would one use an iso burner to transfer the download to the sd card  ?

No. You need to use a raw image burner tool. Balena Etcher, Win32DiskImager, or normal old "dd" would all do the task.
Community administrator and sysadmin for PINE64
(Translation: If something breaks on the website, forum, or chat network, I'm a good person to yell at about it)

  Reply
#6
(11-07-2019, 09:47 AM)fire219 Wrote:
(11-07-2019, 08:37 AM)bcnaz Wrote:
(11-07-2019, 08:29 AM)fire219 Wrote: It's pretty simple! Download the latest build of the default Debian image, flash to an SD card, boot from the SD card, and let it flash to the eMMC.

would one use an iso burner to transfer the download to the sd card  ?

No. You need to use a raw image burner tool. Balena Etcher, Win32DiskImager, or normal old "dd" would all do the task.

How does one flash it to the eMMC?
  Reply
#7
(11-07-2019, 12:10 PM)perceg Wrote:
(11-07-2019, 09:47 AM)fire219 Wrote:
(11-07-2019, 08:37 AM)bcnaz Wrote:
(11-07-2019, 08:29 AM)fire219 Wrote: It's pretty simple! Download the latest build of the default Debian image, flash to an SD card, boot from the SD card, and let it flash to the eMMC.

would one use an iso burner to transfer the download to the sd card  ?

No. You need to use a raw image burner tool. Balena Etcher, Win32DiskImager, or normal old "dd" would all do the task.

How does one flash it to the eMMC?

Lets say you used "Etcher" to write the latest debian image to the SD.

Then you booted from the SD.
You will need copy that Debian Image to the SD or Download it again.

Open a new terminal on the same folder than the Debian "zipped" file is located.

Use the next command to "extract" the image file.
  • unxz pinebookpro-debian-desktop-mrfixit-190905.img.xz

That is going to extract the .img file and remove the original file. (this process takes a couple of minutes).

Then to write that image to the eMMC run the next command:
  • sudo dd if=pinebookpro-debian-desktop-mrfixit-190905.img of=/dev/mmcblk1 status=progress
You will be able to see the progress of this process.
At the end, turn off your Pinebook Pro, remove the SD.
Turn on the Pinebook again.
Done.
  Reply
#8
(11-07-2019, 01:23 PM)cristobalhdez Wrote:
(11-07-2019, 12:10 PM)perceg Wrote:
(11-07-2019, 09:47 AM)fire219 Wrote:
(11-07-2019, 08:37 AM)bcnaz Wrote:
(11-07-2019, 08:29 AM)fire219 Wrote: It's pretty simple! Download the latest build of the default Debian image, flash to an SD card, boot from the SD card, and let it flash to the eMMC.

would one use an iso burner to transfer the download to the sd card  ?

No. You need to use a raw image burner tool. Balena Etcher, Win32DiskImager, or normal old "dd" would all do the task.

How does one flash it to the eMMC?

Lets say you used "Etcher" to write the latest debian image to the SD.

Then you booted from the SD.
You will need copy that Debian Image to the SD or Download it again.

Open a new terminal on the same folder than the Debian "zipped" file is located.

Use the next command to "extract" the image file.
  • unxz pinebookpro-debian-desktop-mrfixit-190905.img.xz

That is going to extract the .img file and remove the original file. (this process takes a couple of minutes).

Then to write that image to the eMMC run the next command:
  • sudo dd if=pinebookpro-debian-desktop-mrfixit-190905.img of=/dev/mmcblk1 status=progress
You will be able to see the progress of this process.
At the end, turn off your Pinebook Pro, remove the SD.
Turn on the Pinebook again.
Done.
That's exactly what we were looking for - thank you!!
  Reply
#9
*
After doing all the above.... will we still be able to boot first to the sd card if one is inserted ?
* ...many Thanks
      LINUX = CHOICES
         **BCnAZ**
               Idea
   Donate to $upport
your favorite OS Team
  Reply
#10
I was looking for instructions like this. Everything worked as planned until I tried to reboot. Now the machine is stuck in a loop trying to boot. It never makes it to the boot screen. I can't even run the desktop from the SD now. Any clue as to what I can do?
Thanks.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  An unofficial Debian Installer for Pinebook Pro danielt 438 187,123 1 hour ago
Last Post: KiteX3
Music No sound on PBP default installation ivek 9 2,777 05-09-2021, 05:58 PM
Last Post: binholz
  Is anyone successfully running guix system on PBP bluekeys 1 95 05-06-2021, 09:32 AM
Last Post: Surehand53
  After update in Ubuntu bionic mate system crashed Wawe 2 278 04-18-2021, 04:52 AM
Last Post: Wawe
  Manjaro Dim Display (Brightness 40%) After Every System Reboot runlinux.run 2 469 02-15-2021, 07:04 PM
Last Post: MtnSk8
  Keyboard issue: Debian PineSupporter 8 916 02-01-2021, 09:57 PM
Last Post: PineSupporter
  Debian Bullseye installation Baconomics 3 925 01-07-2021, 01:46 PM
Last Post: kuleszdl
  My Debian journey on the Pinebook Pro schwarzwieweiss 32 6,140 01-07-2021, 09:35 AM
Last Post: schwarzwieweiss
  Graphic problems when booting Debian crecker 1 937 12-15-2020, 06:39 PM
Last Post: marszal
  trying to install packages to debian onlyjediontheweekend 1 574 12-09-2020, 03:25 PM
Last Post: nas

Forum Jump:


Users browsing this thread: 2 Guest(s)