SteamOS Default Image is cloned with a 1TB partition table
For flexibility, I've found that when using CloneZilla, the best policy is to opt for the smallest partition table possible on the source, when potentially deploying to a variety of destination disk sizes. It's a simple matter to expand a particular partition after imaging (can be done in a post script programmatically).
As it stands, the image is impossible to use with SSDs, or any other disks with a capacity < 1TB.
I've heard of people installing SteamOS on 40GB SSDs. My first install was on a 72GB hard drive so I'm not quite sure what you're getting at. I used the DVD iso on advanced for reference.
I specifically mentioned the 'Default Image' and CloneZilla, so installing from other media is completely unrelated.
EDIT: And the official site makes no mention of the DVD installer, so this is in the interest of making the install easier for people. It also doesn't help that the CloneZilla imager drops to the CZ menu on error, hiding any previous error messages, and making it non-obvious what the problem was, but that's a separate issue.
For reference, I used the Stephenson's Rocket installer to get a working install, and so I could dual-boot.
@pdf, what are you using to resize the partitions before and after imaging? I have experimented a bit with using resize2fs and parted but it seems pretty fragile.
@johnv-valve generally the way we deal with it is by having a single partition that's to be expanded, with all others remaining at their initial size. As long as that partition is at the end of the disk, it's a simple matter of deleting it and recreating it at the same starting sector, to the end of the disk. You can either do this in a post-image script, or using an initramfs hook, but the latter assumes the partition layout won't change (ie - we always want to expand the last partition).
We generally do the filesystem expansion inside the imaged OS, by just sticking a line in /etc/rc.local, since resize2fs wants to do expansion online. If you only want to run it once, you could mount and resize in your post-image script, or use a checkfile or something inside the imaged system to trigger the run, but we just let it run every boot in case we expand the disk later. Again though, the latter assumes the partition layout won't change.
@pdf Are you using parted? I have tried to do this and I find that parted won't work in an unattended script. It prompts without --script and fails with --script.
root@debian:/home/user# parted --script -- /dev/sda mkpart steam 61001728s -1s
Error: You requested a partition from 31.2GB to 1000GB.
The closest location we can manage is 31.2GB to 1000GB.
If you have a script that will work reliably from within the CloneZilla environment, I can hook it into the post_install script that runs after the image is restored.
@johnv-valve if you're certain that 61001728s is the right starting sector, try:
parted /dev/sda --script -- mkpart steam 61001728s -0
There is also resizepart if you want to try using that instead of rm/mkpart (some installers place partitions too close together), ie:
parted /dev/sda --script -- resizepart <n> -0
Where <n> should be replaced by the partition number - this is probably a safer option in case you change the other partition sizes at some stage, and you can't end up without a partition if the delete succeeds, but the create fails.
@johnv-valve for reference, Debian on a Raspberry Pi uses an image as little as possible, and then expands until it reaches the end of the blank space after its partition at the first boot, you may want to take a look at its script.
Hope it helps :smile: