Chrome-OS-Multiboot icon indicating copy to clipboard operation
Chrome-OS-Multiboot copied to clipboard

Safety against recovery mode?

Open refi64 opened this issue 5 years ago • 3 comments

I stumbled upon this repo as was quite exited, as I've always enjoyed using Chrome OS. However, there was a major issue I ran into last time I dual booted: I messed with the rootfs, boot broke, and then the recovery process wiped my entire hard drive. Now, I asked on the chromefy repo, and they said there there wasn't anything done in defense, which is understandable since it's a pure Chrome OS USB maker. However, given the multiboot focus of this repo, what would be the chances of it handling this case more safely?

refi64 avatar Mar 19 '20 21:03 refi64

However, there was a major issue I ran into last time I dual booted

So, you dual booted using the tools available on the Chromefy repo?

the recovery process wiped my entire hard drive.

How/what recovery process did you follow? Powerwash doesn't have the ability to wipe your entire drive.

However, given the multiboot focus of this repo, what would be the chances of it handling this case more safely?

I can definitely improve things once I understand what to do.

MuntashirAkon avatar Apr 01 '20 17:04 MuntashirAkon

(Sorry for the delayed reply)

So I looked into this a bit more, I found that recovery_install.sh is what calls into a Chrome OS reinstall script, and chromeos-install wipes the GPT. I can't figure out where this is called; however, this file is present on the rootfs, in /usr/sbin.

Thus, if chromeos-recovery could be blocked / removed somehow, I think this would remove any risks.

refi64 avatar Jun 26 '20 15:06 refi64

Thus, if chromeos-recovery could be blocked / removed somehow, I think this would remove any risks.

Ok, I'll look into it.

MuntashirAkon avatar Jun 26 '20 16:06 MuntashirAkon