Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What is the deal with the partition table?
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
johntramp
Guru
Guru


Joined: 03 Feb 2004
Posts: 457
Location: New Zealand

PostPosted: Sat Oct 09, 2004 4:41 am    Post subject: What is the deal with the partition table? Reply with quote

I am installing gentoo onto my brother's g4 mac, I am very confused with this partition table on the mac harddrives.
Quote:
livecd dev # fdisk -l /dev/hda

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
livecd dev # mac-fdisk -l /dev/hda
/dev/hda
# type name length base ( size ) system
dump: name /dev/hda len 8
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Free Extra 78150680 @ 64 ( 37.3G) Free space
/dev/hda3 Apple_UNIX_SVR2 swap 1048576 @ 78150744 (512.0M) Linux swap
/dev/hda4 Apple_UNIX_SVR2 ext3 77102168 @ 79199320 ( 36.8G) Linux native

Block size=512, Number of Blocks=156301488
DeviceType=0x0, DeviceId=0x0

livecd dev # mkswap /dev/hda3
/dev/hda3: No such file or directory
livecd dev #
Can someone explain this to me? Also , what do I have to do to make a mac os file system in hda2?

Thanks
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Oct 09, 2004 5:46 am    Post subject: Reply with quote

Please use mac-fdisk to partition the drive instead of fdisk, fdisk won't create the correct partition information. If you're going to be dual booting (since you wanted a Mac fs in hda2) it's better to install the MacOS first, then install linux. The Mac OS will create the mac fs for you.

hda1 is the apple partition table, you shouldn't remove this. hda2 should be your bootstrap partition, this is created from mac-fdisk.

Try mac-fdisk and see if that helps, please read the ppc-handbook as well, it has lots of useful install information:
http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?full=1
Back to top
View user's profile Send private message
johntramp
Guru
Guru


Joined: 03 Feb 2004
Posts: 457
Location: New Zealand

PostPosted: Sat Oct 09, 2004 12:35 pm    Post subject: Reply with quote

ok I see. Also, the other thing which I didn't make very obvious is that there is no /dev/hdax just /dev/hda even after writing the partition table and then rebooting. Is this usual??
Quote:
livecd dev # ls -l hd*
lr-xr-xr-x 1 root root 32 Oct 9 12:23 hda -> ide/host0/bus0/target0/lun0/disc
lr-xr-xr-x 1 root root 30 Oct 9 12:23 hdc -> ide/host1/bus0/target0/lun0/cd
no hda1 hda2 hda3 etc... :S
Back to top
View user's profile Send private message
johntramp
Guru
Guru


Joined: 03 Feb 2004
Posts: 457
Location: New Zealand

PostPosted: Sun Oct 10, 2004 3:45 am    Post subject: Reply with quote

solved :)

I ran
Code:
 dd if=/dev/zero of=/dev/hda   
and then redid the partition table and it is working now
I think the problem is that I used fdisk before I found out about mac-fdisk and that screwed it all up. :)
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