imperador / chromefy

Project Croissant: Install Chrome OS on any Computer - Transforming Chromium to Chrome
GNU General Public License v3.0
880 stars 80 forks source link

Src and Dst are the same /dev/sda = /dev/sda #28

Open veraalex97 opened 5 years ago

veraalex97 commented 5 years ago

When trying to install the IMG using method one (the bootable live USB) after running the command to install I get that error. I tried installing to my nvme01 drive which is my main and only drive as this computer has an nvme drive but it doesn't work, I get a black screen after grub loader on reboot

alesimula commented 5 years ago

Try putting /dev/nvme0 as dst

denzilferreira commented 5 years ago

I have the same issue. Trying this on Dell XPS 15 9570, which only has an nvme0 (SSD) hard-drive. On this machine, /dev/sda is the USB stick. Using /dev/nvme0 as dst seems to fail to be added to GRUB or EFI as after reboot, there is no partition to boot from.

Any idea on how to fix this? Perhaps a tweak to the chromefy.sh ?

alesimula commented 5 years ago

@denzilferreira Did you wait for chromeos-install to tell you to reboot? are all 12 partitions present in nvme0 disk? If so, try dd'ing the twelveth partition from the USB to the 12th HDD partition, then use fix_grub.sh on /dev/nvme0 to fix the partition UUIDs on EFI

denzilferreira commented 5 years ago

I'll give it go. The partitions are there on nvme0. I did wait until it told me to reboot ("Fingers crossed" included!).

What would the command look like? I googled and this is what I think is what you mean: dd if=/dev/sda1p12 of=/dev/nvme0p12 bs=100M

Is this correct?

denzilferreira commented 5 years ago

I tried this dd if=/dev/sda12 of=/dev/nvme0n1p12

And I got error writing /dev/nvme0n1p12 no space left on device. If I understood this means that the partition was created too small. I'm using ABT 72 and eve 71 + TMP 2.0 tar file if that helps. How should I proceed?

denzilferreira commented 5 years ago

Further investigation reveals that sda has a 12th partition of 128MB, while nvme0n1p12 is only 32MB. How can we make it larger so that I can copy the contents successfully?

alesimula commented 5 years ago

@denzilferreira Try with a debian/gparted live USB

denzilferreira commented 5 years ago

@alesimula i tried using gparted. I was able to release some space from the main partition /dev/nvme0n1p1. However, i can't resize /dev/nvme0n1p12 as gparted actually doesn't recognise the file system.

screenshot from 2019-02-15 20-03-00

Same result using resize2fs /dev/nvme0n1p12 resize2fs: Bad magic number in super-block while trying to open /dev/nvme0n1p12 Couldn't find valid filesystem superblock.

I guess this is a problem with chromeos-install script?

denzilferreira commented 5 years ago

There are also some errors at the end that makes me think this is the case for Method 1. I'll try method 2. img_20190215_214700

denzilferreira commented 5 years ago

Found a workaround that may work for you too. I've now somewhat successfully chromefied my Dell XPS 15 9570. Using Arnold 72, Eve 72 and swt tar file, I get my webcam + mic working but no play store or linux apps. Using FydeOS 6.0, Eve 72 and swt tar, I lose the mic, but play store and linux works. I'm still trying to figure out why I have no mic input... Camera works on Hangouts etc.

Now how to you get this to work? Follow the tutorial to create the img and create the bootable USB (method 1). When the computer boots from the USB, don't login. Press CTRL+ALT+2 to be taken to the command line. My USB stick is detected as sda and my internal SSD is nvme0n1.

Type:

chronos sudo dd bs=10M if=/dev/sda of=/dev/nvme0n1

Wait until it says that it has finished copying the content of USB to your hard-drive. Now you'll need a live CD from Ubuntu/Fedora. Install and run gparted to expand the partition STATE to reclaim the unallocated space. Apply the changes and reboot. Your laptop will now run ChromeOS!

denzilferreira commented 5 years ago

Further testing and running this, FydeOS seems to be a bad match to this. I'll try with Arnoldthebat non-special variant.

denzilferreira commented 5 years ago

Recreated Arnold special 72, croissant, Eve and swt tar, set selinux to no and now everything works, play store, Linux, perfect! Thanks a bunch! Had to install using DD and then enlarged STATE partition using gparted before logon for the first time. All smooth and no errors!