Flash DietPi from Chromebook

Guides and tutorials for various stuff. Posted by DietPi users.
Post Reply
rhkean
Posts: 6
Joined: Thu Nov 05, 2020 5:48 pm

Flash DietPi from Chromebook

Post by rhkean »

Is anyone interested in a how-to on flashing the dietpi image from a chromebook?

If so, let me know, and I'll type it up.

-rob
User avatar
MichaIng
Site Admin
Posts: 3266
Joined: Sat Nov 18, 2017 6:21 pm

Re: Flash DietPi from Chromebook

Post by MichaIng »

That would be awesome.

If you are in mood, you could add the information directly to our new documentation:
https://dietpi.com/docs/user-guide_inst ... disk-image
https://github.com/MichaIng/DietPi-Docs ... llation.md
Else, with your permissions, we'd implement the information into the docs :).

I guess the unarchiver will be a different tool on Chrome OS and not even sure if Belana Etcher works on it?
rhkean
Posts: 6
Joined: Thu Nov 05, 2020 5:48 pm

Re: Flash DietPi from Chromebook

Post by rhkean »

MichaIng wrote: Thu Nov 05, 2020 8:01 pm That would be awesome.

If you are in mood, you could add the information directly to our new documentation:
https://dietpi.com/docs/user-guide_inst ... disk-image
https://github.com/MichaIng/DietPi-Docs ... llation.md
Else, with your permissions, we'd implement the information into the docs :).

I guess the unarchiver will be a different tool on Chrome OS and not even sure if Belana Etcher works on it?
I'll update the docs. no problem.

the best unarchiver that I've found so far is the "Wicked Good Unarchiver"
and the flashing tool is Google's "Chromebook Recovery Utility".... It has an option to select a local file rather than the backup image of your chromebook in the cloud. :-)

I'll include links to the Web Store for the apps along with the instructions. It'll be tomorrow though.

-rob
rhkean
Posts: 6
Joined: Thu Nov 05, 2020 5:48 pm

Re: Flash DietPi from Chromebook

Post by rhkean »

first pass on the instructions...

These instructions should work on any chromebook with an SDCard reader or USB drive with SDCard reader, however, to date, I have only tested them on a 2020 model Samsung Galaxy Chromebook and a 2015 Toshiba Chromebook 2 (both with intel CPU's). The Samsung is running stable channel ChromeOS 86. The Toshiba is running developer channel ChromeOS 88 (but not Linux(Beta) compatible).

You will need 2 pieces of software from the Chrome web store:
Once you have these utilities:
  1. Downloaded the DietPi image file from DietPi.com's website, and, using the Files app, view the downloaded file in the "Downloads" folder.
  2. Right-click on the 7z file and choose "Open with Wicked Good Unarchiver"
  3. Drag the .img file from there to the "Downloads" folder. This will extract the file from the archive.
  4. In the Files app, browse back to the "Downloads" folder again, and rename the .img file. The Chromebook Recovery Utility does not recognize other file extensions other than .bin, so add ".bin" to the end of the filename. (ex. DietPi_RPi-ARMv8-Buster.img.bin )
  5. Insert your SDCard. ChromeOS will automatically mount the drive, but do not worry. The recovery utility will unmount it to write the image.
  6. Now, we can open the Chromebook Recovery Utility.
  7. Select "Use local image" from the Gear dropdown menu on the top-right. Browse to the "Downloads" folder and select the .bin file (from step 4)
  8. The next screen asks you to select the media to write to. This is where you select your SDCard. Then select "Continue"
  9. The last screen gives you a final chance to confirm that you've selected the correct media. The title bar will also show the name of the file that you selected. If all is correct, click the "Create Now" button.
  10. Once you click the "Create Now" button, you'll be shown a progress bar and a warning to not remove the media while it is writing.
  11. After the write is complete, you'll be shown a Checkmark icon and a "Done" button. You may now remove/eject the SDCard from your Chromebook and click the "Done" button.
  12. The SDCard may now be inserted into your SBC and DietPi installation can begin.
ahoier
Posts: 14
Joined: Fri Feb 05, 2021 10:04 pm

Re: Flash DietPi from Chromebook

Post by ahoier »

great tutorial, i got it to work with my chromebook. BUT my zero w is currently sitting at a "login prompt" (as confirmed with my microHDMI adapter...) and it's wanting me to login to continue the setup i assume? But....being a zero w the other USB slot is being used by the wifi dongle (ordered the wrong pi zero apparently....lol and it didn't have onboard wifi)

any tips?
User avatar
MichaIng
Site Admin
Posts: 3266
Joined: Sat Nov 18, 2017 6:21 pm

Re: Flash DietPi from Chromebook

Post by MichaIng »

I just opened an issue to port those into your docs: https://github.com/MichaIng/DietPi-Docs/issues/345
I'm still thinking how to structure the docs best to cover especially 7z extraction and img flashing for all "host" OS'es without causing too giant DOM and doubled text in the multiple image type sections (SBC images, PC images, VM images).

@ahoier
Check out: https://dietpi.com/docs/install/#3-prep ... first-boot
Above that header "Click here if you want to pre-configure WiFi network". Then you can connect via SSH to run through the setup steps and don't require an attached screen + keyboard.
User avatar
Joulinar
Posts: 5688
Joined: Sat Nov 16, 2019 12:49 am

Re: Flash DietPi from Chromebook

Post by Joulinar »

maybe the WiFi dongle connected to USB is using a diffetent adapter than wlan0. If this is the case, interfaces would need to be configured manually. But hard to check without keyboard.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3266
Joined: Sat Nov 18, 2017 6:21 pm

Re: Flash DietPi from Chromebook

Post by MichaIng »

This would only be the case if there was a second WiFi adapter present. And even if the Pi Zero is actually a Zero W and has an onboard WiFi adapter, then the question is why that onboard WiFi adapter was not configured successfully ;).
The kernel assigns these indices from 0 to N in the order adapters are detected, so wlan1 can only exist if there was a wlan0 detected before.
Post Reply