View previous topic :: View next topic |
Author |
Message |
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1759 Location: PB, Germany
|
Posted: Tue May 29, 2012 12:16 pm Post subject: Reinstalling PowerBook G4 OSX 10.4 partition |
|
|
This is my partition layout: Code: | # mac-fdisk -l
/dev/sda
# type name length base ( size ) system
/dev/sda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/sda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/sda3 Apple_UNIX_SVR2 swap 2928024 @ 1664 ( 1.4G) Linux swap
/dev/sda4 Apple_UNIX_SVR2 root 31457280 @ 3073664 ( 15.0G) Linux native
/dev/sda5 Apple_UNIX_SVR2 home 269557384 @ 34530944 (128.5G) Linux native
/dev/sda6 Apple_HFS Apple_HFS_Untitled_2 8493464 @ 304088328 ( 4.0G) HFS
/dev/sda7 Apple_UNIX_SVR2 boot 143976 @ 2929688 ( 70.3M) Linux native
/dev/sda8 Apple_Free Extra 16 @ 312581792 ( 8.0k) Free space | Booting into OSX was broken for a long time. When booting only the apple icon was flashing but did not continue. No logs either and no rescue shell. Maybe the 4G space was getting too small.
Since I'm not versed on OSX I decided to re-install that partition. I only need it to prepare Battery updates and to fetch information about my new battery I just purchased. Can't get that from /sys or /proc.
I boot the install disc of OSX 10.4, erased and formatted the 4G HFS as extended journaled HFS. But the install procedure just returns with "..there have been errors, abort.." or something similar. For not restarting every time I opened a terminal and killed the install process in order to start a new one. But then I was offered a log file of the installation which says that setting the boot device has failed.
So I guess the writing of the native OSX boot manager has failed. How can I repair that without loosing my current partition setup? Loosing yaboot is not the problem if I can recover it by chroot from live CD.
4G should not be the problem, disabling everything at OSX installation results in a 2G installation. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1759 Location: PB, Germany
|
Posted: Tue May 29, 2012 3:12 pm Post subject: |
|
|
Maybe this can be useful. There should be some space around 128M left free after the HFS partition.
I'll check that. But what the hell should that space be used for? Later I would try to resize the partition back to full size.[/url] _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1759 Location: PB, Germany
|
Posted: Sat Jun 02, 2012 4:25 pm Post subject: |
|
|
I tried to erase that HFS partition and recreate it with a smaller size.
Bad thing: My home partition which is cryptsetup/LUKS encrypted is not readable anymore: Device /dev/sda6 is not a valid LUKS device.
What I did:- First I tried to install OSX on the HFS partition as already mentioned. Then I tried to re-format that partition using the Disk Utility from OSX10.4 install disk. Here I already wondered, that the order of the partitions changed in the Utility.
- Booted up Gentoo, and removed the HFS partition using parted (rm). I recreated the HFS partition with a smaller size (mkpart), using the GB values as start and size. Maybe the values here were not accurate and I cut the home partition beside.
- I deleted that partition again, this time using mac-fdisk. Partition layout at that moment:
Code: | /dev/sda
# type name length base ( size ) system
/dev/sda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/sda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/sda3 Apple_UNIX_SVR2 swap 2928024 @ 1664 ( 1.4G) Linux swap
/dev/sda4 Apple_UNIX_SVR2 boot 143976 @ 2929688 ( 70.3M) Linux native
/dev/sda5 Apple_UNIX_SVR2 root 31457280 @ 3073664 ( 15.0G) Linux native
/dev/sda6 Apple_UNIX_SVR2 home 269557384 @ 34530944 (128.5G) Linux native
/dev/sda7 Apple_Free Extra 8493480 @ 304088328 ( 4.1G) Free space |
Why is the boot partition here on sda4 and not on sda7 anymore without changing the location? Therefore home is now sda6 instead of sda5 and still not readable: Code: | $ LC_ALL=C ryptsetup luksOpen /dev/sda6 _dev_home
Device /dev/sda6 is not a valid LUKS device. |
I tried to recreate the same partition layout and recreated the HFS partition as before: Code: | $ mac-fdisk -l
/dev/sda
# type name length base ( size ) system
/dev/sda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/sda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/sda3 Apple_UNIX_SVR2 swap 2928024 @ 1664 ( 1.4G) Linux swap
/dev/sda4 Apple_UNIX_SVR2 boot 143976 @ 2929688 ( 70.3M) Linux native
/dev/sda5 Apple_UNIX_SVR2 root 31457280 @ 3073664 ( 15.0G) Linux native
/dev/sda6 Apple_UNIX_SVR2 home 269557384 @ 34530944 (128.5G) Linux native
/dev/sda7 Apple_HFS Apple_HFS_Untitled_2 8493464 @ 304088328 ( 4.0G) HFS
/dev/sda8 Apple_Free Extra 16 @ 312581792 ( 8.0k) Free space |
Home still not readable.
The only difference still is the ordering. Is there any chance to get that home partition back? Is data affected by changing the partition table so that I just try different partition tables and try cryptsetup to read it?
Is using parted instead of mac-fdisk generally bad and can break partitions? Did re-formatting with OSX already break my partition table, maybe even data of the partition beside?
app-admin/testdisk is able to read mac partitions. But the quick scan only finds partitions as mentioned above, the deep scan finds a lot of potential partitions with the same names. But the home partition did not even change its location reading the lists above... please help. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1759 Location: PB, Germany
|
Posted: Sun Jun 03, 2012 10:15 am Post subject: |
|
|
I found the command "reorder" on mac-fdisk and re-arranged the original order of partitions, so boot is now sda7 again as before: Code: | /dev/sda
# type name length base ( size ) system
/dev/sda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/sda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/sda3 Apple_UNIX_SVR2 swap 2928024 @ 1664 ( 1.4G) Linux swap
/dev/sda4 Apple_UNIX_SVR2 root 31457280 @ 3073664 ( 15.0G) Linux native
/dev/sda5 Apple_UNIX_SVR2 home 269557384 @ 34530944 (128.5G) Linux native
/dev/sda6 Apple_HFS Apple_HFS_Untitled_2 8493464 @ 304088328 ( 4.0G) HFS
/dev/sda7 Apple_UNIX_SVR2 boot 143976 @ 2929688 ( 70.3M) Linux native
/dev/sda8 Apple_Free Extra 16 @ 312581792 ( 8.0k) Free space |
But LUKS is still not readable from sda5.
I tried luksDump from every partition, no success. I tried cryptsetup repair /dev/sda5, no success. Even if parts of the end of the partition were damaged, it should be possible to find at least some LUKS header around? _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
|