Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with partitions, cfdisk, mac-fdisk....getting crazy
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
Asaak
n00b
n00b


Joined: 07 May 2006
Posts: 44

PostPosted: Tue Dec 04, 2007 10:57 pm    Post subject: problems with partitions, cfdisk, mac-fdisk....getting crazy Reply with quote

Hi all!

I have an ibook G4. I used to have gentoo and tiger in my ibook. A few days ago I install leopard but I decided to erase it because of problems with battery and other staff. Now I have a big problem. I put my gentoo 2005.1 live CD for ppc and I can see this using mac-fdisk:

Code:

/dev/hda
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 @ 92044480  (800.0k)  NewWorld bootblock
/dev/hda3         Apple_UNIX_SVR2 mac                 92044416 @ 64        ( 43.9G)  Linux native
/dev/hda4         Apple_UNIX_SVR2 aa                  25164160 @ 92046080  ( 12.0G)  Linux native

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


Basically I have two problems:

Problem one:

If I try to erase the two partitons number 3 and 4..the problem is that the result is not a free partition of size 3 plus size 4...I get something like this:

Code:

/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 @ 92044480  (800.0k)  NewWorld bootblock
/dev/hda3              Apple_Free Extra               92044416 @ 64        ( 43.9G)  Free space
/dev/hda4              Apple_Free Extra               25164160 @ 92046080  ( 12.0G)  Free space

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


They are marked as free space but they don't join each other. why? I tried to make 3 and 4 reiserfs partitions and then erase them but the same happen.

Another big problem is that mac-fdisk is the only way to see the partitions. with fdisk and cfdisk partitions are not shown. With a kubuntu distro I could see that partitions are marked as Hidden..but I don't know why.....

If this problem could be solved, I will come across with the second problem:

I want to have an 8GB partition for linux and the rest for mac. Partition has to be an HFS+ partition because if not the tiger installer do not find the disk. How can I do it?

Thank you and sorry for my english!!!
_________________
AM2 3800+ X2 | 2GB DDR2 667 | ASUS M2N-SLI DELUXE | PIONEER DVD-RW DVR-111D | Sapphire Radeon X1900GT | Samsung 250Gb SATAII | SEAGATE 200 Gb SATA II |
Dell UltraSharp™ 3007WFP-HC
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1609
Location: U.S.A.

PostPosted: Tue Dec 04, 2007 11:57 pm    Post subject: Reply with quote

It's because they're not really adjacent partitions.

Some partitioning tools (including mac-fdisk) allow you to assign partition numbers that do not match the position in the sequence. You can see this is the case by looking at the starting and ending blocks of each partition.

To make this more apparent, use the mac-fdisk 'P' command, which will list the partitions in order of base address. In reality, they are in this order:
Code:
/dev/hda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/hda3         Apple_UNIX_SVR2 mac                 92044416 @ 64        ( 43.9G)  Linux native
/dev/hda2         Apple_Bootstrap bootstrap               1600 @ 92044480  (800.0k)  NewWorld bootblock
/dev/hda4         Apple_UNIX_SVR2 aa                  25164160 @ 92046080  ( 12.0G)  Linux native

Since you appear to be deleting all the data anyway (both your OS X and Linux partitions) the easiest way to fix this is to reinitialize the partition table (the 'i' command in mac-fdisk), then create a new apple bootstrap partition (the 'b' command). The gentoo handbook (ppc version) walks through those steps in detail.

fdisk and cfdisk do not work with Apple disk labels. I may be mistaken, but I believe they only work with MSDOS disk labels (i.e. PCs). You can also use GNU parted (which does work with Apple disk labels). Also note that mac-disk is also known as pdisk in some circles.

I don't dual-boot with OS X, so if you get another answer on this part, ignore my answer:
I'd install OS X first specifying that it should only use 8 GiB, then add Linux. If the OS X installer doesn't let you specify the size of partition to create, then use mac-fdisk first: initialize disk, create bootstrap partition, create 8 GiB partition, create Linux partition using rest of disk (as a place-holder), then delete 8 GiB partition and tell OS X to use the unallocated space. I am assuming it is best to put OS X up front, which may not be correct.
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
Asaak
n00b
n00b


Joined: 07 May 2006
Posts: 44

PostPosted: Wed Dec 05, 2007 9:37 am    Post subject: Reply with quote

ok! thank you for this usefull answer!! Now I only have the second problem, how to create a HFS+ partition to install MAC OSX Tiger in the remaining free space???

Thanks!
_________________
AM2 3800+ X2 | 2GB DDR2 667 | ASUS M2N-SLI DELUXE | PIONEER DVD-RW DVR-111D | Sapphire Radeon X1900GT | Samsung 250Gb SATAII | SEAGATE 200 Gb SATA II |
Dell UltraSharp™ 3007WFP-HC
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1609
Location: U.S.A.

PostPosted: Fri Dec 21, 2007 2:09 am    Post subject: Reply with quote

Sorry, I had clicked "stop watching" and only happened back along this.

Did you figure your remaining question out, or do you still need help?

Remember I suggested to use MacOS to create the MacOS partitions.

But this might be useful in either case:
http://gentoo-wiki.com/HOWTO_hfsplus

Ask again if not.
And if you're all set, put [Solved] in your original post's subject line. :)
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