reynhout / chrx

Chromebook Unix
419 stars 56 forks source link

When reinstalling, chrx does not ask for confirmation before formatting target partition #22

Open rwanyoike opened 8 years ago

rwanyoike commented 8 years ago

I mistakenly ran the chrx install script curl -Os https://chrx.org/go && sh go, and it procceded to "setup" the target disk, destroying my already installed distro BEFORE asking for any confirmation.

chrx installer, version 2.2.6

    Hardware ID: SWANKY_E2A-E4P-U27
    Model:       Toshiba Chromebook 2 CB30/CB35
    Released:    2014
    CPU Family:  Intel Bay Trail
    Prognosis:   success likely, ONLY IF FIRMWARE HAS BEEN UPDATED!

Checking hardware support for legacy boot...  OK
Setting up target disk /dev/mmcblk0...

Installing to /dev/mmcblk0p7...
Preparing installation root directory /tmp/chrxroot

    Installing
      operating system:   linux 
      distribution (-d):  galliumos 
      environment (-e):   desktop 
      release (-r):       latest 
        version:          2.0 
      architecture (-a):  amd64 
      target_disk (-t):   /dev/mmcblk0
      packages (-p):      

    System Configuration
      hostname (-H):      chrx
      username (-U):      chrx
      locale (-L):        en_US.UTF-8
      timezone (-Z):      America/New_York

Press [enter] to confirm and continue:
reynhout commented 8 years ago

Hm, yes. Sorry about that.

Fortunately, this only a problem in the somewhat-rare case when:

But that doesn't make it any better.

I'll look into adding a confirmation step for the times when the first two conditions are true.

BakkaBr commented 7 years ago

How to reinstall in a bigger partition ? I regret choosing the minimum partition size (5GB) the 1st time and now I'm seem unable to change it ?!?! Even if I powerwash and run chrx again it does not ask for the partition size anymore :(

reynhout commented 7 years ago

@BakkaBr Powerwash won't do it, you need to do a full ChromeOS Recovery to reset your partition table. Then chrx will prompt you for the size.

enricozb commented 3 years ago

It seems that I just did the same thing, and I quit at the confirmation prompt Press [enter] to confirm and continue:. When booting back into linux, grub goes into rescue mode. I'm assuming there is no recourse here right?

treasureroom commented 2 years ago

I just recently hit the same issue as described above, though as far as I'm aware, I was using the same install command I had used the first time. (I had encountered a different issue and simply hit enter on the wrong command from my history.) When I recognized that it was the wrong command, I chose not to confirm it and closed the terminal.

When I reopened it and ran the the intended command, (reinstalling the RW_LEGACY file with MrChromebox's tool), it seemed to succeed, but when I tried to boot into Linux, it froze up when checking the boot drive. I eventually had to install Linux again, which seems to have wiped everything I had before.

All that being said, at this point my main question is whether or not it's possible to recover the data I lost. If so, how would I go about doing that?

Thanks so much for the help!