Author

Topic: encrypted wallet.dat in windows, error message in linux (Read 713 times)

sr. member
Activity: 406
Merit: 251
http://altoidnerd.com
Alright thanks! Yeah I have no idea why I copied it as root.  I just redid the process without sudo and it was fine.  
legendary
Activity: 4542
Merit: 3393
Vile Vixen and Miss Bitcointalk 2021-2023
The root priv. looks suspicious, but this is where my linux confidence ends.
It's not suspicious at all. For reasons which are currently inscrutable, but no doubt made sense at the time, you deliberately copied the file as root:
Code:
sudo cp wallet.dat /home/altoidnerd/.bitcoin

Too bad Bitcoin needs write access to the file, and can't get it since it's not running as root. To correct the file ownership, run:
Code:
sudo chown altoidnerd:altoidnerd /home/altoidnerd/.bitcoin/wallet.dat
sr. member
Activity: 406
Merit: 251
http://altoidnerd.com
Want to use my wallet.dat in ubuntu which was encrypted using the windows QT

I renamed the default wallet in my ubuntu box

Code:
mv wallet.dat wallet.default

Then I copied the desired (windows encrypted) wallet.dat file over to my ubuntu desktop and just moved it into the directory ./bitcoin

Code:
sudo cp wallet.dat /home/altoidnerd/.bitcoin

now sure enough, the wallet.dat file (which was encrypted in windows) is there in the ./bitcoin directory

Code:
altoidnerd@altoidnerd-HP-EliteBook-8570w:~/.bitcoin$ ls -la
total 4304
drwxrwxr-x  4 altoidnerd altoidnerd    4096 Feb  7 17:49 .
drwxr-xr-x 33 altoidnerd altoidnerd    4096 Feb  6 18:31 ..
-rw-rw-r--  1 altoidnerd altoidnerd      77 Feb  3 01:37 bitcoin.conf
drwx------  3 altoidnerd altoidnerd   12288 Feb  3 17:35 blocks
drwx------  2 altoidnerd altoidnerd   12288 Feb  7 17:43 chainstate
-rw-------  1 altoidnerd altoidnerd       0 Feb  2 23:15 db.log
-rw-------  1 altoidnerd altoidnerd  464548 Feb  7 17:43 debug.log
-rw-------  1 altoidnerd altoidnerd       0 Feb  2 23:15 .lock
-rw-------  1 altoidnerd altoidnerd  999338 Feb  7 17:43 peers.dat
-rw-r--r--  1 root       root       2826240 Feb  7 17:49 wallet.dat
-rw-------  1 altoidnerd altoidnerd   73728 Feb  7 17:43 wallet.default


But it won't recognize it; when I start qt I get

Code:
A fatal error occurred. Bitcoin can no longer continue safely and will quit.

EXCEPTION: St13runtime_error      
CDB() : can't open database file wallet.dat, error 13      
bitcoin in Runaway exception  
   

The root priv. looks suspicious, but this is where my linux confidence ends.
Jump to: