En:HOWTO: Run Sabayon Without Burning The Image

From Sabayon Wiki
Jump to: navigation, search
If you are looking for installing via USB please see the Unetbootin homepage, this guide if for installing from a hard disk partition.

If you do not have a correctly working DVD writer or no blank DVDs then this guide is to show you how to install using a spare partition on your hard drive.

First, you need to ensure that you have a free partition of at least 5 gigs. Mine is /dev/sda4. I used the gparted bootable CD to shrink /dev/sda3.

Make an ext2 (or ext3 or ext4) filesystem on this partition

# mkfs -t ext2 /dev/sda4

Make two separate mountpoints. I used /mnt/iso and /mnt/sda4

# mkdir /mnt/iso /mnt/sda4

Mount the ISO and partition

# mount -t iso9660 -o ro,loop=/dev/loop0 /home/jvj/Sabayon-Linux-x86-3.5_Loop2-r2.iso /mnt/iso
# mount /dev/sda4 /mnt/sda4

Copy the files from the mounted ISO to the mounted partition:

# cp -rvp /mnt/iso/* /mnt/sda4

Grub1: On releases < Sabayon 5.2, or any distribution that uses Grub 1 (grub legacy)

Once the files have all copied, cd to /boot/grub/

# cd /boot/grub/

and add these lines to grub.conf: (note that because of line-wrapping the line that starts with kernel ends with --)

File: (/boot/grub/grub.conf)
title Sabayon Linux x86 Test
  root (hd0,3)
  kernel /boot/sabayon root=/dev/ram0 aufs init=/linuxrc cdroot=/dev/sda4 looptype=squashfs max_loop=64 loop=/livecd.squashfs splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 music quiet --
  initrd /boot/sabayon.igz

(Save grub.conf, and run grub-install (again assuming sda is your root drive):

# grub-install /dev/sda

Grub2: Since Sabayon 5.2 (or any distribution that uses GRUB 2)

If you followed this HOWTO thoroughly and successfully installed Sabayon from a HDD partition, but for some reason cannot boot a newly installed system, or just want to reinstall it again from that HDD partition, or even if you haven't installed Sabayon yet, here is how you can boot to installation partition directly from GRUB2 boot screen:

Add this to /etc/grub.d/40_custom under the comment line, at the end of the file :

File: (/etc/grub.d/40_custom)
menuentry "Sabayon install" { 
set root=(hd0,7)
linux /boot/sabayon root=/dev/ram0 aufs init=/linuxrc cdroot=/dev/sda7 looptype=squashfs max_loop=64 loop=/livecd.squashfs splash=verbose quiet
initrd /boot/sabayon.igz

Don't forget to type in the right partition (/dev/sda7 in this example, which corresponds to root=(0,7) ).

After that, run grub-mkconfig -o /boot/grub/grub.cfg as root, and reboot the machine. Launch the GRUB menu by pressing the left shift key just after the BIOS screen, and select "Sabayon install".