SD Card 8 Gig works 40 Gig no

Well as I look at it - its 32 GB.
I tried to format it with SD's formatter and it failed. I guess I might simply have a bad card although it works fine under Windows.