Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@IanDarwin
Last active June 20, 2021 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanDarwin/1a7611d34d61c366d84f5ab9a3f5660e to your computer and use it in GitHub Desktop.
Save IanDarwin/1a7611d34d61c366d84f5ab9a3f5660e to your computer and use it in GitHub Desktop.
Failsome Arch Linux install on Chromebook C100P following directions from archlinuxarm.org
See https://archlinuxarm.org/forum/viewtopic.php?f=9&t=15391&p=66761#p66761
Script started on 2021-06-20 16:04:43-04:00
localhost ~ # umount /dev/sda*
umount: /dev/sda: not mounted.
umount: /dev/sda1: not mounted.
umount: /dev/sda2: not mounted.
localhost ~ # fdisk /dev/sda
Welcome to fdisk (util-linux 2.32).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): g
Created a new GPT disklabel (GUID: 60E41042-86FD-1346-8249-CFBF8D87B66F).
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
localhost ~ # cgpt show /dev/sda
start size part contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
120225759 32 Sec GPT table
120225791 1 Sec GPT header
localhost ~ # cgpt create /dev/sda
localhost ~ # cgpt add -i 1 -t kernel -b 8192 -s 32768 -l Kernel -S 1 -T 5 -P 10 /dev/sda
localhost ~ # cgpt show /dev/sda
start size part contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
8192 32768 1 Label: "Kernel"
Type: ChromeOS kernel
UUID: D7719465-678E-874D-B3BA-F19682155CEB
Attr: priority=10 tries=5 successful=1
120225759 32 Sec GPT table
120225791 1 Sec GPT header
localhost ~ # cgpt add -i 2 -t data -b 40960 -s `expr 120225759 - 40960` -l Root /dev/sda
localhost ~ # cgpt show /dev/sda
start size part contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
8192 32768 1 Label: "Kernel"
Type: ChromeOS kernel
UUID: D7719465-678E-874D-B3BA-F19682155CEB
Attr: priority=10 tries=5 successful=1
40960 120184799 2 Label: "Root"
Type: Linux data
UUID: 19ABAE28-AB61-E046-8880-0CD0014820D7
120225759 32 Sec GPT table
120225791 1 Sec GPT header
localhost ~ # partx -a /dev/sda
partx: /dev/sda: error adding partitions 1-2
localhost ~ # mkfs.ext4 /dev/sda2
mke2fs 1.45.5 (07-Jan-2020)
Creating filesystem with 15023099 4k blocks and 3760128 inodes
Filesystem UUID: 60de8e3f-58fe-48bf-9142-3baf2a5ebbe1
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Allocating group tables: done
Writing inode tables: done
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done
localhost ~ # mkdir root
localhost ~ # mount /dev/sda2 root
localhost ~ # md5sum ArchLinuxARM-veyron-latest.tar.gz
c4b29f8f98be28be648d3ccf71580fbd ArchLinuxARM-veyron-latest.tar.gz
localhost ~ # tar -xf ArchLinuxARM-veyron-latest.tar.gz -C root
tar: Ignoring unknown extended header keyword # this line printed twice
Then umounted and rebooted to CTRL/U
After booting, it always hangs with two "start jobs" running.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment