Manual Installation Via the Cmd Line




  • dragon788

    @SpaceStar, it sounds like what you want is dual-boot, but that install method is deprecated and will be removed at some point in the future as it is hard to support (though I'm going to try some crazy stuff to dual boot with Linux/CloudReady in the future).

  • SpaceStar

    @dragon788, yes, it is what I want. But I can do dual-boot manually with my UEFI. I wanna install this OS on selected hdd in free space after my partition without formatting all disk.

  • Forrest Smith

    Neverware's installer tools and scripts won't work this way. 


    Any version of dual boot besides the one we provide will be much easier if you start with a full install of CloudReady to the disk and then add your 2nd OS after the fact by borrowing free space away from CloudReady.

  • Shahid

    it shows

    primary GPT header is invalid

  • Alexander Bantyev

    Ok, so I have this very messed up situation: an old but still usable i686 pentium 4 PC, which CANNOT BOOT FROM USB. It currently has Arch Linux installed (I installed it from CD). The support for 32-bit machines has been removed from Arch, thus rendering it useless. I would like to install CloudReady on this PC. What have I done so far:

    1. Tried to chainload from GRUB2 with chainload (hd1)+1; No luck, it just shows CloudReady boot splash for 5 seconds and then reboots;

    2. Tried to boot the (hd1,gpt18)/boot/vmlinuz kernel; No luck, just hangs.

    3. Tried to install from Arch using some linux trickery.

    So, the trickery ({comments are in curly brackets}):

    # umount -a
    # mount /dev/sdb18 /mnt
    # mkdir /mnt/oldroot
    # mount --rbind /dev/ /mnt/dev
    # mount none /mnt/proc -t proc
    # mount none /mnt/sys -t sysfs
    # mount --rbind /run /mnt/run
    # unshare -m
    # pivot_root /mnt/ /mnt/oldroot
    {Here I kill udisks, udev, and unmount the /oldroot}
    # chroot /
    # PATH=$PATH:/bin:/usr/bin:/usr/sbin
    {Hooray cloudready console!!!}
    # umount /dev/sda*
    # /usr/sbin/chromeos-install --dst /dev/sda {MOMENT OF TRUTH!!!}
    initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
    This will install from '/dev/sdc' to '/dev/sda'
    This will erase all data at this destination: /dev/sda
    Are you sure (y/N): y
    32+0 records in
    32+0 records out
    Illegal instruction (core dumped)

    How do I deal with this Illegal instruction thingy?

    Remember: /dev/sda* are unmounted! What's causing the error?

    Also, can I run upstart at this stage? I feel like this is the problem, but I'm not sure.

    Is it possible to do what I'm trying to do?

  • Joseph Honnoll

    What's your pc? Specs...

  • Alexander Bantyev


    IBM Motherboard, ATI radeon saphire GPU, Intel Pentium 4 CPU, 1 GB of RAM, 250 GB IDE hard drive. Does this really matter? BTW, after a bit of messing around I'm starting to suspect that /dev/sda1 is not really unmounted as I can still switch to different TTY and log in to Arch, where everything still works. The strange thing is that systemctl shows that Root mount is in exited state, and umount /dev/sda1 says 'Not mounted', but umount / (of course) says that Resource is busy. 

    Upd: after reboot PC shows 'No operating system'. I guess I broke something.

    Is there any way to install cloudready to such device (which can't boot from USB)?

  • Joseph Honnoll

    1GB of RAM is too low. Need at least 2GB. USB is the only way

  • Peter Smulders

    Well... USB is the only supported way. :)

    Since you are obviously not afraid of exotic expeditions, maybe you could try VirtualBox:

    • Set up a minimal virtual machine
    • Hook up the target hard drive as a virtual drive. (Google it; it basically involves manually editing the configuration file that defines a virtual drive to point at the device where the drive is connected)
    • Unzip (using something that will deal with the compressed PIO) the CR installer image to a *.bin
    • Use VBoxManage to convert the USB installer to a virtual disk. Hook that up to your virtual machine as well.
    • Run the installer (from the command line) from the correct source to correct target. (all depending on your virtual wiring choices)
    • Hook up your drive in your machine.

    Although nice and adventurous, it just occurred to me that you can do this 'in vitro' installation with any piece of hardware that will take your drive and boot from USB. Depends on what you have access to, I suppose.

    NB: CR will not run in VirtualBox, but that has more to do with the X server than with the system itself running. Also, I have experienced intermittent spurious reboots, but there could be a handful of causes for that. YMMV.

    And 1GB is low, but it may just work. Not going to be fun to work with, but just getting to a login screen may be all the fun you need.

  • Alexander Bantyev


    Thanks for the suggestion. I've tried it (Booted from DVD w/ ubuntu 16.04 server with Virtualbox headless inserted into the live image), then did some console trickery. The problem is that even with minimal setup, ubuntu still takes too much RAM (about 200MB (!!!) in my case), and starting a full CR from Virtualbox is impossible with less than 800MB of RAM (it just reboots immedeately after startup). This became more of a challenge then something I need, because it would be easier to just install LTS ubuntu with lxde, but "easier" isn't the proper Linux way, am I right?

    I've got a new idea: connect IDE drive to my new PC through some sort of adapter, dd a cloudready image to the drive, fill free space with ext4 partition, then connect the drive to the old PC and try booting... I believe I had an IDE to USB adapter somewhere in my pile of trash^W useful stuff, I'll write back on that later :) Thank you for your help!

    (WTF am I even doing in my free time?)

  • Peter Smulders

    @Alexander: even easier option: hook up the drive through IDE-to-USB (I assume your new computer is devoid of IDE connectors) and boot from a USB CR installer. Figure out which drive is which and do a command line install, essentially from USB to USB. The installer will take care of partioning your IDE drive.

    For future reference: this kind of question is best suited to a thread of its own. This particular thread is getting longer and longer with one vaguely related support issue after the other.

  • Alexander Bantyev


    Thank you for that idea! Haven't thought of that!

    >>  this kind of question is best suited to a thread of its own.

    Ok, noted.

  • Zach Tupy

    I got to the point of installation, but it’s giving me an error message, then it shows the unwanted traceback.

    “ERROR: GtpSanityCheck() returned 2: GTP_ERROR_INVALID_HEADERS”

    It also gives a warning for how the primary and secondary GTP’s are apparently invalid.

  • Spencer Simko

    I get through the whole process, but at the very end I receive a very long list of "cannot stat" errors, all ending in "Structure needs cleaning". Has anyone else encountered this or know what it is?

  • Forrest Smith

    Spencer - 


    We'll seen a copy/paste of this output to try to help. Please start a new thread for the sake of clarity and future search-ability.

  • Andrea Baiardi


    first sorry about my poor english...please be patient...thanks :-)

    I'm trying this manual installation via the cmd line.

    previous steps are all ok 


    at this step

    • To install, type the following commands:
      • cd /usr/sbin
      • sudo chromeos-install --dst /dev/sdX
      • NOTE: If the above cmd fails, try 
        sudo chromeos-install --skip_src_removable --dst /dev/sdX
        • Replace "X" above with the letter you identified as being your drive

    Error: Attempt to install to a removeable device: /dev/sdc


    sudo chromeos-install --dst /dev/sdX


    sudo chromeos-install --skip_src_removable --dst /dev/sdX

    replaced sdX with sdc

    about sdc

    Disk /dev/sdc: 14.4 GiB, 15502147584 bytes, 30277632 sectors

    Units: sector of 1 * 512 = 512 bytes

    Sector size (logical/physical): 512 bytes / 512 bytes

    I/O size (minimum/optimal): 512 bytes / 512 bytes

    Disklabel type: dos

    Disk identifier: 0x00121506

    Device      Boot Start           End          Sectors     Size  Id  Type

    /dev/sdc1        2048       30277631         30275584    14.4G  83  Linux


    Any idea?




    Best Regards.



  • Forrest Smith

    Andrea ,

    As the error says in your output:
    "Error: Attempt to install to a removeable device: /dev/sdc"
    You seem to be targeting a removable 16 gb disk for install which isn't allowed by default.
    If you you add another install flag of "--skip_dst_removable" then this check should be skipped and the install may work fine.
  • Andrea Baiardi

    Thanks Forrest,

    but tried also with "sudo chromeos-install --skip_src_removable --dst /dev/sdc" and not worked.



  • Forrest Smith

    Hi -


    Note that "--skip_src_removable" and "--skip_dst_removable" are different

  • Andrea Baiardi


    thanks Forrest.

    at last 

    "sudo chomeos-install --skip_src_removable --skip_dst_removable --dst /dev/sdc"


    "sudo chromeos-install --skip_dst_removable --dst /dev/sdc" ?

    thanks again.


  • Forrest Smith

    I think you want to try


    sudo chomeos-install --skip_src_removable --skip_dst_removable --dst /dev/sdc

  • Andrea Baiardi

    Thank again, Forrest, very kind of you.

    I'll try tomorrow morning.

    Have a nice day.




  • Andrea Baiardi

    here last report of failed install


    initctl: Unknown instance: 
    This will install from '/dev/sdb' to '/dev/sdc'.
    This will erase all data at this destination: /dev/sdc
    Are you sure (y/N)? y
    32+0 records in
    32+0 records out
    16384 bytes (16 kB, 16 KiB) copied, 0.0144183 s, 1.1 MB/s
    33+0 records in
    33+0 records out
    16896 bytes (17 kB, 16 KiB) copied, 0.0162272 s, 1.0 MB/s
    WARNING:root:duplicate device kname: /dev/dm-1
    WARNING: Primary GPT header is invalid
    WARNING: Secondary GPT header is invalid
    ERROR: GptSanityCheck() returned 2: GPT_ERROR_INVALID_HEADERS
    Traceback (most recent call last):
      File "/opt/neverware/", line 235, in <module>
      File "/opt/neverware/", line 227, in main
        lines = get_cgpt_lines(target_drive)
      File "/opt/neverware/", line 33, in get_cgpt_lines
        out = subprocess.check_output(['/usr/bin/cgpt', 'show', target_drive])
      File "/usr/lib64/python2.7/", line 573, in check_output
        raise CalledProcessError(retcode, cmd, output=output)
    subprocess.CalledProcessError: Command '['/usr/bin/cgpt', 'show', '/dev/sda']' returned non-zero exit status 1"



  • Forrest Smith

    Hi Andrea,


    Does your device have /dev/sda? Why aren't you installing to that? I would recommend starting a new thread since this is getting to be a hard discussion to track or search for in the comments of a much more general help article.

    Also, you should consider removing or disconnecting /dev/sda so you can avoid the risk of installing to it and just run the installer from the UI.



  • Andrea Baiardi

    Hi Forrest,

    thanks again.

    I apologize for the misunderstandings.

    I have an usb  Installer stick.

    Now I'm trying to install Cloudready on another usb stick (usb 3.0): I would like to get a usb live version.

    I thought that the procedure indicated would allow me to skip the installation on hard disk and choose the destination, in this case the usb 3.0.

    do you think it is appropriate to start a new discussion?


    Have a nice day.


  • Andrea Baiardi

    Thanks Phil, in my usb stick installer I have already expanded the available space with Gparted.

    Sound's like a good idea remove the "Install" option from the shelf menu.



  • Unmesh Agarwala


    I'm new to CloudReady and was looking to create a persistent USB install for use when I don't want to take chance on corrupting my daily driver Windows 10 installation, similar to my Ubuntu USB install.

    I was intrigued by your remark about no OTA updates. What is the advantage of expanding Partition 16? Installing Flash, proprietary codecs etc?


  • Unmesh Agarwala


    Thanks for the insight.

    I just did the partition expansion on a fast Samsung EVO MicroSD in a USB reader, installed the add-ons and the changes seem to persistent through reboots.

    I will keep it alongside my Ubuntu stick

  • Mo Renteria

    Hi, I'm trying to install the 32-bit version to my Acer One Cloudbook 11 AO1-131-C7DW. Booting from the USB it stalls or it's stuck on the splash screen. Also, is there a way to manually install 32-bit through the command terminal using a 64-bit USB?

  • Forrest Smith

    Hi mo - 

    For future reference, questions like this should be in a new thread.


    In your case, there's a model  just like yours that is certified - special instructions for that model should be followed when installing. 

    NOTE: you don't need 32bit. Stick to 64.

Please sign in to leave a comment.