Author

Topic: 1 data folder for win and linux (Read 1027 times)

legendary
Activity: 1937
Merit: 1001
August 29, 2012, 02:25:36 PM
#3
Thank you, i checked that box in windows too and now i can use the same wallet in linux Smiley  Cool
legendary
Activity: 1072
Merit: 1181
August 29, 2012, 09:07:15 AM
#2
Enable "detach databases at shutdown" in the menu, or use the -detachdb configuration option, shutdown cleanly, and remove (or just don't copy) the database/ subdirectory between the two system.

The database environment is very system dependent, and BDB (the database engine we use) does not guarantee backward compatibility between environments. When detached from the environment, the database files themselves are backward compatible, though.
legendary
Activity: 1937
Merit: 1001
August 29, 2012, 08:21:21 AM
#1
After i totally messed up my last ubuntu install after a lot of work to get everything i need running i used windows for a few weeks only.

Today i started building my linux system again and of course i run into trouble with bitcoin (again).

I try to use the same datadir as i us in windows to make sure i'm always using the same wallet, and whatever OS i'm using at that moment will be synced.

Problem is, when i try to load the datadir in ubuntu it gives me all kinds of DB errors and exceptions, when i go back to windows the same datadir works just fine. So i did some messing around.

When i use a clean datadir in ubuntu (empty wallet, fresh db and blockchain) it runs fine and fast, however if i replace the blockchain with the same blockchain from my windows install it pops the errors again...
Also, when i put my windows wallet file in the clean ubuntu bitcoin dir, it gives a db error and wont start.

All in all very annoying and i'd like to know if there's a dependable way to use the same datadir for both OS'.

Why is there some kind of difference anyway between the two??

oh btw, the linux wallet.dat works on windows, but the windows wallet.dat doesn't work on linux... O_o
Jump to: