ATMega168 and SD Card [Can't get it work].. PLease help.

If I use 328, everything is fine, but when i use 168, doesn't work.

Is "You don't have enough memory" that hard to understand?

The SD class reserves 512 bytes for a buffer FOR EACH OPEN FILE. Since a 168 has 1024 bytes of memory, the single buffer uses half of it.