ValveSoftware / SteamOS

SteamOS community tracker
1.55k stars 70 forks source link

Dual Boot #22

Closed ganesshkumar closed 10 years ago

ganesshkumar commented 10 years ago

Is dual boot supported. I didn't any way(in default and custom installation) to dual boot along with my existing OS

ganesshkumar commented 10 years ago

If it is possible, please update the installation page accordingly.

2martens commented 10 years ago

As it is stated on the installation page: WARNING: Both installation methods will erase all content on the target computer

So far it is not possible. What might work (the same with Windows) is installing SteamOS first and then another Linux distro like Ubuntu (no guarantee).

ghost commented 10 years ago

You need to edit the default.preseed file on the root of the install media. Remove the bottom section designated to partitioning. This stops the installer automatically partitioning the drive.

aldrik commented 10 years ago

Manual install using the pre-configured image:

wget "http://repo.steampowered.com/download/SYSRESTORE.zip"

All following commands assume:

Install the partclone and unzip packages. On Debian/Ubuntu that'd be:

apt-get install partclone unzip

Unpack SteamOS:

unzip -p SYSRESTORE.zip partimag/SteamOS/sda2.ext4-ptcl-img.gz.aa | gzip -d -c | partclone.restore -C -s - -O SteamOS_root.img
unzip -p SYSRESTORE.zip partimag/SteamOS/sda5.ext4-ptcl-img.gz.aa | gzip -d -c | partclone.restore -C -s - -O SteamOS_home.img
truncate -o -s 2500096 SteamOS_root.img
truncate -o -s 54889472 SteamOS_home.img
mkdir SteamOS_root SteamOS_home
mount SteamOS_root.img SteamOS_root
mount SteamOS_home.img SteamOS_home
rsync -aAXv SteamOS_root/* /mnt/SteamOS --exclude=/lost+found
rsync -aAXv SteamOS_home/* /mnt/SteamOS/home --exclude=/lost+found
# (Optional steps) clean up:
umount SteamOS_root SteamOS_home
rm -r SYSRESTORE.zip SteamOS_root.img SteamOS_home.img SteamOS_root SteamOS_home

Edit fstab:

sed -i /mnt/SteamOS/etc/fstab -e "19d" -e "8,17cLABEL=SteamOS   /               ext4    errors=remount-ro   0       1"

Finally add SteamOS to your bootloader. I use Syslinux, so did the following:

cp -an /mnt/SteamOS/boot/{vmlinuz-3.10-3-amd64,initrd.img-3.10-3-amd64} /boot/
cat <<EOF >> /boot/syslinux/syslinux.cfg

LABEL steam
    MENU LABEL SteamOS
    LINUX ../vmlinuz-3.10-3-amd64
    APPEND root=/dev/disk/by-label/SteamOS ro quiet splash nomodeset fbcon=vc:2-6
    INITRD ../initrd.img-3.10-3-amd64
EOF
ganesshkumar commented 10 years ago

@aldrik :+1:

ghost commented 10 years ago

SteamOS now has ISO support, meaning you can install via DVD and do an Expert Install, just like Debian.

ganesshkumar commented 10 years ago

Direct download link.

Closing the issue.