I did a stupid thing... Not knowing how to use hpmount (of hfsplus), I ran 'hpmount /dev/hda'. A while ago I had put myself in the disk group (can't remember why), so I had write permission to /dev/hda.
/sbin/mac-fdisk -l /dev/hda now returns nothing. My system is still running, but I have the feeling that rebooting would be unpleasant. How can I reconstruct the partition map? df and /proc/partitions have some information: spooky$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda11 1032088 144300 835360 15% / /dev/hda13 2064208 1593620 365732 82% /home /dev/hda14 495844 381031 89213 82% /var /dev/hda15 2064208 1814668 144684 93% /photo /dev/hda16 2064208 1739884 219468 89% /usr spooky$ cat /proc/partitions major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq 3 0 19535040 hda 182128 300566 2458956 3295240 155294 861994 3732712 28351960 -44 41433290 -1322175690 3 1 31 hda1 0 0 0 0 0 0 0 0 0 0 0 3 2 27 hda2 0 0 0 0 0 0 0 0 0 0 0 3 3 37 hda3 0 0 0 0 0 0 0 0 0 0 0 3 4 27 hda4 0 0 0 0 0 0 0 0 0 0 0 3 5 37 hda5 0 0 0 0 0 0 0 0 0 0 0 3 6 100 hda6 0 0 0 0 0 0 0 0 0 0 0 3 7 256 hda7 0 0 0 0 0 0 0 0 0 0 0 3 8 256 hda8 0 0 0 0 0 0 0 0 0 0 0 3 9 9767129 hda9 0 0 0 0 0 0 0 0 0 0 0 3 10 800 hda10 0 0 0 0 0 0 0 0 0 0 0 3 11 1048576 hda11 10109 9980 160706 189570 18445 35267 431448 3512910 0 980160 3706220 3 12 131072 hda12 11471 28094 316520 347430 7830 36837 363328 1055590 0 279710 1407130 3 13 2097152 hda13 13894 22890 169914 177570 15475 52787 438734 2510310 0 580990 2691650 3 14 512000 hda14 63488 131747 390484 1235170 74392 625891 1401758 11905470 0 1543830 13163750 3 15 2097152 hda15 3204 24259 174146 106320 815 7852 23580 155470 0 87230 269320 3 16 2097152 hda16 79851 82695 1245162 1237600 38336 103360 1073862 9212200 0 1753670 10464410 3 17 1783235 hda17 0 0 0 0 0 0 0 0 0 0 0 hda12 is swap. hda17 is free space. hda10 is my boot partition. hda9 is an hfs plus partition. The first eight partitions are the weird Mac OS ones. With the info I have now, it seems like I can (maybe) rescue my Linux setup. I would like to repair the Mac OS partitions, too, but I don't have anything important on them. Any ideas? thanks -grant