Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing Gentoo2005 on Imac G3 without Cd-rom
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message

Joined: 13 Jul 2005
Posts: 7

PostPosted: Fri Jul 22, 2005 4:46 am    Post subject: Installing Gentoo2005 on Imac G3 without Cd-rom Reply with quote

I have iMac G3 with brocken Cd-rom cable but i want install gentoo otherwise. And i did it in this way:
1. Require:
You need PC with installed gentoo and 2.5" <->3.25" ide connector.
You also need kernel with HFS,HFS+,SquashFS and Loopback device options enabled.
You need hfsutils (ACCEPT_KEYWORDS=~x86 emerge hfsutils), parted-1.6.22 (emerge =parted-1.6.22*)
And last - you need install-ppc-universal-2005.0 (may be found in Download section)
2. Connect your 2.5" HDD to pc and run gentoo.
3. Partition your notebook hdd (/dev/hda in example) with parted by doing following command (one per line,comments in () ):
select /dev/hda
mklabel mac (WARNING - this command kill all info on your /dev/hda)
mkpart primary hfs 0.031 20 (make 20Mb HFS partition)
mkpart primary ext2 20 -0 (Make ext2 partition starts right after HFS boot and ends on hdd end)
set 2 boot on (make HFS partition boot)
4. Format partitions:
hformat /dev/hda2 0
mke2fs -j /dev/hda3
5. Put your install-ppc-universal-2005.0 in cd-rom and mount partitions:
cd /mnt
mkdir hfsboot g3_root squash livecd
modprobe hfs loop squashfs
mount /dev/hda2 /mnt/hfsboot -t hfs
mount /dev/hda3 /mnt/g3_root -t ext3
mount /dev/cdrom /mnt/livecd -t iso9660
mount /mnt/livecd/livecd.squashfs /mnt/squash -o loop
6. Now copy file from CD to your notebook hdd:
Copy all /mnt/livecd/boot directory to /mnt/hfs
uncompress /mnt/livecd/stages/stage3-ppc-20050303.tar.bz2 to /mnt/g3_root
uncompress /mnt/livecd/snapshots/portage-20050303.tar.bz2 to /mnt/g3_root/usr/
copy /mnt/livecd/distfiles directory to /mnt/g3_root/usr/portage/
7. Edit config files:
edit /mnt/g3_root/etc/fstab:
/dev/hda2 /boot hfs noatime 0 0
/dev/hda3 / ext3 noatime 0 0
/dev/SWAP none swap sw 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
Edit /mnt/hfs/boot/yaboot.conf



# G3 option

append="init=/sbin/init udev nodevfs splash=silent quiet"

8. Turn off PC and connect hdd to iMac G3.( Tips: before turning off your pc copy "root:" line from /etc/shadow to /mnt/g3_root/etc/shadow cause i can't logon to g3 gentoo with root and blank pass)
9. Turn on iMac and hold Apple+Options+O+F to boot into OpenFirmware
10. type hd:2,\boot\yaboot
11. You must see blue screen and yaboot prompt
12. type hd:2,\boot\G3G4 init=/sbin/init
13. Your linux must boot.
14. Logon using login root and your root pass.
15. Enjoy :D
Back to top
View user's profile Send private message

Joined: 27 Jan 2003
Posts: 35

PostPosted: Wed Aug 03, 2005 8:09 am    Post subject: Reply with quote

Nice, that could have been useful to me for another reason..!

My CD-ROM drive in my older powermac 7300 cannot read CD-RWs, and I'm always out of CD-Rs, so I had to do some funky stuff to get it working..

I had find my OLD gentoo install files.. the kernel & ramdisk image from the gentoo 1.1a days, which worked without using a CD, and then i extracted the stages, etc etc as usual.

My HD was SCSI, and I have no other machine (besides even older macs) which would have been able to use it. Now that i got an ATA card ans a 250GB 7200.8 Seagate drive, I would have had no problem partitionning, formatting & unpacking stages from my PC.

Maybe this should have been posted in Tips & Tricks! :)

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum