LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-07-2008, 10:58 AM   #1
Robert Litt
LQ Newbie
 
Registered: May 2006
Posts: 15

Rep: Reputation: 0
School wants slackintosh on imacs...how to partition? help!


I believe this belongs here and not in the newbie section. I am a self taught tech teacher in an Oakland Public School. I want to run Slackintosh on the old imac g3s. They are "new world" macs and have 128 mb ram each. I can not get past the first step, creating a partition to install the software. How is this done? I'm an intermediate newbie, not totally green, but green enough not to know how to partition manually.

Thanks!
 
Old 04-07-2008, 12:08 PM   #2
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
I know nothing about Mac's but perhaps this will help.
I use the "LIVE gparted" for all of my partitioning work.
It's a free download @:
http://gparted.sourceforge.net/download.php
 
Old 04-07-2008, 12:26 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
So, you've tried using 'cfdisk' or 'fdisk' ? I have no experience with installing on Macs, but assume it is quite similar to x86 machines. If you want more on how to use 'cfdisk' see the slackbook in my sig, I imagine the Slackintosh installer is close to the Slackware one.
 
Old 04-07-2008, 01:47 PM   #4
cyanescent
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
I have installed gentoo on a G5, which is also a new-world mac.

you will need to use the linux tool mac-fdisk or the partitioning tools provided on your OSX disks (was there even OSX with the G3?) to partition the disk. Also be aware that you need a yaboot boot partition, to get you into lilo/grub.

this url may help:

http://penguinppc.org/bootloaders/ya...index.en.shtml

after that little headache you're home and dry in regular linux-land :-)
 
Old 04-07-2008, 01:48 PM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
The slackintosh distro comes with a special version of fdisk called pdisk, but it is renamed to fdisk I believe. It is capable of handling the different type of partition map used for the macs.

Here's a link to a HOWTO that should get you started:

http://slackintosh.workaround.ch/pub...2.0/README.TXT

just follow the instructions carefully -you need a small bootstrap partition to hold some firmware stuff. Other than that your partitioning needs should be normal -as for any other distro -easiest thing is to just use a single main partition for the whole installation(other than the bootstrap one).
 
Old 04-07-2008, 02:05 PM   #6
Doctorzongo
Member
 
Registered: Mar 2008
Distribution: Fedora 11
Posts: 72

Rep: Reputation: 16
Quote:
Originally Posted by cyanescent View Post
(was there even OSX with the G3?)
I do not believe so.

To the original asker of the question: I have not really used Slackware too much, but type cfdisk and and a screen for partioning will show up. Highlight the Mac OS one and resize it, then create 2 new partitions. One (Aim for 256 if you can get it -- I don't know how much HD Space those Macs would have.) for swap.

Then another, bigger one for Slackintosh.

A few tips for you: When I installed Slackware, I had trouble with internet connection. Edit your rc.inet1.conf (I believe that's the name) in /etc/rc.d and give yourself an IP Address and Gateway for your wired internet device.

To add a user, run /usr/sbin/adduser

To start KDE, type startx.
If there is an error, check out /etc/X11/xorg.conf. For most distro's, I have to change the driver to 'vesa' before I can boot into the X Window System and figure out how to actually fix it.
 
Old 04-07-2008, 03:21 PM   #7
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
There are some x86'ers here under the impression that slackware = slackintosh..... cyanescent and gnashley have the right of it. Been awhile since I installed slackintosh so I'm not sure about the renaming of binaries but the gentoo ppc minimal livecd comes with mac-fdsik, so should slackintosh.

From memory, The first 2 partitions have to be a partition_map(1st 63 sectors) and bootstrap(next 800k) respectively. The 'i' and 'b' options respectively will also create those for you. Other than that you can dice it up any way you see fit.

This is from my G3 pismo at the command prompt after running mac-fdisk:
Code:
Command (? for help): p
/dev/hda
       #                    type name                 length   base     ( size )  system
/dev/hda1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/hda2         Apple_Bootstrap bootstrap              1600 @ 64       (800.0k)  NewWorld bootblock
/dev/hda3         Apple_UNIX_SVR2 Swap                1024000 @ 1664     (500.0M)  Linux swap
/dev/hda4               Apple_HFS OSX                20971520 @ 1025664  ( 10.0G)  HFS
/dev/hda5         Apple_UNIX_SVR2 Linux              20971520 @ 21997184 ( 10.0G)  Linux native
/dev/hda6         Apple_UNIX_SVR2 Local              35171456 @ 42968704 ( 16.8G)  Linux native
As you can see, that's a triple boot between OSX Tiger, Slackintosh and my DIY build... Your right, it is a little confusing partitioning for ppc but that's one of the few differences between x86 and ppc.

BTW, OSX does run on _some_ G3's but they didn't ship with it. And cfdisk will do you no good on ppc. Stick with mac-fdisk first and pdisk second.

Last edited by jong357; 04-10-2008 at 10:59 PM.
 
Old 04-08-2008, 12:57 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
About fdisk/pdisk/mac-fdisk, Slackintosh uses pdisk which is renamed as mac-fdisk, but there is a symlink to fdisk so that there is less confusion and that programs which call fdisk will work correctly. So, you should be able to call the program with either mac-fdisk or just fdisk.
 
Old 04-08-2008, 02:33 AM   #9
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Just for the record, a NewWorld G3 can run up to OS 10.4.x. But as of Leopard (OS 10.5) the G3 is no longer supported. I have run OS 10.4 on a few G3s to great effect in the past.

Running OS X on beige G3 needs some special attention, but it can still be done.
 
Old 04-08-2008, 04:19 AM   #10
sid77
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackintosh 12.1/current Slackware 13.0 Slackware64 13.0
Posts: 19

Rep: Reputation: 0
Quote:
Originally Posted by jong357 View Post
From memory, The first 2 partitions have to be a partition_map(1st 63 sectors) and bootstrap(next 800k) respectively.
The first partition HAS to be the partition map, that's a requirement. And never ever tried to do something with it, better to leave it alone
The second partition could be anything you want, using it as the 800k boot block has the really useful side effect of having the mac booting it if anything will ever go wrong with yaboot or Mac OS X bootx.

Anyway, anything answered here was correct, thank you guys for being faster than me :-P
 
Old 04-08-2008, 01:15 PM   #11
Robert Litt
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Smile What I've done....

Gentlemen,

Thank you for all your help...
I used cfdisk, not fdisk or pdisk...I just wasn't sure of the numbers and what to call each partition, there is enough help in the replies for me to figure it out...we do not want to keep the Apple software, I want Slackintosh only on the machines.

They are all 333mhz cpu and 128 ram, currently running OS9.2 poorly...

I'll let you know!

School tech teacher
 
Old 04-08-2008, 01:31 PM   #12
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
cfdisk supports apple partitions? It never used to... Let us know after you get it up and running. I still have my doubts about that but I'm frequently wrong...

Regardless of whether slackintosh only needs a linux partition, yaboot still needs "apple" related partitions, thus the need for mac-fdisk/pdisk....

Last edited by jong357; 04-08-2008 at 01:34 PM.
 
Old 04-08-2008, 01:51 PM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
cfdisk is just a curses wrapper for fdisk, but as fdisk is really pdisk on Slackintosh, I guess it has not been ported. It doesn't matter really.
 
Old 04-10-2008, 04:58 PM   #14
Robert Litt
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Question Getting there, need more help

Thank you all for all your input.

I really want to make this work. Out of Love for Linux and as an opportunity to make old machines work with a new smile in an underfunded school setting.

I'm having a tough time. I used mac-fdisk...that was best, pdisk was not recognized, fdisk was...I'm trying to install Slackintosh 12.0...I hope that's correct, maybe an earlier version for g3 333mhz macs boosted with 128 ram is needed...

I am just a newbie at this partition thing. I want to run only Slackintosh, I do not need a dual boot, preserving the Apple OS. I get to the partition stage and am just ignorant. I don't know what to put when the command prompt says "First block"...I can see that the machine has 4001258 blocks, but I feel like the Apples OS is still there...I keep getting "Length and Base are not within an existing free partition" no matter what I put. I tried to copy the size of each block jong357 showed me on his reply(yes, I left out the partitions not relelvant , his was a triple boot). the tutorial from gnashley at http://slackintosh.workaround.ch/pub...2.0/README.TXT
was supremely helpful....I did "i" command in mac-fdisk first, it said it had a partition map, I did "b" command next to get a bootstrap and that's where I could not proceed. I tried to use "c" to put in a Linux partition, but again, I don't know what numbers to type when it says "first block".

Do I need to initialize the disk and erase everything first?
What are the numbers to successfully partition?

I am not a green newbie...I am an intermediate. I run a lab of PCs on Ubuntu and have studied Linux commands online.

Thanks again.....what you teach me I teach to other teachers!
 
Old 04-11-2008, 12:02 AM   #15
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea. That's why everyone uses cfdisk on x86. But again, it does matter on ppc and you can't use cfdisk. It's good to know how to use fdisk anyway. mac-fdisk and fdisk partition the same way. cfdisk is one of those crutch type programs if ya' get my meaning.

I'm letting a friend borrow my pismo so I'll have to reference fdisk in order to help you. mac-fdisk has a few commands that x86 fdisk doesn't but it shouldn't matter too much. BTW, I wrapped code tags around my earlier post. It should help in dissecting/understanding what is happening.

type mac-fdisk and get to it's prompt. type "?" and then enter to get a help list. Then type "p" so it'll print out your partition layout.

Make sure your first 2 partitions matches what I have in my earlier post. I'll explain the first partition (/dev/hda1).

The first entry is the partition number - /dev/hda1
The second entry is the file system - Apple_partition_map
The third entry is the volume name - Apple
The fourth entry is total size in blocks of the partition - 63 (blocks)
The fifth entry is the starting block of the partition on the HDD - 1 (very first block)
The sixth entry is the actual size of the partition in human readable form (kb, mb, gb)
The seventh entry is a generic description of what the partition is - Partition map
-
So looking at all that info on the first line we can deduce:

It's the first partition on /dev/hda, is formatted for Apple_partition_map, with a name of Apple, encompasses 63 blocks on the HDD, starts at the first block, is 31.5KB big and is used as a Partition map.

Make sure your first 2 partitions match what I have exactly. It's just good form and allows for the most flexibility in the long haul, regardless if only one is required. After all, both partitions only take up 831.5 KB... I don't think you'll miss the space ( even on a 2gb hard drive).

If the first 2 don't match what I have, hit the "d" key for delete ( check your help and make sure it's the d key). It should ask for a partition number in the form of 1, 2, 3, 4 ect. How many partitions you currently have actually. start deleting every partition until your just left with the first 2 correct ones. After every delete, press the "p" key to see the new layout. If the first 2 partitions aren't right either, just delete every partition until your left with all free space. Then you can create the first 2 from scratch with the commands I gave earlier. After every creation of a partition, hit the "p" key to see the changes.

The problem your hitting, I think, is that you have to delete every partition except for the first 2 before you can create a new main Slackintosh one.

So.... Once your layout looks like mine for the first 2, create a new partition. It'll ask for the starting block (WHICH MUST BE FREE/UNPARTITIONED SPACE!). Looking at your "p"rint list command, /dev/hda2 has a length of 1600 blocks and it's first block starts at block 64 (the very next block found after /dev/hda1). So, the first free block we want to use for /dev/hda3 is block 1664. That's the starting block you input when it asks.

Working from memory here because I don't want to erase anything on my HDD. Next it should ask for an ending block.

From looking at my print out, you can get a rough estimate of how many blocks equals what size in mb and gb. You probably will want a swap partition seeing as how you only have 128mb of memory. Dunno. Depends on what the computers are going to be used for. Sounds like you have a 4gb HDD roughly so you'll need to sit and think about how to allocate space to it's maximum advantage. I'd make atleast a 100 or 200mb swap partition, but think it out carefully. You don't want to find out later that you didn't allocate enough swap space. On the same token, you don't want to allocate 1gb for swap and then find out 6 months later that you can't install any more software to your Slackintosh partition. Anyway, have your swap as /dev/hda3.

After you input an ending block for your swap, it should ask what kind of file system you want to use for it. It's been a couple years since I used mac-fdisk but it may ask for a number to identify your type of partition. It's 82 on x86 fdisk for a "swap" partition. Check your "?" command again. There may be an option to list partition types. It's "l" on fdisk.

Any way, after answering those three things; starting block, ending block and partition type, it should make the partition for you. Hit the "p" key to see the changes.

Then do the same thing for /dev/hda4 only use an ID number of 83 for a linux partition. That's the one you want to actually install Slackintosh on. When it aks for the ending block of /dev/hda4, look at your "p" command from after making a swap. It should give you the last block of the left over free space. Use that number, which from what you've said, should be 4001258.

Sorry for the long winded/pulling from memory explanation but it should get you going down the right path. Post back with further questions if you hit another snag.

It'll all make sense the more time you spend at mac-fdisk's prompt. play around with it. You can't do any harm seeing as how your starting fresh anyway. If you make a mistake, just delete all the patitions and start again. It's alot like the grub prompt. Makes people panic because they are too used to gui's and automated configuration.

Last edited by jong357; 04-11-2008 at 01:11 AM.
 
  


Reply

Tags
partitioning, ppc, slackintosh



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Teacher can't make Ubuntu install and work on imacs Robert Litt Linux - Newbie 1 06-13-2006 09:26 PM
Packages for Slackintosh gnashley Amigo 1 04-28-2006 08:36 PM
Slackintosh, yes you read right... Cynagen Linux - Laptop and Netbook 12 12-05-2005 01:51 PM
Knoppix Live For School IMacs sloik2000 Linux - Hardware 0 01-04-2005 03:48 PM
slackintosh carboncopy Slackware 1 01-26-2004 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration