Can't flash bootloader in arduino but can set fuses with AVRdudess using USBASP

Hello,
I know this again. I've read alot from other people on this same subject but i can't find a solution that applies to me. I want to flash a new bootloader to arduino pro mini but i keep getting following error:

avrdude: error: program enable: target doesn't answer. 0 
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

I have seen this error before on the forum except for the 0 behind it, usualy its a 1.

What i don't understand is that i can read and write the fuses just fine with AVRdudess (not a spelling mistake) but i cant flash the bootloader with arduinoIDE. Dont both processes use the same pins?

The fuses i can read from the pro mini:
L:0xFF
H:0xDA
E:0xFD
LB:0xCF

My USBASP has a JP4 to slow it down but i dont know if the firmware supports it, anyway the jumper is closed.

Allso tried slowing down AVRdude by editing avrdude.conf, but no result.

Could the solution be to set the fuses to a lower internal freq? i have no idea?

Thanks

I just noticed if i try to write the E fuse with 0x06 instead of 0xFE i get an error in avrdudess:

Reading | ################################################## | 100% 0.00s

avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
0xfe != 0x06
avrdude.exe: verification error; content mismatch

avrdude.exe done. Thank you.

The L fuse gets written and read without any problems

alias:

avrdude: error: program enable: target doesn't answer. 0 

avrdude: initialization failed, rc=-1
        Double check connections and try again, or use -F to override
        this check.

Which operating system are you using? I believe the error is caused by a driver problem, which only occurs with the version of AVRDUDE distributed by Arduino, but not the version distributed with AVRDUDEss.

alias:
avrdude.exe: verification error, first mismatch at byte 0x0000
0xfe != 0x06
avrdude.exe: verification error; content mismatch

There was a recent change in how AVRDUDE handles unused fuse bits, which broke compatibility with the fuse values that worked with previous AVRDUDE versions. 0xfe and 0x06 are functionally identical because extended fuse bits 3-7 on the ATmega328P are all unused. In this respect, the version of AVRDUDE distributed by Arduino is superior. They have made a change that allows it to work with the old fuse values.