mac-fdisk -l # to see partitions
mac-fdisk /dev/hda # enter disk editor
p # print current partition map
i # init new partition map
b # OF needs an Apple bootstrap partition
2p # on second partition
c # create (for swap)
768M # twice the size of the physical RAM
swap # name
c # for root
4p # to the end of the physical drive
/ # name
w # write partition map
q # quit
Formatting the Partitions
There are several good filesystem types in Linux. The common and best tested file system is ext3 – it offers journaling and is very dependable.
With any memory less that 512MB in Linux it is best to make a swap partition and activate it:
Configuration-Files for Gentoo iBook
To save alot of time and research, here are configuration files for “
/etc/X11/xorg.conf” and “
/usr/src/linux/.config” (kernel config).
Installing a Kernel
Included in the configuration-files is the kernel configuration file tailored to the clamshell iBooks. Not much should need be changed.
Manually Configuring a Kernel
If beginning from scratch, start by creating a default mac configuration file:
Video support works better with the userspace driver just make sure that the video card is correctly set in the “make.conf“.
Device Drivers - Character devices --->
/dev/agpgart (AGP Support)
[*] Apple UniNorth support
[ ] Direct Rendering Manager (DRI support)
ATI Rage 128
Device Drivers - Graphics Support --->
ATI Rage 128 display support
make clean zImage modules modules_install
make install” uses the “installkernel” script that doesn’t work on PPC computers so the kernel will need to be installed by hand:
mv vmlinuz /boot/kernel-<version>
mv System.map /boot/System.map-<version>
cp .config /boot/config-<version>
Adding System Daemons and Tools
“updatedb” runs once a day which is tasking for a slow laptop. To change that behavior move slocate from the daily folder to the weekly.
mv /etc/cron.daily/slocate /etc/cron.weekly
Configuring the Bootloader
PowerPC machines must use “yaboot” as a bootloader to boot Mac OS 9 and Linux.
Now exit the chroot and return to the LiveCD shell to create a yaboot configuration file:
yabootconfig –chroot /mnt/gentoo
Yaboot cannot find a kernel? Type it in manually:
Go back to the chroot environment:
chroot /mnt/gentoo /bin/bash env-update && source /etc/profile
Have “yaboot.conf” (which was just produced) applied to the bootstrap partition.
It may be required to manually add a Open Firmware path to the boot device in “
yaboot.conf“. Discover the OFpath by:
where # is the root partition number, and add it to “
Now you can reboot and test your system. This will only do a base install (i.e. allow you to boot with basic services. If you want to add a desktop… see the Gentoo documentation. For computer’s of this performance type take a look at desktops like Openbox as Gnome and KDE would probably be too much for them.
A Few Other Tips
Disk space is a tough issue with an older computer. Even more so with Gentoo. But it is possible to install a Gentoo desktop. To make more space available:
To see how much disk space it being taken. To help, you can empty the temporary files produced by emerges and the source files themselves:
rm -r /var/tmp/portage/*
rm -r /usr/portage/distfiles/*
If getting a large clock skew if might be because a program in Linux (ntp I believe) will create a clock skew file (
/etc/adjtime) if there are large differences between the hardware clock and software clock. Though the hardware clock and software clock may get adjusted correctly the clock skew upon reboot will be adjusted to the skew in “
/etc/adjtime“. Remove this file to fix the problem.
Refusal to Check Filesystem on Boot
fsck could refuse to check filesystem on start stating:
(check deferred; on battery)
To fix create
"/etc/e2fsck.conf” and add a defer check option:
defer_check_on_battery = false
4MB Video Cards
4MB is a low amount of memory for displaying material on the screen. Any value over 16 bit depth on the desktop will cause excessive paging and long draw times. Fix in “