knoppix lang=en xserver=XFree86 xmodule=fbdev fb1024x768 wheelmouse flatpanel = lies left of del with no shift Rage M3p mounted (via knoppix) and copied to save place: cp -a /mnt/hda9 /save/place ran 10.2 install cd and let that check and repair the file-system downloaded parted-hfs-ppc.static from http://xilun666.free.fr/ chmod ug+x on the file ran it like this: ./parted-hfs-ppc.static CONSULTED THE MAN-PAGE OF PARTED! checked to work on the right hdd! (parted) print 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... It asks: 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 of 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. This isn't the fdisk I know from i386 linux...And cfdisk doesn't even recognize the partition table... 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.... ( 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. 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 :) cd /KNOPPIX/ (hdparm -d1 /dev/hde sets dma to on on the cdrom) cp -a * /mnt/hda11 1.8 GB are used afterwards :) now copy some start|stop scripts to the appropriate place on the new partition like this (knx-templates-0.3.tgz get here) <------------------------------ mkdir /tmp/bla cd /tmp/bla tar xpzf /whereever/you/have/knx-templates-0.3.tgz cd etc 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 cd /mnt/hda11/etc/rcS.d/ mv S00kn* s00knoppix-autoconfig cd /mnt/hda11/etc/rc5.d/ mv S20smail s20smail mv S20samba s20samba (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) cd - cp -af init.d/keymap.sh-de /mnt/hda11/etc/init.d/keymap.sh cd /mnt/hda11/dev ln -sf sr0 cdrom cp /tmp/bla/etc/profile /mnt/hda11/etc/ cp /tmp/bla/etc/inittab /mnt/hda11/etc/ editor /mnt/hda11/etc/motd (change to your liking) now adjust etc/modules cd /mnt/hda11 cat /proc/modules >> etc/modules editor etc/modules and clean it - meaning remove everything behind the modules at the beginning 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 instance?!) editor etc/init.d/bootmisc.sh and add at the bottom: /sbin/hdparm -qd1 /dev/hde #dma on for the cd drive adjust hde according to your setup (see what mount says) 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 :) editor /etc/hostname editor /etc/mailname 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 mkdir tmp chmod 1777 tmp # create /etc/mtab as a regular file rm -f etc/mtab touch 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 . this changes your root to the new partition for the first time :)) enter chpasswd and then at the > type > root:password now press 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/ get yaboot-binary from here: http://penguinppc.org/projects/yaboot/ cd /mnt/hda11 tar xzvf /where/you/downloaded/yaboot-binary*.tar.gz and chroot back with chroot /mnt/hda11 cp /usr/local/share/doc/yaboot/yaboot.conf /etc now edit the /etc/yaboot.conf with editor it has to look somewhat like this boot=/dev/hda2 device=hd: partition=11 delay=100 #10 secs default=Linux image=/boot/vmlinux label=Linux root=/dev/hda11 read-only image=/boot/vmlinux-2.4.21-ben1-mib19 label=Linux.old root=/dev/hda11 read-only ofboot=hd:2 #macosx=/dev/hda10 macosx=hd:10 defaultos=macosx #boot from openfirmware enableofboot #boot from cd enablecdboot ### DON'T FORGET TO RUN YBIN!#### (EOF) ---------------------- NOW FOR THE WRITING: mkofboot -b /dev/hda2 -i /usr/local/lib/yaboot/yaboot -C /etc/yaboot.conf -v enter y to create hfs on /dev/hda2 TIME TO SEE IF IT WORKED!!! See here if it didn't http://penguinppc.org/projects/yaboot/doc/yaboot-howto.shtml/ch9.en.shtml