Bitcoin Forum
May 12, 2024, 08:45:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Installed linux over windows drive with my wallet.dat  (Read 1005 times)
pccs (OP)
Member
**
Offline Offline

Activity: 97
Merit: 10



View Profile
April 21, 2013, 01:35:31 AM
 #1


Here's what happened.

I was running Winxp on my hard drive, partitioned as C and D. The C drive had the operating system/program files. The D drive was used for my files only.

I created another partition to install Ubuntu and had it working for a while. I was going to back up my files on the D drive of course, but ..... I figured I'd do it later lol. To make a long story short, at a certain point neither system would boot, so I installed Ubuntu onto the drive wiping out all partitions. I can't seem to find any utility that will allow me to even try to recover files on that drive. Yep .... wallet is on there, along with some other stuff I'd like to get back.

Any ideas?
1715546726
Hero Member
*
Offline Offline

Posts: 1715546726

View Profile Personal Message (Offline)

Ignore
1715546726
Reply with quote  #2

1715546726
Report to moderator
1715546726
Hero Member
*
Offline Offline

Posts: 1715546726

View Profile Personal Message (Offline)

Ignore
1715546726
Reply with quote  #2

1715546726
Report to moderator
1715546726
Hero Member
*
Offline Offline

Posts: 1715546726

View Profile Personal Message (Offline)

Ignore
1715546726
Reply with quote  #2

1715546726
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715546726
Hero Member
*
Offline Offline

Posts: 1715546726

View Profile Personal Message (Offline)

Ignore
1715546726
Reply with quote  #2

1715546726
Report to moderator
1715546726
Hero Member
*
Offline Offline

Posts: 1715546726

View Profile Personal Message (Offline)

Ignore
1715546726
Reply with quote  #2

1715546726
Report to moderator
Revalin
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
April 21, 2013, 01:55:17 AM
 #2

Turn off the computer and quit using it.  You don't want to overwrite any more than you already have.

Boot from a rescue CD (your Linux install CD will probably work).  Download this: https://github.com/jackjack-jj/pywallet/blob/master/pywallet.py .  Then run:  python pywallet.py --recover --recov_device=/dev/sda --recov_size=2Tio --recov_outputdir=~/.bitcoin

(set the 2Tio to the size of your HD)

I'm assuming you know your way around Linux a little.  If not, ask and we'll walk you through it.

Edit: /dev/sda is your drive C.  You may want /dev/sdb.  Run 'fdisk -l' to see which drive is which.

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
pccs (OP)
Member
**
Offline Offline

Activity: 97
Merit: 10



View Profile
April 21, 2013, 02:19:41 AM
 #3


Gonna try it .... thx
pccs (OP)
Member
**
Offline Offline

Activity: 97
Merit: 10



View Profile
April 21, 2013, 02:57:42 AM
 #4


OK, I'm booted to USB drive.

Here's what I've tried: Not working

Quote
xubuntu@xubuntu:~/Downloads/pywallet-master$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes --- FILES SHOULD BE ON HERE SOMEWHERE
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003a25b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   304195583   152096768   83  Linux
/dev/sda2       304197630   312580095     4191233    5  Extended
/dev/sda5       304197632   312580095     4191232   82  Linux swap / Solaris

Disk /dev/sdb: 15.6 GB, 15610576896 bytes
119 heads, 55 sectors/track, 4658 cylinders, total 30489408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        8064    30489407    15240672    c  W95 FAT32 (LBA)
xubuntu@xubuntu:~/Downloads/pywallet-master$ sudo ./pywallet.py --recover --recov_device=/sda1 --recov_size=160Gio --recov_outputdir=~/.bitcoin^C
xubuntu@xubuntu:~/Downloads/pywallet-master$
xubuntu@xubuntu:~/Downloads/pywallet-master$
xubuntu@xubuntu:~/Downloads/pywallet-master$
xubuntu@xubuntu:~/Downloads/pywallet-master$
xubuntu@xubuntu:~/Downloads/pywallet-master$
xubuntu@xubuntu:~/Downloads/pywallet-master$ sudo ./pywallet.py --recover --recov_device=/sda1 --recov_size=160Gio --recov_outputdir=~/.bitcoin
Can't open /sda1, check the path or try as root
xubuntu@xubuntu:~/Downloads/pywallet-master$ sudo ./pywallet.py --recover --recov_device=/sda --recov_size=160Gio --recov_outputdir=~/.bitcoin
Can't open /sda, check the path or try as root
xubuntu@xubuntu:~/Downloads/pywallet-master$










tiktoc
Full Member
***
Offline Offline

Activity: 176
Merit: 100


View Profile
April 21, 2013, 03:01:00 AM
 #5



Code:

sudo pywallet blah blah

or
sudo su



Then run the comamnd when you are root you youll need the password for the user as sudo will ask for it.
pccs (OP)
Member
**
Offline Offline

Activity: 97
Merit: 10



View Profile
April 21, 2013, 03:09:59 AM
 #6


I must have somehing wrong ... says can't find device.

root@xubuntu:/home/xubuntu/Downloads/pywallet-master# ./pywallet.py --recover --recov_device=/sda1 --recov_size=160Gio --recov_outputdir=~/.bitcoin
Can't open /sda1, check the path or try as root
root@xubuntu:/home/xubuntu/Downloads/pywallet-master#


I've tried sda and sda1
pccs (OP)
Member
**
Offline Offline

Activity: 97
Merit: 10



View Profile
April 21, 2013, 03:12:08 AM
 #7



Fixed the path .... /dev/sda ... it's doin something lol
pccs (OP)
Member
**
Offline Offline

Activity: 97
Merit: 10



View Profile
April 21, 2013, 03:17:39 AM
 #8



Here's a sample of the output ..... doesn't make any sense to me.


21.22/171.80 Go
   ETA: 03:50:57

21.23/171.80 Go
   ETA: 03:50:56

21.24/171.80 Go
   ETA: 03:50:55

21.25/171.80 Go
   ETA: 03:51:02

21.27/171.80 Go
   ETA: 03:51:01

21.28/171.80 Go
   ETA: 03:51:00

21.29/171.80 Go
   ETA: 03:50:59

21.30/171.80 Go


How long will this take to run on a 160GB drive?
Malawi
Full Member
***
Offline Offline

Activity: 224
Merit: 100


One bitcoin to rule them all!


View Profile
April 21, 2013, 03:47:03 AM
 #9

I have  not much exp with linux, but seems like it's trying to rebuild the filetables, and that estimated total time is about 4 hrs.

BitCoin is NOT a pyramid - it's a pagoda.
pccs (OP)
Member
**
Offline Offline

Activity: 97
Merit: 10



View Profile
April 21, 2013, 03:53:00 AM
 #10


Is there a good recovery program for Linux?

I'm gonna try TestDisk, anyone know of anything better?

http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

tiktoc
Full Member
***
Offline Offline

Activity: 176
Merit: 100


View Profile
April 21, 2013, 04:24:34 AM
 #11

Did you let pywallet finish? try not to be impatient let it run over night
pccs (OP)
Member
**
Offline Offline

Activity: 97
Merit: 10



View Profile
April 21, 2013, 05:47:10 AM
 #12


No I didn't let it finish, I was looking for a file recovery program, I need more than the wallet file.

Couldn't find one that I could get to work.

tiktoc
Full Member
***
Offline Offline

Activity: 176
Merit: 100


View Profile
April 21, 2013, 05:49:03 AM
 #13

If its important send to someone, will cost you a couple grand normally to get it recovered.
pccs (OP)
Member
**
Offline Offline

Activity: 97
Merit: 10



View Profile
April 21, 2013, 05:53:27 AM
 #14


Nope, nothing that important.....would be nice to get the files back tho:)

There's a ton of recovery software for windows, just need to find one that will work for Linux.

Any suggestions?
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
April 21, 2013, 06:27:14 AM
 #15

If the installation of Linux included a full format (probably 20 minutes of formatting on a 160G drive), then all hope is lost.

The pywallet offline scan instructions that were given scan your entire raw hard drive looking for private keys, if it can't find bitcoin keys anywhere on the disk (and the wallet was unencrypted) then there is no point spending the effort to recover other stuff.
pccs (OP)
Member
**
Offline Offline

Activity: 97
Merit: 10



View Profile
April 21, 2013, 06:34:48 AM
 #16


I can't remember if I reformatted or not, I know I deleted the existing partitions and made it one large drive.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!