Restore default Debian system
#1
After messing up the default Debian system, how can one restore it to the original factory settings?
#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
#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)

#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
#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)

#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?
#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.
#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!!
#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
#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.


Possibly Related Threads…
Thread Author Replies Views Last Post
  when i close my laptop lid the screen doesn't turn on? (debian bullseye based) computerc 3 227 09-23-2022, 08:37 PM
Last Post: computerc
  install debian on pbp jsch 3 650 09-21-2022, 10:28 PM
Last Post: Invictvs
  Unable to install Debian Bullseye because of missing wifi firmware Pino64 3 948 09-10-2022, 02:07 PM
Last Post: cypresstwist
  Is anyone successfully running guix system on PBP bluekeys 8 4,269 08-29-2022, 01:19 PM
Last Post: bluekeys
  Debian emmc installer db579 6 458 08-23-2022, 06:13 AM
Last Post: db579
  what is the magic dd incantation to copy the system from the sd card to the emmc? geokon 18 1,102 08-18-2022, 11:26 PM
Last Post: calinb
  PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD Pino64 21 2,932 05-12-2022, 05:00 AM
Last Post: Pino64
  Dual boot Manjaro and Debian? dieselnutjob 3 922 03-26-2022, 07:17 AM
Last Post: dieselnutjob
  Unsuccessful using danielt's unofficial Debian installer on the PBP joeDoe 1 837 03-25-2022, 08:15 AM
Last Post: danielt
  Installing debian on pinebook pro (deb installer/emmc) ljones 14 5,111 02-08-2022, 02:47 AM
Last Post: Humid Stylus

Forum Jump:


Users browsing this thread: 1 Guest(s)