⟾ 12 Minutes: Chromium OS Chromium OS can be install directly to second dedicated drive without need to create and boot USB flash disk.
Last Update for: 0.9.131.8 2010/12/22 1943-a1
1. Detect local dedicated SSD disk
I have attached locally to first s-ata channel on Intel chipset a dedicated 16GB RunCore s-ata II 2.5″ disk
dmesg | egrep -i "runcore|\[sd" [ 1.040294] ata1.00: ATA-8: RunCore 16G-C SSD, 080826, max UDMA/100 [ 1.060597] scsi 0:0:0:0: Direct-Access ATA RunCore 16G-C SS 0808 PQ: 0 ANSI: 5 [ 1.061041] sd 0:0:0:0: [sda] 31277056 512-byte logical blocks: (16.0 GB/14.9 GiB) [ 1.061508] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 1.063518] sd 0:0:0:0: [sda] Attached SCSI disk [ 1.781104] sd 4:0:1:0: [sdb] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB) [ 1.781443] sd 4:0:1:0: [sdb] Mode Sense: 00 3a 00 00 [ 1.781524] sd 4:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 1.813063] sd 4:0:1:0: [sdb] Attached SCSI disk
So RunCore dedicated flash disk is /dev/sda
2. Switch to build user and enter chroot
./enter_chroot.sh
2. Install into local dedicated SSD disk
whoami chronocb cd /home/chronocb/chromiumos/src/scripts ./enter_chroot.sh 2>&1 -- ./image_to_usb.sh --install --force_non_usb --to /dev/sda | tee ~/chromiumos/bl/localinstall.log INFO : Mounting chroot environment. INFO : Not mounting chrome source INFO : Mounting depot_tools INFO : mounting ~/.subversion into chroot Installing USB image /home/chronocb/trunk/src/build/images/x86-generic/0.9.131.2010_12_22_1943-a1/chromiumos_image.bin to device /dev/sda... Disk /dev/sda: 16.0 GB, 16013852672 bytes This will erase all data on this device: Are you sure (y/N)? y Attempting to unmount any mounts on the USB device... Installing /home/chronocb/trunk/src/build/images/x86-generic/0.9.131.2010_12_22_1943-a1/chromiumos_image.bin to /dev/sda... .... INFO : Unmounting chroot environment
Debugged and reported old issues
(cros-chroot)$ ./image_to_usb.sh --install --force_non_usb --to /dev/sda Installing USB image /home/chronocb/trunk/src/build/images/x86-generic/0.9.77.2010_10_06_1337-a1/chromiumos_image.bin to device /dev/sda... Disk /dev/sda: 16.0 GB, 16013852672 bytes This will erase all data on this device: Are you sure (y/N)? Attempting to unmount any mounts on the USB device... Installing /home/chronocb/trunk/src/build/images/x86-generic/0.9.77.2010_10_06_1337-a1/chromiumos_image.bin to /dev/sda... .... Postinst running Set boot target to /dev/sda3: Partition 3, Slot A Updating the root filesystem hashes and legacy bootloaders /tmp/install-mount-point/usr/sbin/chromeos-setimage: line 92: local: can only be used in a function
./image_to_usb.sh --install --force_non_usb --to /dev/sda Installing USB image /home/chronocb/trunk/src/build/images/x86-generic/0.9.107.2010_10_30_1130-a1/chromiumos_image.bin to device /dev/sda ... Postinst running Set boot target to /dev/sda3: Partition 3, Slot A Updating the root filesystem hashes and legacy bootloaders sudo: error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory No free loop devices.
Reported as: 8489: image_to_usb –install in chroot don’t work and is repetitively broken – it’s don’t checked for regressions
