On 8/19/15 1:36 AM, Uy Van Duc wrote:
> Here is output of chromeos-install after modified. seem still have some
> problems with GPT table
>
> ~# /mnt/usr/sbin/chromeos-install --dst=/dev/sdb
Unless you've heavily modified the script, the options
above won't be enough. My original mail included a whole
lot of other options (the ones used with `cros flash --install`).
Those options are mandatory. Either the script has to be
changed to make those options default, or you'll want to
include the options on the command line.
> This will install from 'sdc' to '/dev/sdb'.
> This will erase all data at this destination: /dev/sdb
> Are you sure (y/N)? y
> 32+0 records in
> 32+0 records out
> 16384 bytes (16 kB) copied, 0.00018658 s, 87.8 MB/s
> 33+0 records in
> 33+0 records out
> 16896 bytes (17 kB) copied, 0.0012182 s, 13.9 MB/s
> WARNING: Primary GPT header is invalid
I think this message is a red herring.
> ERROR: Can't open 12: No such file or directory
I think this is the trouble. I *think* this means that
the script got the source device wrong, and consequently
tried to read from partition 12 as a file named '12'.
I can't fully explain it, though, because the earlier
output says the script could read from _something_
successfully.
You can debug this by running the script with the '-x'
option, or you can put `set -x` at strategic points where
you think the bug might be living.
> Running a hw diagnostics test -- this might take a couple minutes.
> Checking blocks 0 to 125034839
> Checking for bad blocks (read-only test): done
> Pass completed, 0 bad blocks found. (0/0/0 errors)
> :~#
>
> And for next boot Linux does not detect GPT table
> sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't
> support DPO or FUA
> sdb: unknown partition table
>
>
> Though we need to use some tool to fix GPT table also
>
> Thanks
> Uy
>