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 405 82,668 10-19-2020, 10:02 AM
Last Post: wdt
  Failing to install usb wifi adapter Debian older PBP AaronMFeld 0 134 09-14-2020, 07:42 PM
Last Post: AaronMFeld
  Debian (or ubuntu) on a micro sd card (pinebook pro) pine76 28 3,177 09-06-2020, 08:20 AM
Last Post: pine76
  Debian/Mobian for PBP bcnaz 0 231 08-30-2020, 04:17 PM
Last Post: bcnaz
  Update stock OS to Debian Buster? appelgriebsch 3 648 08-21-2020, 12:55 PM
Last Post: tpchuckles
  no speakers on debian imryk 6 548 08-19-2020, 12:31 PM
Last Post: xmixahlx
  sagemath on Manjaro (or Debian) pine76 18 1,504 08-11-2020, 10:40 AM
Last Post: jed
  Debian or Armbian 32 bit? dieselnutjob 3 502 07-31-2020, 02:20 PM
Last Post: dieselnutjob
  curious why KDE by default? dieselnutjob 7 888 07-18-2020, 03:21 PM
Last Post: Damon
  Debian Atton 3 652 07-14-2020, 10:36 AM
Last Post: xmixahlx

Forum Jump:


Users browsing this thread: 3 Guest(s)