Re: ChromeOS auf Toshiba Chromebook 2 durch Xubuntu ersetzen
So, hab mich jetzt mal zum Dev-Modus-Aktivieren durchgerungen. Da ich den schon 2x aktiviert und wieder deaktiviert hatte, funktioniert das mit crouton allerdings nicht so.
Wenn ich das Script laufen lasse, läuft immer die Partition mit dem chroot voll. Hier mal etwas Output:
[src=bash]localhost / # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.2G 1.1G 149M 88% /
devtmpfs 1.9G 4.0K 1.9G 1% /dev
tmp 1.9G 140K 1.9G 1% /tmp
run 1.9G 400K 1.9G 1% /run
shmfs 1.9G 25M 1.9G 2% /dev/shm
/dev/mmcblk0p1 498M 16M 446M 4% /home
/dev/mmcblk0p8 12M 24K 12M 1% /usr/share/oem
/dev/mapper/encstateful 143M 16M 125M 11% /var
media 1.9G 0 1.9G 0% /media
none 1.9G 0 1.9G 0% /sys/fs/cgroup
guestfs 1.9G 7.4M 1.9G 1% /home/chronos/user
guestfs 1.9G 4.0K 1.9G 1% /home/root/c030b901d91bf1308f83176c221377f3a6a2f960
localhost / # lsblk -f
lsblk: dm-0: failed to get device path
lsblk: dm-0: failed to get device path
NAME FSTYPE LABEL UUID MOUNTPOINT
loop0
└─encstateful ext4 257e662f-7850-4d45-8574-ea9b24b613e7 /mnt/statef
zram0 [SWAP]
mmcblk0rpmb
mmcblk0boot0
mmcblk0boot1
mmcblk0
├─mmcblk0p1 ext4 38fc7ed7-c890-4d8d-97bb-c3497bd5a518 /mnt/statef
├─mmcblk0p2
├─mmcblk0p3 ext4 ROOT-A
├─mmcblk0p4
├─mmcblk0p5 ext4 ROOT-A
├─mmcblk0p6
├─mmcblk0p7 ext4 2dd0c9be-aa1f-470e-9368-020cb5b2ca94
├─mmcblk0p8 ext4 OEM 0656277b-365e-47aa-8e13-572ccde0af95 /usr/share/
├─mmcblk0p9
├─mmcblk0p10
├─mmcblk0p11
└─mmcblk0p12 vfat EFI-SYSTEM 9FB3-DF61
localhost / # fdisk -l
Disk /dev/loop0: 149.3 MiB, 156585984 bytes, 305832 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/dm-0: 1.2 GiB, 1283457024 bytes, 313344 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mmcblk0: 14.7 GiB, 15758000128 bytes, 30777344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 70DB9E58-58F8-E74A-A645-05190548836A
Device Start End Sectors Size Type
/dev/mmcblk0p1 8671232 9740287 1069056 522M Microsoft basic data
/dev/mmcblk0p2 20480 53247 32768 16M ChromeOS kernel
/dev/mmcblk0p3 4476928 8671231 4194304 2G ChromeOS root fs
/dev/mmcblk0p4 53248 86015 32768 16M ChromeOS kernel
/dev/mmcblk0p5 282624 4476927 4194304 2G ChromeOS root fs
/dev/mmcblk0p6 9740288 9773055 32768 16M ChromeOS kernel
/dev/mmcblk0p7 9773056 30744575 20971520 10G ChromeOS root fs
/dev/mmcblk0p8 86016 118783 32768 16M Microsoft basic data
/dev/mmcblk0p9 16450 16450 1 512B ChromeOS reserved
/dev/mmcblk0p10 16451 16451 1 512B ChromeOS reserved
/dev/mmcblk0p11 64 16447 16384 8M unknown
/dev/mmcblk0p12 249856 282623 32768 16M EFI System
Partition table entries are not in disk order.
fdisk: cannot open /dev/mmcblk0rpmb: Permission denied
Disk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/encstateful: 149.3 MiB, 156585984 bytes, 305832 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes[/src]
Dachte jetzt, ich lösche die nicht gemounteten Partitionen und erweitere die Homepartition. Schaue mir aber erst noch mal das Crouton-Script an.
EDIT: nachdem ich
eine Dokumentation zum Disklayout gefunden habe, habe ich Partition 6 und 7 gelöscht und eine neue Partition mit fdisk angelegt.
Als ich die formatieren wollte, ist mir allerdings aufgefallen, dass nur mkfs.exfat existiert, das ext4-mkfs gibt's nicht bei den Binaries. ich bin dumm, mit root-Rechten sehe ich die Binaries. Wird jetzt also formatiert.
Emerge gibt's natürlich auch nicht. Soll ich einen Cross-Compiler auf meiner Workstation aufsetzen und die Binaries dann rüber ziehen? Geht's auch anders?
EDIT2: so, jetzt erst mal den crouton-chroot mit folgendem Kommando installiert:
[src=bash]sh crouton -r trusty -t xfce[/src]
EDIT3: Wollte den chroot jetzt automounten, aber das System hat keine /etc/fstab und im init-System sehe ich nur ein binary, was die ChromeOS-Partitionen anscheinend mountet. Was ein Mist, mal schauen ob ich da irgendwie was standardkonformes draus machen kann. Wühle mich jetzt durchs Gentoo- und ChromeOS-Wiki...
EDIT4: So geht es:
https://github.com/dnschneid/crouton/wiki/Autostart-crouton-chroot-at-ChromeOS-startup