Hi! I'm Robos.
I recently had to install linux on my boss' powerbook g3 firewire (400Mhz, 1GB ram, 20GB hdd). Since I've done some debian installs in the past and some knoppix installs lately I looked and found a knoppix for powerpc after reading the announcement in debian ppc.
Update: the stuff was moved here:
The cd start worked quite nicely already. Just hold c at system bootup and at the prompt that comes up enter
knoppix lang=en xmodule=fbdev wheelmouse
"=" lies left of del with no shift
When I then started to make the install I did this - most of this is from the i386 version of knx-hdinstall skript.
First I became root by opening a konsole (window with shell in front of it in the panel) and entering
I hope this did help someone. If you have any questions feel free to ask me, robos.
fdisk -l /dev/hda told me that the mac osx partition is hda9.I then mounted this (via knoppix) and copied to save place:
cp -a /mnt/hda9 /save/place
Then I ran the 10.2 install cd and let that check and repair the file-system. In oder to resize the osx partition which span the whole harddisk I found this: parted-hfs-ppc.static at http://xilun666.free.fr/.
Update: THIS DOES NOT WORK AS INTENDED! THE FILESYSTEM WASN'T CORRECT AFTERWARDS!
It looks (I am in contact with the author of that patch) as if you need to partition it the old way with osx boot cd and then in disk tool partition... All data will be lost on the partition you are going to resize, so BACK IT UP!
chmod ug+x parted-hfs-ppc.static on the file and ran it like this:
./parted-hfs-ppc.static (after changing to the dir where it is - probably /home/knoppix).
CONSULTED THE MAN-PAGE OF PARTED and checked to work on the right hdd! (ctrl+alt+n gives you another tab that has a konsole). This is now in parted:
9 0.891 19077.183 hfs+ Max OS X
(parted) resize 9 0.891 16005.183
Okay, it doesn't really bother if I give it start and end there...
Start? [0.8906]? and I hit enter
End? [19077.1836]? 16005.1836 enter
This then takes a while. I first did try this with only the 3 gig being
free. This took AGES (at 36% after 13 hours it calculated it needed still
1400 mins...). Then I cleaned the harddrive (after checking it with the 10.2
install cd hard disk tool) under osx and had it cut down to 8gig roughly.
This then took roughly 4 hours or so to split off the 3 gigs I wanted. The
check and repair afterwards (with install cd) were pretty mild, one error IIRC.
Then fdisk does it's work with the now free-space -
fdisk /dev/hda. This isn't the fdisk I
know from i386 linux...And cfdisk doesn't even recognize the partition
Anyway, with p for print I saw that hda10 is the free space I just created,
sized 3GB. I d (deleted) it and then
first tried this but didn't work since hformat (hfs format) thought 20MB were smaller
than 800k later during install....
( do NOT try!!! C (created) a new yaboot partition
with citing the number behind the @ and for size 20M (MB). Then enter for
"name of partiton whatever you like (I chose yaboot) and ___IMPORTANT____ for
"Type of partition" Apple_Bootstrap. NOTE: you might do this with the "b" option
in fdisk but I tried it this way...
GO on here
use b to create a 800kb boot partition. Give the number behind @ for hda10 for the "First block"
p to verify.
Now create another partition for the rest with c and chose the number behind @
again (for hda11 now!!) and for size 3050M (MB). For name I chose "knoppix".
The partition type should be
Apple_UNIX_SVR2 (done by fdisk itself).
This leaves 2MB empty - you never know...
NOW you need to move the yaboot partition right after the map partition (hda1) so
that it becomes the logical partition hda2. Else the mac boot partition jumps in first.
Do this with "r" in fdisk and name 10 as the partition number and 2 as the new number.
p and look if it looks ok.
A w (write) makes this permanent.
Command (? for help): p
# type name length base (
size ) system
/dev/hda1 Apple_partition_map Apple 63 @ 1 (
31.5k) Partition map
/dev/hda2 Apple_Bootstrap bootstrap 1600 @ 32657424
(800.0k) NewWorld bootblock
/dev/hda3 Apple_Driver43 Macintosh 56 @ 64 (
28.0k) Driver 4.3
/dev/hda4 Apple_Driver43 Macintosh 56 @ 120 (
28.0k) Driver 4.3
/dev/hda5 Apple_Driver_ATA Macintosh 56 @ 176 (
/dev/hda6 Apple_Driver_ATA Macintosh 56 @ 232 (
/dev/hda7 Apple_FWDriver Macintosh 512 @ 288
/dev/hda8 Apple_Driver_IOKit Macintosh 512 @ 800
/dev/hda9 Apple_Patches Patch Partition 512 @ 1312
/dev/hda10 Apple_HFS Max OS X 32655600 @ 1824 (
/dev/hda11 Apple_UNIX_SVR2 knoppix 6411056 @ 32659024 (
3.1G) Linux native
Block size=512, Number of Blocks=39070080
1: @ 64 for 23, type=0x1
2: @ 120 for 36, type=0xffff
3: @ 176 for 21, type=0x701
4: @ 232 for 34, type=0xf8ff
Now the harddisk gets worked on:
dd if=/dev/zero of=/dev/hda11 bs=1k count=16 ...(?)
mkfs.ext2 /dev/hda11 -L knoppix creates the file system on the partition. I create ext2 since I don't know if the laptop-mode patch of jens axboe
works with ppc kernels too and without this patch ext3 sucks since it writes
it's log to hdd every 5 secs...so the hdd never spins down
I don't know if this is necessary (i.e. what the man-page says about it
sounds useful) but hey - what do I know?
tune2fs -O ^dir_index /dev/hda11
mount /dev/hda11 /mnt/hda11 (maybe you need -t filesystem-type if you used
something else than ext2)
df -h :)
hdparm -d1 /dev/hde sets dma to on on the cdrom)
cp -a * /mnt/hda11
This basically installed the knoppix cd onto the harddisk :o 1.8 GB are used afterwards :)
now copy some start|stop scripts to the appropriate place on the new partition like this
Then download the knx-templates-0.38.tgz here to /home/knoppix.
Alternatively you can download the whole etc dir with all the changes
described below here(1.7MB). Unpack it
tar xpzf /home/knoppix/knx-templates-0.3.tgz
for x in 0 5 6 S; do cp -a rc$x.d/* /mnt/hda11/etc/rc$x.d/; done
cp -a rc5.d/* /mnt/hda11/etc/rc2.d/
cp -a rc5.d/* /mnt/hda11/etc/rc3.d/
cp -a rc5.d/* /mnt/hda11/etc/rc4.d/
In my case I don't want to start smail and samba at startup so I do
(mv-ing it to lowercase is enough to stop it from being started). Now adjust the keymap (for en choose en instead of the de at the end)
mv S00kn* s00knoppix-autoconfig
mv S20smail s20smail
mv S20samba s20samba
(change to your liking)
cp -af init.d/keymap.sh-de /mnt/hda11/etc/init.d/keymap.sh
ln -sf sr0 cdrom
cp /tmp/bla/etc/profile /mnt/hda11/etc/
cp /tmp/bla/etc/inittab /mnt/hda11/etc/
now adjust etc/modules
and clean it - meaning remove everything behind the
modules at the beginning
cat /proc/modules >> etc/modules
autofs4 11088 0 (autoclean) becomes autofs4
comment out cloop with an # at the beginnig
cloop -> #cloop
cp /tmp/bla/etc/inputrc etc/inputrc
cp /etc/fstab etc
editor etc/fstab and add
/dev/hda11 / ext2 defaults,errors=remount-ro 0 1
adjust the others if there is something fishy...(like second hda11 for
and add at the bottom:
/sbin/hdparm -qd1 /dev/hde #dma on for the cd drive
adjust hde according to your setup (see what
cp /etc/X11/XF86Config etc/X11/
cp /etc/X11/XF86Config-4 etc/X11/
mv etc/X11/Xsession.d/45xsession root/xsession.knx-hdinstall.backup
editor /etc/hosts and change Knoppix to something you like :)
probably cp /etc/resolv.conf etc/resolv.conf
cp -af /tmp/bla/etc/inetd.conf etc
cp -af /tmp/bla/etc/sudoers etc
editor /etc/sysconfig/i18n and change the language
cp -af /tmp/bla/etc/hosts.allow etc/hosts.allow
rm -rf tmp
chmod 1777 tmp
# create /etc/mtab as a regular file
rm -f etc/mtab
sed -e 's/FirstLogin=false/FirstLogin=true/g' \
/etc/skel/.kde/share/config/kpersonalizerrc > /tmp/blubb
cp -f /tmp/blubb etc/skel/.kde/share/config/kpersonalizerrc
cp -f /tmp/blubb home/knoppix/.kde/share/config/kpersonalizerrc
now set a new password for root
chroot . (the point is in the command) changes your root to the new partition for the first time :))
chpasswd and then at the > type
ctrl-d. Now type
passwd and enter a useful password.Do the same with knoppix instead of root.Now ctrl-d to get out of the chroot, copy some stuff from /cdrom
cp -a /cdrom/boot/* /mnt/hda11/boot/
You will need to download the yaboot-binary from here:
and chroot back with
tar xzvf /home/knoppix/yaboot-binary*.tar.gz
cp /usr/local/share/doc/yaboot/yaboot.conf /etc
Now edit the /etc/yaboot.conf with editor. It has to look somewhat like this
delay=100 #10 secs
#boot from openfirmware
#boot from cd
### DON'T FORGET TO RUN YBIN!####
NOW FOR THE WRITING:
mkofboot -b /dev/hda2 -i /usr/local/lib/yaboot/yaboot -C /etc/yaboot.conf -v
Enter y to create a hfs on /dev/hda2
TIME TO SEE IF IT WORKED!!!
See the yaboot howto if it didn't.
16. Oct 2003: This page here upped
Last update: Thursday, 12-Nov-2009 12:21:33 CET
Due to some judgements in recent time I hereby want to express that I'm not involved in other sites I may link to from this page.
announcement of knoppix-ppc
debian ppc docs
apple powerbook firewire docs
Comments, Errata? Contact robos!
Page counter: 35476