sdidier wrote:Thanks for the reply fb Actually I did everything as per the instructions, I did not have a /boot partition I did create a bootstrap swap and root partitions. I did not however create those in the first partition, so I had to use mac-fdisk to reorder the boostrap to hda2 fron hda10.
I also chrooted chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
What I am no too sure about is creating the yaboot.conf file so that I can use mkofboot and have it write the file on the hard drive? How do I move it off of the Live cd to /mnt/gentoo?
are you saying that I can open another terminal in the installation environment?
Thanks for the quick reply!!
You have to write the yaboot.conf in the /etc directory of your hard drive,
have tried using yabootconfig? Well it didn't work for me. Here is a copy
of my yaboot.conf and I will comment the important point that have to be
changed:
Code: Select all
## Example yaboot.conf for ybin and yaboot >= 0.6
## see man yaboot.conf for more details.
## Change `unconfigured' to your bootstrap partition eg: /dev/hda2
boot=/dev/hda2
## device is the OpenFirmware device path to the disk containing
## kernel images. if your disk is /dev/hda you can find the
## OpenFirmware path by running the command: ofpath /dev/hda DO NOT
## specify a partition number for this! On IBM hardware you can
## generally comment this out.
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0
## partition is the partition number where the kernel images are
## located. The kernel images should be on your root filesystem, so
## this is usually the same partition number as your root filesystem.
## so if root = /dev/hda3 (the 3rd partition) then you should have
## partition=3 This *MUST* be set correct or yaboot won't boot! This
## option can be either set globally as shown here, or per image in
## the image= sections
partition=8
## delay is the amount of time in seconds the dual boot menu (if one
## is configured, by the presense of macos, macosx, etc options here)
## will wait before choosing the default OS (GNU/Linux or the value of
## defaultos=). If you omit this then the value of timeout=
## (converted to seconds) will be used.
delay=10
defaultos=linux
## timeout is the amount of time in tenths of a second that yaboot
## will wait before booting the default kernel image (the first image=
## section in this config file or the value of default=).
timeout=40
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
## Change the default colors, fgcolor is the text color, bgcolor is
## the screen background color. (default: fgcolor=white, bgcolor=black)
#fgcolor=black
#bgcolor=green
## Password supplied in plaintext, required for yaboot to boot, unless
## restricted is also present (see below). Be sure to
## chmod 600 /etc/yaboot.conf if you set this!
#password=secret
## Password supplied as an md5 hash, see above
#password=$1$saltstrg$HnJ/gcM3oKhNbnzUPgXTD/
## A password is only required to boot an image specified here if
## parameters are specified on the command line or if the user enters
## an image is not specified in the configuration file at all (ie.
## arbitrary file load). restricted can also be placed in an image
## section in that case any image not including the restricted keyword
## will be fully password protected.
#restricted
## image is the kernel itself, commonly kept in / but also commonly
## found in /boot. Note that /boot should generally not be its own
## partition on powerpcs, its not necessary and complicates things.
## Make sure /boot is on the partition specified by partition= see
## above. /boot should never be an HFS filesystem. You may point
## image= to a symbolic link so long as the symlink does not cross
## partition boundries.
image=/boot/kernel-2.4.24-r4
label=linux
root=/dev/hda8
read-only
#image=/vmlinux.old
# label=Linux.old
# root=/dev/hda3
# read-only
macos=/dev/hda6
macosx=/dev/hda4
enablecdboot
enableofboot
boot=/hda2 should be correct for you too.
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0
may be different for you. You should check it with:
"ofpath /dev/hda" and replace /pci.... by the result if it is different
(I know there is an easier way but I never remember it.)
partition=8, 8 should be replaced by the number of your root partition,
from your post put 12.
Then check the section:
image=/boot/kernel-2.4.24-r4
label=linux
root=/dev/hda8
read-only
You need to replace things here with stuff from your installation,
namely put /boot/yourkernelname instead of /boot/kernel-2.4.24-r4
(assuming you have a different name for your kernel).
For you, it should be root=/dev/hda12.
Finally check that the partitions for the other OSes are correct and
relevant to your install:
macos=/dev/hda6 <=======for booting Mac OS9 comment if don't have it
macosx=/dev/hda4 <====== OSX partition
enablecdboot <====== enable booting from cd
enableofboot <====== enable booting of the openfirmware (you should leave it).
Every line starting with # is a comment, read it for your information.
In nano when you have finished editing a file type ctrl-x to quit and
it will ask if you want to save your changes, which you do, it should
be straightforward to follow nano's instructions from there. If you start
with "nano /etc/yaboot.conf" and the file doesn't exist it will be created
when you save. You have to do this while you are chrooted.
About the last question, while you have only one screen linux has
virtual terminal. There are usually 6 virtual terminals when you boot
from most linux distro or livecds. Those 6 are comand line terminal
a 7th is usually dedicated to GUI mode when it is running. You switch
from terminal to terminal by ctrl+alt+F# where # is terminal number
you want.
So you have logged in one terminal (vt1) and have chrooted that terminal
to your hard drive but you still have the 5 others there in which you can
log in. Doing so will log you in the original cd environment, you don't
need to mount the partitions if you have already done so in an other
terminal but you can chroot again on your hard drive environment
if you wish too.
I hope I am not too confusing, or that I tried to explained something
you already knew.
Now I will be off to my home and have tea and be unavailable for the next
18hours.
Hope you make it without any more help!