u-root / NiChrome

An open ChromeOS distro with a Go-based userland, X11, and upspin support. (WIP)
GNU General Public License v2.0
59 stars 27 forks source link

Add a standard Chromebook USB stick GPT #89

Closed rminnich closed 2 years ago

rminnich commented 6 years ago

To use this, for example, assuming your usb stick is /dev/sdb: gpt -w /dev/sdb < StandardChromeGPT

Untested.

Signed-off-by: Ronald G. Minnich rminnich@gmail.com

hagna commented 6 years ago

This doesn't work because gpt doesn't create a protective master boot record (mine was empty at least). After copying one from a working image my chromebook would boot from a disk generated this way. Here are the steps:

rminnich commented 6 years ago

IIUC the protective mbr is optional, so should there be an option to gpt (maybe -W?) that implies write the gpt and also write the MBR?

Thanks, this is very helpful!

rminnich commented 6 years ago

I'm sort of thinking it makes sense to always write the protective MBR. I don't see any use in making it optional.

rminnich commented 6 years ago

oh heck I'm already writing a header. I need to see how to do the rest.