AVR DUDE and arduino nano v3.0

Hello,

I want to be able to read and change the lock bits LB1 LB2 BLB01 BLB02 BLB11 and BLB12 bits.

I'm using UBUNTU and I have TWO arduino nano v3.0. I used one as a ArduinoISP, and connected that to the other ones programming pins.

I tried using avrdude to read the lock bits just to see what the bits were before changing them, but it keeps reading 0x0.. Anybody knows how to read and write the lock bits using ArduinoISP and avrdude?

Here is what happenned:

user@user-Aspire-8951G:~/tmp$ sudo avrdude -c arduino -p m328p -P /dev/ttyUSB0 -b 19200 -F -U lock:r:"lock.txt":h

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.06s

avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
avrdude: reading lock memory:

Reading | ################################################## | 100% 0.03s

avrdude: writing output file "lock.txt"

avrdude: safemode: Fuses OK

avrdude done. Thank you.

user@user-Aspire-8951G:~/tmp$ cat lock.txt
0x0