Re: Mac partitioning probs
On Sun, 4 Mar 2001, Taro Fukunaga wrote: What kind of partitions do you have on sda? You need one root and one swap at least. I made (in order, if I recall correctly): 250Mb Swap 125Mb Root 125Mb Tmp 500Mb Var 2Gb Usr remainder (around 1.3Gb I think) Home And there was the (I think) 32Kb partition map at the very beginning. Matthew.
Re: Mac partitioning probs
On Sun, 4 Mar 2001, Ethan Benson wrote: My next problem is that the kernel doesn't seem interested in recognising the partition table that I create on the disk. what kernel? did you compile it yourself? if so it looks very much like forgot to turn on support for mac partition tables. It's the Debian install kernel from /debian/dists/potato/powerpc/powermac/ (or something similar, I forget the exact URL). Partition check: sda: sda1 something is strange here, it sees one partition... mac-fdisk will happily display what's on sdb (the MacOS disk) and on sda (where Debian will live). post the output of mac-fdisk -l /dev/sda Will do when I get home tonight. For now, we have: I made (in order, if I recall correctly): 250Mb Swap 125Mb Root 125Mb Tmp 500Mb Var 2Gb Usr remainder (around 1.3Gb I think) Home And there was the (I think) 32Kb partition map at the very beginning. Matthew.
Re: Mac partitioning probs
My next problem is that the kernel doesn't seem interested in recognising the partition table that I create on the disk. Did that disk have a DOS partition table on it before? I've had to erase the first few megs of a disk in order to get it to honor the Mac partition table instead of the old DOS partition table. It's a matter of partition table parse order (stick the mac_partition call before dos_partition in genhd.c and it might work without overwriting). Michael
Re: Mac partitioning probs
On Mon, 5 Mar 2001, Michael Schmitz wrote: My next problem is that the kernel doesn't seem interested in recognising the partition table that I create on the disk. Did that disk have a DOS partition table on it before? I've had to erase the first few megs of a disk in order to get it to honor the Mac partition table instead of the old DOS partition table. It's a matter of partition table parse order (stick the mac_partition call before dos_partition in genhd.c and it might work without overwriting). Ah, I think you have probably hit the nail on the head there. I'll try that tonnight and report back. Many thanks, Matthew.
Re: Mac partitioning probs
On Mon, Mar 05, 2001 at 11:48:30AM +, Matthew Kirkwood wrote: post the output of mac-fdisk -l /dev/sda Will do when I get home tonight. this is a long shot but did this disk used to have a x86 partition table on it? i am not certain that mac-fdisk zeros out the first block, and the way mac partition tables are structured its actually possible to have both a x86 partition table and a mac partition table at the same time, both with completely different data. if there is a x86 partition table the kernel will probably see it first. For now, we have: I made (in order, if I recall correctly): 250Mb Swap 125Mb Root 125Mb Tmp 500Mb Var 2Gb Usr remainder (around 1.3Gb I think) Home And there was the (I think) 32Kb partition map at the very beginning. yes there should be, apple partition tables are kept in a apple partition. wierd eh? also note if this is a newworld box you need to create an 800K Apple_Bootstrap partition if you want this disk to ever be bootable. -- Ethan Benson http://www.alaska.net/~erbenson/ pgpILtMSMiz1B.pgp Description: PGP signature
Re: Mac partitioning probs
On Mon, Mar 05, 2001 at 01:11:55PM +0100, Michael Schmitz wrote: My next problem is that the kernel doesn't seem interested in recognising the partition table that I create on the disk. Did that disk have a DOS partition table on it before? I've had to erase the first few megs of a disk in order to get it to honor the Mac partition table instead of the old DOS partition table. It's a matter of partition table parse order (stick the mac_partition call before dos_partition in genhd.c and it might work without overwriting). actually all thats needed is a very careful dd of /dev/zero. x86 partition tables are only 66 bytes (iirc) at the end of the first block (512 bytes). there is a mac partition signature at the first byte, but this is normally empty on x86 partitions since thats where the bootloader goes. -- Ethan Benson http://www.alaska.net/~erbenson/ pgpEgSBSzLqGc.pgp Description: PGP signature
Re: Mac partitioning probs
At 03:29 -0900 3/5/2001, Ethan Benson wrote: this is a long shot but did this disk used to have a x86 partition table on it? i am not certain that mac-fdisk zeros out the first block, and the way mac partition tables are structured its actually possible to have both a x86 partition table and a mac partition table at the same time, both with completely different data. if there is a x86 partition table the kernel will probably see it first. Actually I may be having this problem with a disk I'm monkeying around with right now. Is there a way to wipe the x86 partition from Linux or do I need to initialize it in MacOS first? Kevin
Re: Mac partitioning probs
On Mon, Mar 05, 2001 at 07:22:50AM -0600, Kevin van Haaren wrote: Actually I may be having this problem with a disk I'm monkeying around with right now. Is there a way to wipe the x86 partition from Linux or do I need to initialize it in MacOS first? you never need MacOS. if you don't mind trashing any mac partition table you have attempted to put on there this will do: dd if=/dev/zero of=/dev/hda bs=512 count=1 that will remove an x86 partition table completely. it will also ruin a mac partition table (since the signature for mac tables is stored on the very first byte of the disk) if you want to preserve the mac table and just nuke the x86 table i think this will do: dd if=/dev/zero of=/dev/hda bs=1 seek=446 count=66 doing a quick test this seems to work. -- Ethan Benson http://www.alaska.net/~erbenson/ pgpK6ye6I9FNQ.pgp Description: PGP signature
Re: Mac partitioning probs
At 05:02 -0900 3/5/2001, Ethan Benson wrote: you never need MacOS. if you don't mind trashing any mac partition table you have attempted to put on there this will do: dd if=/dev/zero of=/dev/hda bs=512 count=1 that will remove an x86 partition table completely. it will also ruin a mac partition table (since the signature for mac tables is stored on the very first byte of the disk) if you want to preserve the mac table and just nuke the x86 table i think this will do: dd if=/dev/zero of=/dev/hda bs=1 seek=446 count=66 doing a quick test this seems to work. This seemed to fix the problem i was having. It'll be a couple of runs of badblocks before I really trust it, but it did mkfs the correct partition at the correct size. Thanks, Kevin
Mac partitioning probs
Hi, Thanks to help from this list, I now have my Mac booting and starting the installer (via BootX). My next problem is that the kernel doesn't seem interested in recognising the partition table that I create on the disk. I followed Ethan Benson's instructions and partitioned the 4Gb disk that I chucked in there, but the kernel appears not to be parsing it. dmesg says: SCSI device sda: hdwr sector= 512 bytes. Sectors= 924 [4340 MB] [4.3GB] SCSI device sdb: hdwr sector= 512 bytes. Sectors= 1431760 [699 MB] [0.7GB] .. Partition check: sda: sda1 sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 /proc/partitions confirms this view. Interesting lines: major minor #blocks name 8 0462 sda 8 14441941 sda1 [sdb snipped] mac-fdisk will happily display what's on sdb (the MacOS disk) and on sda (where Debian will live). I've tried rebooting and restarting the installer in case the kernel thought that something was busy, but it's just the same next time. Anyone willing to offer ideas? Thanks, Matthew.
Re: Mac partitioning probs
Hi, What kind of partitions do you have on sda? You need one root and one swap at least. On Sun, Mar 04, 2001 at 09:11:46PM +, Matthew Kirkwood wrote: Hi, Thanks to help from this list, I now have my Mac booting and starting the installer (via BootX). My next problem is that the kernel doesn't seem interested in recognising the partition table that I create on the disk. I followed Ethan Benson's instructions and partitioned the 4Gb disk that I chucked in there, but the kernel appears not to be parsing it. dmesg says: SCSI device sda: hdwr sector= 512 bytes. Sectors= 924 [4340 MB] [4.3GB] SCSI device sdb: hdwr sector= 512 bytes. Sectors= 1431760 [699 MB] [0.7GB] .. Partition check: sda: sda1 sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 /proc/partitions confirms this view. Interesting lines: major minor #blocks name 8 0462 sda 8 14441941 sda1 [sdb snipped] mac-fdisk will happily display what's on sdb (the MacOS disk) and on sda (where Debian will live). I've tried rebooting and restarting the installer in case the kernel thought that something was busy, but it's just the same next time. Anyone willing to offer ideas? Thanks, Matthew. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Taro Fukunaga [EMAIL PROTECTED]
Re: Mac partitioning probs
On Sun, Mar 04, 2001 at 09:11:46PM +, Matthew Kirkwood wrote: Hi, Thanks to help from this list, I now have my Mac booting and starting the installer (via BootX). My next problem is that the kernel doesn't seem interested in recognising the partition table that I create on the disk. what kernel? did you compile it yourself? if so it looks very much like forgot to turn on support for mac partition tables. I followed Ethan Benson's instructions and partitioned the 4Gb disk that I chucked in there, but the kernel appears not to be parsing it. dmesg says: SCSI device sda: hdwr sector= 512 bytes. Sectors= 924 [4340 MB] [4.3GB] SCSI device sdb: hdwr sector= 512 bytes. Sectors= 1431760 [699 MB] [0.7GB] .. Partition check: sda: sda1 something is strange here, it sees one partition... sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 sdb seems ok /proc/partitions confirms this view. Interesting lines: major minor #blocks name 8 0462 sda 8 14441941 sda1 [sdb snipped] mac-fdisk will happily display what's on sdb (the MacOS disk) and on sda (where Debian will live). post the output of mac-fdisk -l /dev/sda -- Ethan Benson http://www.alaska.net/~erbenson/ pgpUpRKgjMhO7.pgp Description: PGP signature