HOWTO install Sabayon CoreCD from Sabayon & USB flash

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

HOWTO install Sabayon CoreCD from Sabayon & USB flash

Postby donnie » Sun Apr 25, 2010 20:45

3 steps

You need +512MB USB flash and .iso of Sabayon CoreCD (here: 5.2 x86).

You get CoreCD installed on one of extended partitions, Sabayon will be working.

It is recommended to backup:
viewtopic.php?f=86&t=20450

0. Prepare ext4 extended partition to hold CoreCD (here: /dev/sda6). 12GB should
be enough.

1. Insert USB flash, run mount:
Code: Select all
$ su
# mount

to find where your USB flash is mounted (here: /dev/sdb1 on /media/disk). Unmount it
Code: Select all
# umount /media/disk

2.(!) From here and ahead, be careful when writing something like /dev/sdb or /dev/sdb1. Because /dev/sda is your first HDD, and many commands here could make it unbootable. Also, there is a difference in /dev/sdb (USB flash device) and /dev/sdb1 (partition of that device), don't spend time changing this.

Create one primary boot partition
Code: Select all
# fdisk -cu /dev/sdb

Useful commands of fdisk are:
p - partition table
d - delete partition
n - create partition
a - toogle boot flag
w - save and exit

The result:
Code: Select all
# fdisk -lu /dev/sdb
Device     Boot  Start  End      Blocks    Id  System
/dev/sdb1  *     2048   8000306  3999129+  83  Linux

Create FAT 32 file system (use FAT 16 for -4GB)
Code: Select all
# mkfs.vfat -F 32 /dev/sdb1

3. Install MBR from syslinux on USB flash
Code: Select all
# equo install syslinux
# dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb

Mount USB flash
Code: Select all
# mkdir -p /mnt/usb
# mount -t vfat /dev/sdb1 /mnt/usb

Mount .iso (here: Sabayon_Linux_CoreCD_5.2_x86.iso)
Code: Select all
# mkdir -p /mnt/cdrom
# mount -o loop,ro -t iso9660 /media/sda10/tmp/Sabayon_Linux_CoreCD_5.2_x86.iso /mnt/cdrom

Copy files
Code: Select all
# cp -r /mnt/cdrom/* /mnt/usb
# mv /mnt/usb/isolinux/* /mnt/usb
# mv /mnt/usb/isolinux.cfg /mnt/usb/syslinux.cfg
# rm -rf /mnt/usb/isolinux*

Install syslinux on USB flash
Code: Select all
# syslinux /dev/sdb1

Test a newly created USB using QEMU
Code: Select all
# umount /dev/sdb1
# sync ; echo 3 > /proc/sys/vm/drop_caches ; qemu -usb /dev/sdb1

4. Boot from Sabayon 5.2 CoreCD USB flash.

If it writes something, wait. If it wanting you to select graphical mode, try
800x600 - works for sure. After booting, start installer and follow instructions. Install CoreCD to extended partition (here: /dev/sda6) by choosing a "/" (root) mount point.

(optional) If you followed HOWTO, you already have a separate boot partition (here: /dev/sda1) with GRUB2. So, do not install bootloader to MBR, but install at root.

Reboot to your old Sabayon, open /boot/grub/grub.cfg on CoreCD (!) partition, and find 2 menu entries for CoreCD, they boot from different (hd0,?) and are started at
Code: Select all
### BEGIN /etc/grub.d/10_linux ###

Copy them to /etc/grub.d/40_custom. Remove old grub.cfg (make a backup of it!),
and generate a new grub.cfg
Code: Select all
# rm /media/sda1/boot/grub/grub.cfg
# grub-mkconfig -o /media/sda1/boot/grub/grub.cfg

Test changes using QEMU
Code: Select all
# sync ; echo 3 > /proc/sys/vm/drop_caches ; qemu -hda /dev/sda

screenshot.png
donnie
 

Re: HOWTO install Sabayon CoreCD from Sabayon & USB flash

Postby wolfden » Tue Apr 27, 2010 5:18

Donnie, please note that all howto articles go to the wiki
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: HOWTO install Sabayon CoreCD from Sabayon & USB flash

Postby donnie » Tue Apr 27, 2010 9:36

They are automatically added or I must add it myself? I will not recommend just add random staff to wiki, someone must check it and then add.
donnie
 

Re: HOWTO install Sabayon CoreCD from Sabayon & USB flash

Postby wolfden » Tue Apr 27, 2010 9:48

You have to create/edit it yourself, you are responsible for the howtos. Your forum login should work on the wiki so no need to create another account

http://wiki.sabayon.org/index.php?title ... Guidelines
http://www.mediawiki.org/wiki/MediaWiki

Open up a browser and you can find help
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: HOWTO install Sabayon CoreCD from Sabayon & USB flash

Postby donnie » Tue Apr 27, 2010 11:04

But I needed to register again! By clicking on a small link on the bottom of the wiki main page. Without registering, it said im not a user in a proper user group.

Code generated by a wiki is much more compact, and on a forum you need scroll scroll scroll
donnie
 

Re: HOWTO install Sabayon CoreCD from Sabayon & USB flash

Postby donnie » Tue Apr 27, 2010 11:54

I converted 2 HOWTOs to wiki, you may remove this theme, but not previous HOWTO - because I posted some links to it on this forum, they will break
donnie
 


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 4 guests