I've been trying to set up a shared partition between OSX and Debian, creating and deleting partitions with gparted mostly, but then with OSX's Disk Utility because OSX won't mount partitions created with gparted.

I finally settled on a non-journaled hfs+ partition to share files, which worked, but for some reason Debian kept seeing two versions of it at the same time, "/dev/sda11" and /dev/sda12" (sda12 was the correct one, sda11 was the 128M buffer space that OSX leaves between partitions... why? who knows?)

I deleted the shared partition altogether, but Debian keeps seeing /dev/sda11 anyway.

I'm afraid my partition table might be screwed now and I don't know how to fix it.

Here's the output from fdisk -l:
Code:
emac:/dev# 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_Driver43 Macintosh                  56 @ 64         ( 28.0k)  Driver 4.3
/dev/sda3          Apple_Driver43 Macintosh                  56 @ 120        ( 28.0k)  Driver 4.3
/dev/sda4        Apple_Driver_ATA Macintosh                  56 @ 176        ( 28.0k)  Unknown
/dev/sda5        Apple_Driver_ATA Macintosh                  56 @ 232        ( 28.0k)  Unknown
/dev/sda6          Apple_FWDriver Macintosh                 512 @ 288        (256.0k)  Unknown
/dev/sda7      Apple_Driver_IOKit Macintosh                 512 @ 800        (256.0k)  Unknown
/dev/sda8           Apple_Patches Patch Partition           512 @ 1312       (256.0k)  Unknown
/dev/sda9              Apple_Free Extra                  262144 @ 1824       (128.0M)  Free space
/dev/sda10              Apple_HFS Untitled           1146363736 @ 263968     (546.6G)  HFS
/dev/sda11             Apple_Free Extra               103636024 @ 1146627704 ( 49.4G)  Free space

Block size=512, Number of Blocks=1250263728
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 120 for 36, type=0xffff
3: @ 176 for 21, type=0x701
4: @ 232 for 34, type=0xf8ff

/dev/hda
        #                    type name                  length   base      ( size )  system
/dev/hda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/hda2         Apple_UNIX_SVR2 swap                10156251 @ 419692608 (  4.8G)  Linux swap
/dev/hda3               Apple_HFS Untitled           419430400 @ 262208    (200.0G)  HFS
/dev/hda4         Apple_Bootstrap boot                    3907 @ 64        (  1.9M)  NewWorld bootblock
/dev/hda5         Apple_UNIX_SVR2 Ubuntu              58593750 @ 429848859 ( 27.9G)  Linux native
/dev/hda6         Apple_UNIX_SVR2 Debian              78125001 @ 488442609 ( 37.3G)  Linux native
/dev/hda7              Apple_Free Extra                 258237 @ 3971      (126.1M)  Free space
/dev/hda8              Apple_Free Extra               58574838 @ 566567610 ( 27.9G)  Free space

Block size=512, Number of Blocks=625142448
DeviceType=0x0, DeviceId=0x0
Here's the output from parted -l:
Code:
emac:/dev# parted -l
Model: WDC WD3200AAJB-00J3A0 (ide)
Disk /dev/hda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: mac

Number  Start   End     Size    File system  Name      Flags
 1      512B    32.8kB  32.3kB               Apple
 4      32.8kB  2033kB  2000kB  hfs          boot      boot
 3      134MB   215GB   215GB   hfs+         Untitled
 2      215GB   220GB   5200MB  linux-swap   swap      swap
 5      220GB   250GB   30.0GB  ext3         Ubuntu
 6      250GB   290GB   40.0GB  ext3         Debian


Model: WDC WD64 00AACS-00G8B1 (scsi)
Disk /dev/sda: 640GB
Sector size (logical/physical): 512B/512B
Partition Table: mac

Number  Start   End     Size    File system  Name             Flags
 1      512B    32.8kB  32.3kB               Apple
 2      32.8kB  61.4kB  28.7kB               Macintosh
 3      61.4kB  90.1kB  28.7kB               Macintosh
 4      90.1kB  119kB   28.7kB               Macintosh
 5      119kB   147kB   28.7kB               Macintosh
 6      147kB   410kB   262kB                Macintosh
 7      410kB   672kB   262kB                Macintosh
 8      672kB   934kB   262kB                Patch Partition
10      135MB   587GB   587GB   hfs+         Untitled
I can't figure out how to get cfdisk or sfdisk to work, maybe they are n/a for my drives?

The drive I'm trying to get working is /dev/sda (an external firewire drive), /dev/hda is my primary (internal) drive but I notice fdisk and parted disagree on how many partitions that one has as well.

The output from parted agrees with what I see in gparted. However the output from fdisk -l still shows /dev/sda11 which the gui keeps offering to mount for me.

FYI here are the "intentional" partitions:

hda:
/dev/hda3 - My main OSX partition.
/dev/hda5 - My Ubuntu partition.
/dev/hda6 - My Debian partition.
/dev/hda"7,8" - What should be blank space, I left it just in case I want to try a third Linux distro .

sda:
/dev/sda10 - My OSX backup partition.
/dev/sda"11" - What should be blank space, where I'd created originally a FAT32 and then a HFS+ non-journalled partition, but currently have "nothing".