Virtual Guru's Blog – Home of Virtualization Workshops

November 2, 2010

12minutes: Installing Chromium OS to local internal SSD drive without USB flash

Filed under: 12minutes, best_practices, ChromeOS — Tags: , — natiku @ 7:39 pm

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

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: