reynhout / chrx

Chromebook Unix
422 stars 56 forks source link

Couldn't sign in to GalliumOS after reboot after install to USB drive due to partition issue #88

Open jturn08 opened 4 years ago

jturn08 commented 4 years ago

Tried to install latest GalliumOS on USB drive on swanky (Toshiba Chromebook 2) using MrChomebox RW_LEGACY custom firmware by running cd ; curl -Os https://chrx.org/go && sh go -t "/dev/sda", but I could no longer sign in to GalliumOS after installing a few small software packages (snapd) and rebooting.

Computer booted to Gallium OS sign in screen, but after entering username and password, screen would flash and went back to sign in screen.

Switching to command prompt, I checked free space using df -kh / and found the partition created was 3.7 GB and was almost completely full.

Plugging the USB drive into a different computer, GParted showed USB drive had a single ext4 partition that was 3.71GB and 115.69 GiB unallocated space.

Checking partition in GParted (e2fsck -f -y -v -C 0 '/dev/sdb1') found

After GParted checked the USB drive, I plugged the USB drive back into Chromebook, and sign-in problems were fixed.

GParted logs (from a different computer) attached: gparted_details.htm.zip

reynhout commented 4 years ago

Thanks for the report. Installing to external media is an infrequently-used feature, and hasn't been tested in a while. Something might have decayed, I'll take a look.

In the meantime, you should be able to install GalliumOS to an external drive from the GalliumOS ISO. Just boot as normal and select the external drive.

reynhout commented 4 years ago

I just ran a quick test and it looks like something must be interfering with the ability to format your external media.

Chrx tries to do this:

lulu# fdisk /dev/sdc

Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

GPT PMBR size mismatch (2405315 != 31258623) will be corrected by w(rite).
GPT PMBR size mismatch (2405315 != 31258623) will be corrected by w(rite).

Command (m for help): g

Created a new GPT disklabel (GUID: 6B106D56-28DE-024D-BB34-82F7AC25A33C).

Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-31258590, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-31258590, default 31258590):

Created a new partition 1 of type 'Linux filesystem' and of size 14.9 GiB.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

Which results in this:

lulu# lsblk /dev/sdc       
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdc      8:32   1  14.9G  0 disk 
└─sdc1   8:33   1  14.9G  0 part 

But unfortunately it hides error messages.

I can't repro the issue you are seeing. You might not be able to either, any more. But if you get a chance to try, please let me know. Thanks!

jturn08 commented 4 years ago

Updating bug report to clarify that after GParted checked the USB drive from a different computer, I plugged the USB drive back into Chromebook, and sign-in problems were fixed. GalliumOS is working correctly now.

Let me know what you would like me to try again, and I can try to reproduce issue.