<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>Topic &#x27;Data recovery help&#x27; in forum &#x27;All Things Unix&#x27; - dslreports.com</title>
<link>http://www.dslreports.com/forum/Data-recovery-help-27962367</link>
<description></description>
<language>en</language>
<pubDate>Fri, 24 May 2013 11:36:40 EDT</pubDate>
<lastBuildDate>Fri, 24 May 2013 11:36:40 EDT</lastBuildDate>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27998735</link>
<description><![CDATA[leibold posted : A nice piece of set-it-up-and-forget-it remote backup software is rsnapshot.<br><br>Since you are using mysql databases I would combine a local mysqldump (easier to recover from then binary database files) with rsnapshot for frequent full system backups. Don't let "full system backup" scare you, with rsnapshot only the first backup will take a lot of time since all files will need to be transferred from the database server to your backup destination. All subsequent backups only transmit new or changed data. Another nice feature of rsnapshot is that it heavily uses hard-links. This makes each snapshot a full and complete copy of the backed up server while keeping total disk utilization for all snapshots very small (size of 1 full backup plus the sum of all new and changed files).<br><br>For this suggestion:<br>1.) run rsyncd on the database server (locked down to only be accessible from the backup server, run as root, no chroot to allow backup of files with restricted access, <I>read-only mode for added security since that is all that is needed for backup purposes</I>), ideally start it automatically on boot (e.g. init.d).<br>2.) periodically run mysqldump on the database server (e.g. from cron so that nobody forgets it). It is fine if it always backs up to the same destination on the local disk.<br>3.) run rsnapshot on the backup server to backup the entire database server (use daily, weekly and monthly cron jobs as desired).<I>Add 'exclude' directives to rsnapshot.conf for virtual filesystems (/dev, /proc, /sys) or anything you really don't want to back up. I also added '--bwlimit=...' to the rsync arguments inside rsnapshot.conf which reduces the impact of backups taken on always up production servers.</I><br><br>Edit: before I get a lot of flak for the "forget-it" part, I specially mean the low maintenance aspect of rsnapshot once it is configured. It doesn't hurt to periodically check rsnapshot.log to see that everything is going smooth just like many other logfiles ought to be periodically reviewed (before warnings turn into fatal errors).<br><br>Edit: some additional details added in italic.<br><small>--<br>Got some spare cpu cycles ? Join <A HREF="/forum/helix"> Team Helix </a> or <A HREF="/forum/seti"> Team Starfire</a>!</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27998735</guid>
<pubDate>Sun, 10 Feb 2013 23:23:32 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27997135</link>
<description><![CDATA[Maxo posted : I'm happy to report that I appear to have been able to successfully recover all tables by piecing together the binary files from the restored disk image and the mysqldump export from last October.<br>I have two more steps before I can move on. I need to make the server live and I need to develop a proper backup mechanism so that I'm not in this rut again the next time I run into problems.<br>I'd really like to thank everyone that stopped by and gave suggestions. I only do this work as a volunteer and my main knowledge is in coding, not server administration. I would not have been able to get a full recovery without your great advice.<br><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27997135</guid>
<pubDate>Sun, 10 Feb 2013 12:34:40 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27996792</link>
<description><![CDATA[Maxo posted : <div class="bquote"><said>said by <a href="/profile/830709" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=830709');">pablo</a>:</said><p>Hi,<br><br>At this point, you'll want to scour the web/Internet on how to scrape data from a corrupted MySQL schema.<br><br>There may be some MySQL utilities which can be used to attempt a repair of the data files too.<br><br>Cheers,<br>-pablo</p></div>I've done some looking around. I move from trying to repair the gnucash database, which is completely disposable, to working on is4c_op, which is an important schema. I was able to repair all tables except for the member_payments table.<br>Most of the tables where just fine and didn't need any repair.<br>Some table where fixed by running "repair table <table_name> use_frm;"<br>Some tables where fixable by copying <table_name>.frm from the good restore and plopping it and then running the repair command.<br>I've got one more important schema to try to repair, is4c_log.<br><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27996792</guid>
<pubDate>Sun, 10 Feb 2013 10:28:09 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27996751</link>
<description><![CDATA[pablo posted : Hi,<br><br>At this point, you'll want to scour the web/Internet on how to scrape data from a corrupted MySQL schema.<br><br>There may be some MySQL utilities which can be used to attempt a repair of the data files too.<br><br>Cheers,<br>-pablo<br><small>--<br>openSUSE 12.2/KDE 4.x<br>ISP:  TekSavvy Bonded DSL; backhauled  via a 6KM wireless link<br>Assorted goodies:  &raquo;<A HREF="http://pablo.blog.blueoakdb.com" >pablo.blog.blueoakdb.com</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27996751</guid>
<pubDate>Sun, 10 Feb 2013 10:04:37 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27996736</link>
<description><![CDATA[Maxo posted : Another bit of information that may be useful.<br><div class="bquote"><p>root@butter:/var/lib/mysql/gnucash# ls -l<br>total 634<br>-rw-rw---- 1 mysql mysql 33550 Feb 10 09:42 accounts.frm<br>-rw-rw---- 1 mysql mysql  9184 Jan 29 20:10 accounts.MYD<br>-rw-rw---- 1 mysql mysql  5120 Jan 29 20:10 accounts.MYI<br>-rw-rw---- 1 mysql mysql 25372 Feb 10 09:42 billterms.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 billterms.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 billterms.MYI<br>-rw-rw---- 1 mysql mysql  8674 Feb 10 09:42 books.frm<br>-rw-rw---- 1 mysql mysql   104 Jan 29 20:10 books.MYD<br>-rw-rw---- 1 mysql mysql  2048 Jan 29 20:10 books.MYI<br>-rw-rw---- 1 mysql mysql  8776 Feb 10 09:42 budget_amounts.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 budget_amounts.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 budget_amounts.MYI<br>-rw-rw---- 1 mysql mysql 20966 Feb 10 09:42 budgets.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 budgets.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 budgets.MYI<br>-rw-rw---- 1 mysql mysql 45736 Feb 10 09:42 commodities.frm<br>-rw-rw---- 1 mysql mysql    84 Jan 29 20:10 commodities.MYD<br>-rw-rw---- 1 mysql mysql  2048 Jan 29 20:10 commodities.MYI<br>-rw-rw---- 1 mysql mysql 58990 Feb 10 09:42 customers.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 customers.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 customers.MYI<br>-rw-rw---- 1 mysql mysql    61 Feb 10 09:42 db.opt<br>-rw-rw---- 1 mysql mysql 50314 Feb 10 09:42 employees.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 employees.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 employees.MYI<br>-rw-rw---- 1 mysql mysql 38538 Feb 10 09:42 entries.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 entries.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 entries.MYI<br>-rw-rw---- 1 mysql mysql  8596 Feb 10 09:42 gnclock.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 gnclock.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 gnclock.MYI<br>-rw-rw---- 1 mysql mysql 25626 Feb 10 09:42 invoices.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 invoices.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 invoices.MYI<br>-rw-rw---- 1 mysql mysql 25158 Feb 10 09:42 jobs.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 jobs.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 jobs.MYI<br>-rw-rw---- 1 mysql mysql  8646 Feb 10 09:42 lots.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 lots.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 lots.MYI<br>-rw-rw---- 1 mysql mysql 25248 Feb 10 09:42 orders.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 orders.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 orders.MYI<br>-rw-rw---- 1 mysql mysql 21124 Feb 10 09:42 prices.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 prices.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 prices.MYI<br>-rw-rw---- 1 mysql mysql 12876 Feb 10 09:42 recurrences.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 recurrences.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 recurrences.MYI<br>-rw-rw---- 1 mysql mysql 13206 Feb 10 09:42 schedxactions.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 schedxactions.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 schedxactions.MYI<br>-rw-rw---- 1 mysql mysql 33596 Feb 10 09:42 slots.frm<br>-rw-rw---- 1 mysql mysql   732 Jan 29 20:10 slots.MYD<br>-rw-rw---- 1 mysql mysql  3072 Jan 29 20:10 slots.MYI<br>-rw-rw---- 1 mysql mysql 21314 Feb 10 09:42 splits.frm<br>-rw-rw---- 1 mysql mysql   296 Jan 29 20:10 splits.MYD<br>-rw-rw---- 1 mysql mysql  4096 Jan 29 20:10 splits.MYI<br>-rw-rw---- 1 mysql mysql  8748 Feb 10 09:42 taxtable_entries.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 taxtable_entries.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 taxtable_entries.MYI<br>-rw-rw---- 1 mysql mysql  8702 Feb 10 09:42 taxtables.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 taxtables.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 taxtables.MYI<br>-rw-rw---- 1 mysql mysql 21050 Feb 10 09:42 transactions.frm<br>-rw-rw---- 1 mysql mysql    96 Jan 29 20:10 transactions.MYD<br>-rw-rw---- 1 mysql mysql  3072 Jan 29 20:10 transactions.MYI<br>-rw-rw---- 1 mysql mysql 50164 Feb 10 09:42 vendors.frm<br>-rw-rw---- 1 mysql mysql     0 Jan 29 20:10 vendors.MYD<br>-rw-rw---- 1 mysql mysql  1024 Jan 29 20:10 vendors.MYI<br>-rw-rw---- 1 mysql mysql  8620 Feb 10 09:42 versions.frm<br>-rw-rw---- 1 mysql mysql   504 Jan 29 20:10 versions.MYD<br>-rw-rw---- 1 mysql mysql  2048 Jan 29 20:10 versions.MYI</p></div><br><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27996736</guid>
<pubDate>Sun, 10 Feb 2013 09:57:26 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27996732</link>
<description><![CDATA[Maxo posted : I got my server back up and running and setup mysql with my October backup.<br>From my recovery image I pulled out /var/lib/mysql and put it on the server but mysql won't start up. So I put back in the database from my restore and tried adding in just /var/lib/mysql/gnucash, a schema that I added a week before the crash.<br>With that in place I can see it from "show schemas" and when I run "show tables" it lists all of the gnucash tables. However accessing the tables doesn't go so well.<br><div class="bquote"><p>mysql> use gnucash;<br>Reading table information for completion of table and column names<br>You can turn off this feature to get a quicker startup with -A<br><br>Database changed<br>mysql> show tables;<br>+-------------------+<br>| Tables_in_gnucash |<br>+-------------------+<br>| accounts          |<br>| billterms         |<br>| books             |<br>| budget_amounts    |<br>| budgets           |<br>| commodities       |<br>| customers         |<br>| employees         |<br>| entries           |<br>| gnclock           |<br>| invoices          |<br>| jobs              |<br>| lots              |<br>| orders            |<br>| prices            |<br>| recurrences       |<br>| schedxactions     |<br>| slots             |<br>| splits            |<br>| taxtable_entries  |<br>| taxtables         |<br>| transactions      |<br>| vendors           |<br>| versions          |<br>+-------------------+<br>24 rows in set (0.00 sec)<br><br>mysql> select * from accounts;<br>ERROR 1146 (42S02): Table 'gnucash.accounts' doesn't exist<br>mysql> select * from transactions;<br>ERROR 1146 (42S02): Table 'gnucash.transactions' doesn't exist<br>mysql> select * from prices;<br>ERROR 1146 (42S02): Table 'gnucash.prices' doesn't exist<br>mysql> select * from vendors;<br>ERROR 1033 (HY000): Incorrect information in file: './gnucash/vendors.frm'<br>mysql> <br></p></div>At this point do you think it best to move the problem over to &raquo;<A HREF="/forum/webmonk">Webmasters and Developers</A> ?<br><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27996732</guid>
<pubDate>Sun, 10 Feb 2013 09:56:11 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27978356</link>
<description><![CDATA[leibold posted : <div class="bquote"><said>said by <a href="/profile/715380" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=715380');">Maxo</a>:</said><p>If this works I'm shipping some beers out your way  leibold <A HREF="/useremail/u/655722"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A>.</p></div>Better not, I don't drink :-)<br><br>The file with inode number 90322 got truncated during the fsck. To identify which file this was, you can use the find command after mounting the filesystem. E.g.:<br><br>mount -r /dev/loop0 /mnt<br>find /mnt -inum 90322 -print<br><br>It is also possible to determine which files have been corrupted due to the defects in the sdcard by checking the list of badblocks that dd_rescue reported. This is a bit more involved and you can find some related information <A HREF="https://wiki.archlinux.org/index.php/Find_File_that_Owns_a_Given_Block"> here </A>. Note1: you don't need to run any programs to find bad blocks since you already have the bad block list (running badblocks on the copy wouldn't find any). Note2: in addition to the calculation regarding block sizes you also need to subtract the offset of the 2nd partition.<br><small>--<br>Got some spare cpu cycles ? Join <A HREF="/forum/helix"> Team Helix </a> or <A HREF="/forum/seti"> Team Starfire</a>!</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27978356</guid>
<pubDate>Mon, 04 Feb 2013 15:32:44 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27977153</link>
<description><![CDATA[Maxo posted : I'm pretty pumped as all of the mysql files are now readable and appear to be in tact. It will be a while before I have the opportunity to actually try restoring those files and seeing if they work.<br>If this works I'm shipping some beers out your way  leibold <A HREF="/useremail/u/655722"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A>.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27977153</guid>
<pubDate>Mon, 04 Feb 2013 09:59:02 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27977030</link>
<description><![CDATA[Maxo posted : Some Googling and I did this.<br><pre class="brush: text">root@HP:/home/baucumd# sudo losetup /dev/loop0 sdcard.img -o $((75497472))&#012;root@HP:/home/baucumd# mkdir /media/sdcard&#012;root@HP:/home/baucumd# fsck -fv /dev/loop0&#012;fsck from util-linux 2.20.1&#012;e2fsck 1.42 (29-Nov-2011)&#012;Pass 1: Checking inodes, blocks, and sizes&#012;Inode 90322 has an invalid extent node (blk 2327776, lblk 3855)&#012;Clear&lt;y&gt;? yes&#012; &#012;Inode 90322, i_blocks is 11186, should be 7818.  Fix&lt;y&gt;? yes&#012; &#012;HTREE directory inode 278684 has an invalid root node.&#012;Clear HTree index&lt;y&gt;? yes&#012; &#012;HTREE directory inode 278787 has an invalid root node.&#012;Clear HTree index&lt;y&gt;? yes&#012;...&#012;...&#012;/dev/loop0: ***** FILE SYSTEM WAS MODIFIED *****&#012; &#012;   74314 inodes used (15.64%)&#012;     598 non-contiguous files (0.8%)&#012;     346 non-contiguous directories (0.5%)&#012;         # of inodes with ind/dind/tind blocks: 0/0/0&#012;         Extent depth histogram: 67135/184/1&#012; 2306852 blocks used (60.73%)&#012;       0 bad blocks&#012;       0 large files&#012; &#012;   58220 regular files&#012;    7957 directories&#012;      56 character device files&#012;      25 block device files&#012;       0 fifos&#012;4294967170 links&#012;    8046 symbolic links (6904 fast symbolic links)&#012;       1 socket&#012;--------&#012;   74133 files&#012; &#012; &#012;</pre><!--end code block--><br><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27977030</guid>
<pubDate>Mon, 04 Feb 2013 09:15:23 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27976996</link>
<description><![CDATA[Maxo posted : One thing I didn't consider is that I do not know how to mount a single partition from a .img file of a whole disk.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27976996</guid>
<pubDate>Mon, 04 Feb 2013 09:01:20 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27976913</link>
<description><![CDATA[Maxo posted : Here's the final details of dd_resuce.<br><pre class="brush: text">dd_rescue: (info): read /dev/mmcblk0 (3872256.0k): EOF&#012;dd_rescue: (info): Summary for /dev/mmcblk0 -&gt; /home/david/sdcard.img:&#012;dd_rescue: (info): ipos:   3872256.0k, opos:   3872256.0k, xferd:   3872256.0k&#012;                   errs: 286720, errxfer:    143360.0k, succxfer:   3728896.0k&#012;             +curr.rate:      303kB/s, avg.rate:       17kB/s, avg.load:  0.1%&#012;             &gt;-----------------------xxx--------------.&lt;  99%  ETA:  0:00:00&#012; &#012;</pre><!--end code block-->It ran through the weekend while I was out of town.<br><br><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27976913</guid>
<pubDate>Mon, 04 Feb 2013 08:26:18 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27967345</link>
<description><![CDATA[leibold posted : You don't have to wait until you get a new 4GB SD Card to recover the data.<br><br>Once dd_rescue is finished (I hope it long since has) and if you have the space for it, make a 2nd copy for your recovery attempts. Turn the 2nd image into a block device with the use of loopback devices (see losetup) and mount the 2nd partition (ext4fs). If you don't know that starting offset for the 2nd partition create a loop device for the entire SD Card and use fdisk to read the partition table (be careful to not mix 512 byte sectors and 1kB blocks).<br><small>--<br>Got some spare cpu cycles ? Join <A HREF="/forum/helix"> Team Helix </a> or <A HREF="/forum/seti"> Team Starfire</a>!</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27967345</guid>
<pubDate>Thu, 31 Jan 2013 21:38:43 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27965922</link>
<description><![CDATA[leibold posted : 5 consecutive bad sectors. Lets hope that this is all there is. Remember that data for one of the blocks (2 sectors) at least is present in the ext4 filesystem journal. Once the SD card data is copied to a working media, mounting the filesystem will hopefully recover that block from the journal replay.<br><br>Most of your data ought to be intact (2.5kB out of 4GB is next to nothing, but of course not every block is as important as the other one).<br><small>--<br>Got some spare cpu cycles ? Join <A HREF="/forum/helix"> Team Helix </a> or <A HREF="/forum/seti"> Team Starfire</a>!</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27965922</guid>
<pubDate>Thu, 31 Jan 2013 14:42:40 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27965723</link>
<description><![CDATA[Maxo posted : Now I'm getting somehwere ... I think.<br><br><pre class="brush: text">sudo dd_rescue -o bad_block_list /dev/mmcblk0 /home/david/sdcard.img&#012;dd_rescue: (info) expect to copy 3872256kB from /dev/mmcblk0&#012;dd_rescue: (info): ipos:   2293760.0k, opos:   2293760.0k, xferd:   2293760.0k&#012;                *  errs:      0, errxfer:         0.0k, succxfer:   2293760.0k&#012;             +curr.rate:        0kB/s, avg.rate:     8634kB/s, avg.load:  2.0%&#012;             &gt;------------------------.................&lt;  59%  ETA:  0:03:02 &#012;dd_rescue: (warning): read /dev/mmcblk0 (2293760.0k): Success!&#012; &#012;dd_rescue: (info): ipos:   2293760.5k, opos:   2293760.5k, xferd:   2293760.5k&#012;                *  errs:      1, errxfer:         0.5k, succxfer:   2293760.0k&#012;             +curr.rate:        1kB/s, avg.rate:     8609kB/s, avg.load:  2.0%&#012;             &gt;-----------------------x.................&lt;  59%  ETA:  0:03:03 &#012;dd_rescue: (warning): read /dev/mmcblk0 (2293760.5k): Success!&#012; &#012;dd_rescue: (info): ipos:   2293761.0k, opos:   2293761.0k, xferd:   2293761.0k&#012;                *  errs:      2, errxfer:         1.0k, succxfer:   2293760.0k&#012;             +curr.rate:        1kB/s, avg.rate:     8584kB/s, avg.load:  2.0%&#012;             &gt;-----------------------x.................&lt;  59%  ETA:  0:03:03 &#012;dd_rescue: (warning): read /dev/mmcblk0 (2293761.0k): Success!&#012; &#012;dd_rescue: (info): ipos:   2293761.5k, opos:   2293761.5k, xferd:   2293761.5k&#012;                *  errs:      3, errxfer:         1.5k, succxfer:   2293760.0k&#012;             +curr.rate:        1kB/s, avg.rate:     8559kB/s, avg.load:  2.0%&#012;             &gt;-----------------------x.................&lt;  59%  ETA:  0:03:04 &#012;dd_rescue: (warning): read /dev/mmcblk0 (2293761.5k): Success!&#012; &#012;dd_rescue: (info): ipos:   2293762.0k, opos:   2293762.0k, xferd:   2293762.0k&#012;                *  errs:      4, errxfer:         2.0k, succxfer:   2293760.0k&#012;             +curr.rate:        1kB/s, avg.rate:     8535kB/s, avg.load:  2.0%&#012;             &gt;-----------------------x.................&lt;  59%  ETA:  0:03:04 &#012;dd_rescue: (warning): read /dev/mmcblk0 (2293762.0k): Success!&#012; &#012;dd_rescue: (info): ipos:   2293762.5k, opos:   2293762.5k, xferd:   2293762.5k&#012;                *  errs:      5, errxfer:         2.5k, succxfer:   2293760.0k&#012;             +curr.rate:        1kB/s, avg.rate:     8511kB/s, avg.load:  2.0%&#012;             &gt;-----------------------x.................&lt;  59%  ETA:  0:03:05 &#012;dd_rescue: (warning): read /dev/mmcblk0 (2293762.5k): Success!&#012; &#012; &#012;</pre><!--end code block--><br><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27965723</guid>
<pubDate>Thu, 31 Jan 2013 14:00:18 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27965628</link>
<description><![CDATA[leibold posted : <div class="bquote"><said>said by <a href="/profile/715380" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=715380');">Maxo</a>:</said><p>kill -USR1 is not giving me anything<br><div class="bquote"><p>&#10140;  ~  sudo kill -USR1 3091<br>&#10140;  ~  <br></p></div></p></div>The output would be in the terminal where dd is running, not in the terminal where you send the USR1 signal.<br><div class="bquote"><said>said by <a href="/profile/715380" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=715380');">Maxo</a>:</said><p>Do you think killing it and restarting with ddrescue is best? <br></p></div>Given that dd is stuck, definitely use dd_rescue.<br><br>The option syntax is different from dd so check dd_rescue -h to get a list of them. Most defaults are fine, but I would recommend saving the list of bad blocks:<br><br>dd_rescue -o bad_block_list /dev/mmcblk0 /home/david/sdcard.img<br><small>--<br>Got some spare cpu cycles ? Join <A HREF="/forum/helix"> Team Helix </a> or <A HREF="/forum/seti"> Team Starfire</a>!</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27965628</guid>
<pubDate>Thu, 31 Jan 2013 13:38:52 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27965343</link>
<description><![CDATA[Maxo posted : The cards 4GB. It is sitting at 2.3 GB copied.<br>I now have ddrescue installed. kill -USR1 is not giving me anything<br><div class="bquote"><p>&#10140;  ~  sudo kill -USR1 3091<br>&#10140;  ~  <br></p></div>Do you think killing it and restarting with ddrescue is best? If so, what are the best options to use.<br>Right now I'm just putting the output to a .img file in my home directory. I'm going to order a few more SD cards this weekend from Newegg.<br><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27965343</guid>
<pubDate>Thu, 31 Jan 2013 12:38:45 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27965093</link>
<description><![CDATA[leibold posted : How big is the SD card ?<br>You can check where the dd is currently by sending it a SIGUSR1 signal: kill -USR1 PID# (where PID# is the process id of the running dd command).<br>If it is stuck at that block and doesn't continue beyond it, you will have to stop dd and determine by trial and error which the next readable block is (using the skip or iseek option of dd). If you have dd_rescue on your system use that instead since it will do all that work for you.<br><small>--<br>Got some spare cpu cycles ? Join <A HREF="/forum/helix"> Team Helix </a> or <A HREF="/forum/seti"> Team Starfire</a>!</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27965093</guid>
<pubDate>Thu, 31 Jan 2013 11:35:55 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27964378</link>
<description><![CDATA[Maxo posted : dd is still running this morning. It looks like this.<br><div class="bquote"><p>2348810240 bytes (2.3 GB) copied, 54020.2 s, 43.5 kB/s<br>dd: reading `/dev/mmcblk0': Input/output error<br>4587520+0 records in<br>4587520+0 records out<br>2348810240 bytes (2.3 GB) copied, 54021 s, 43.5 kB/s<br>dd: reading `/dev/mmcblk0': Input/output error<br>4587520+0 records in<br>4587520+0 records out<br>2348810240 bytes (2.3 GB) copied, 54021.8 s, 43.5 kB/s<br>dd: reading `/dev/mmcblk0': Input/output error<br>4587520+0 records in<br>4587520+0 records out<br>2348810240 bytes (2.3 GB) copied, 54022.5 s, 43.5 kB/s<br>dd: reading `/dev/mmcblk0': Input/output error<br>4587520+0 records in<br>4587520+0 records out<br>2348810240 bytes (2.3 GB) copied, 54023.3 s, 43.5 kB/s<br></p></div><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27964378</guid>
<pubDate>Thu, 31 Jan 2013 08:06:41 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27963980</link>
<description><![CDATA[leibold posted : <div class="bquote"><said>said by <a href="/profile/1788607" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=1788607');">berserken</a>:</said><p>  dd_rescue </p></div>Thanks for the reminder, I completely forgot about dd_rescue!<br>If it is available it is preferable over plain dd for data rescue operations (it automatically switches between large blocks for speed and small blocks for maximum data recovery as needed).<br><small>--<br>Got some spare cpu cycles ? Join <A HREF="/forum/helix"> Team Helix </a> or <A HREF="/forum/seti"> Team Starfire</a>!</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27963980</guid>
<pubDate>Thu, 31 Jan 2013 00:43:37 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27963179</link>
<description><![CDATA[berserken posted : FWIW, I tried to image a failing Mandriva system hard drive, using dd, which aborted upon reaching a bad sector.  dd_rescue, reporting about 45 bad sectors, made a complete image that I put on a different drive and that has been working since.  Some annotated post I already made is here: &raquo;<A HREF="http://bjoernvold.com/forum/viewtopic.php?p=14714#p14714" >bjoernvold.com/forum/viewtopic.p&middot;&middot;&middot;4#p14714</A>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27963179</guid>
<pubDate>Wed, 30 Jan 2013 19:53:14 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27962907</link>
<description><![CDATA[leibold posted : <div class="bquote"><said>said by <a href="/profile/715380" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=715380');">Maxo</a>:</said><p>Do you think that setting an identical sd card as the of would be beneficial?</p></div>Yes, there is a chance you might get back some of the lost data back.<br><br>Your dd was done without specifying a blocksize which means you used the default of 512 bytes. Larger blocksizes would copy faster, but in an error recovery scenario you want the blocksize to be small so this is good (you could have used 1kB or whatever blocksize your filesyztem is using). In order to see whether the block where dd stopped is the same block as in the earlier filesystem error messages you need to do some calculations (don't forget that you are doing the dd on the entire blockdevice and the damaged filesystem is on the 2nd partition of that blockdevice). Assuming your ext4fs filesystem used a 1kB blocksize and your first partition on the SD card is about 64MB then the dd stopped at the same place as the filesystem error you posted earlier. With luck this is the only bad spot on the media.<br><br>Carefully check the messages produced by dd and the resulting output file. If the dd you are using is substituting 0 blocks for input blocks it can't read it is fine. However if the output is too short because dd didn't write anything while encountering a bad input block the copy is not usable for filesystem recovery. I seem to remember not all implementations of dd to behave identical in the presence of input errors which is why I prefer to use skip&seek (or iseek&oseek for dd versions that have those options) to eliminate the guesswork. <br><small>--<br>Got some spare cpu cycles ? Join <A HREF="/forum/helix"> Team Helix </a> or <A HREF="/forum/seti"> Team Starfire</a>!</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27962907</guid>
<pubDate>Wed, 30 Jan 2013 18:00:53 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27962793</link>
<description><![CDATA[pablo posted : Hi,<br><br>See lugnut's comment in this thread:<br><br>   &raquo;<A HREF="/forum/r27953615-system-wont-boot">system wont boot</A><br><br>It may be the ticket to recovery some of your data.<br><br>Cheers,<br>-pablo<br><small>--<br>openSUSE 12.2/KDE 4.x<br>ISP:  TekSavvy Bonded DSL; backhauled  via a 6KM wireless link<br>Assorted goodies:  &raquo;<A HREF="http://pablo.blog.blueoakdb.com" >pablo.blog.blueoakdb.com</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27962793</guid>
<pubDate>Wed, 30 Jan 2013 17:23:55 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27962731</link>
<description><![CDATA[Maxo posted : I'm dding it with noerror right now to see what happens.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27962731</guid>
<pubDate>Wed, 30 Jan 2013 17:04:45 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27962700</link>
<description><![CDATA[Maxo posted : <div class="bquote"><said>said by <a href="/profile/655722" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=655722');">leibold</a>:</said><p>Please don't take this personal, but you have already made several big mistakes:</p></div>No offense taken. You are absolutely correct on all points. I did not take the initial errors I got seriously enough. Also, my backup logic was not solid, which is what really made this inconvenience a disaster.<br>I have already tried making an image of the disk<br><pre class="brush: text">â&amp;#158;&amp;#156;  ~  sudo dd if=/dev/mmcblk0 of=/home/david/sdcard.img                                                                                                                                   &#012;dd: reading `/dev/mmcblk0': Input/output error&#012;4587520+0 records in&#012;4587520+0 records out&#012;2348810240 bytes (2.3 GB) copied, 264.791 s, 8.9 MB/s&#012; &#012;</pre><!--end code block-->Do you think that setting an identical sd card as the of would be beneficial? I used the only identical card I had to get the server back up. I was able to get all the code back up, all the data from last October, and some up-to-date data that gets synched to the registers, the membership data and inventory.<br><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27962700</guid>
<pubDate>Wed, 30 Jan 2013 16:54:52 EDT</pubDate>
</item>

<item>
<title>Re: Data recovery help</title>
<link>http://www.dslreports.com/forum/Re-Data-recovery-help-27962623</link>
<description><![CDATA[leibold posted : Please don't take this personal, but you have already made several big mistakes:<br><br>1.) When you receive filesystem related errors the first priority is to stop writing to that filesystem. Some data that is still in the buffer pool may yet be readable and therefore before shutting down attempt to save truly critical files (obviously not onto the damaged filesystem or any other filesystem on the same physical media; if possible use a network connection to copy those files to another system altogether).<br><br>2.) After shutting down a damaged disk (or in this case SD card) prevent any writing until all data that can be saved has been saved. Beware of unintentional writing that happens with some journalled filesystems even when mounting it read-only! Always use read-only mode when mounting media from which you want to recover data. At the very least you are putting the data at an unnecessary risk but far more likely you are increasing the already existing amount of data corruption. It is safer to do a copy of the raw disk partition then to trying to mount the damaged filesystem.<br><br>3.) I know some books say differently, but I say never run fsck with the -y option unless you have a good copy of the damaged filesystem (dd of raw partition) and you have determined the cause of the problem and either fixed it or determined that it longer prevents a repair of the filesystem.<br><br>4.) Never ever backup anything over the last known good backup. As you found out, if the backup fails your previously good backup is then gone too. That rule applies even if you haven't had any filesystem errors before starting the backup.<br><br>From the error messages it is clear that your media is damaged and at least block 2359734 can no longer be written to. My first action would be to get an SD Card with the same capacity and attempt a raw copy from the defect card to the new card (if you are really lucky all blocks are still readable even so some can no longer be written). If there are unreadable areas on the defect SD card you may have to restart dd with seek and skip options (or experiment with conv=noerrror).<br>Once you have a copy of your filesystem on good media you can attempt to repair the filesystem. Journal replay of the ext4 filesystem journal may actually recover some of the damages once it can write data from the journal to the proper filesystem block. Fsck should do the rest to restore integrity to the filesystem but it will do (almost) nothing to recover lost data (it does recover orphaned files and directories). It cannot fix data that was never written properly to begin with or that was somehow overwritten.<br><br>Good luck.<br><small>--<br>Got some spare cpu cycles ? Join <A HREF="/forum/helix"> Team Helix </a> or <A HREF="/forum/seti"> Team Starfire</a>!</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Data-recovery-help-27962623</guid>
<pubDate>Wed, 30 Jan 2013 16:31:59 EDT</pubDate>
</item>

<item>
<title>Data recovery help</title>
<link>http://www.dslreports.com/forum/Data-recovery-help-27962367</link>
<description><![CDATA[Maxo posted : A do the IT work at a local food cooperative. Our server is a Pandabard running Ubuntu server 12.04 that has been rocking until last week. I tried to run updates and got some errors. Some Googling revealed the errors to be related to filesystem problems.<br>I shut the server down and put the sd card in my laptop. fsck came up with a bunch of errors, but didn't fix anything. After trying a bunch of stuff I put the card back in the Pandaboard and booted it up.<br>While the server came up it wouldn't do much of anything and was very very slow. Apache, mysql, etc. would not start and the console was constantly throwing I/O errors.<br>At first I wasn't too worried. I backup the database daily and the code is all on github. However, I have discovered that my database backup file is a cool 0kb in size. My guess is that the last time it tried to backup it couldn't pull any data, and then piped the empty result into my backup file.<br>I do have a file from last October, but I really need to recover the data if possible.<br>When I put the SD card in my laptop I can browse all the directories, but many files are not readable. I can open the files, for example, in /usr/share/applications but not in /var/lib/mysql.<br><pre class="brush: text">5.5.28root@HP:/media/3fe54ae1-490a-4bcc-a6fe-a546bb9bdc4f/var/lib/mysql# cat ib_logfile1&#012;cat: ib_logfile1: Input/output error&#012; &#012;</pre><!--end code block--><br>Here's what fsck gives me.<br><pre class="brush: text">&amp;#10140;  ~  sudo fsck -y /dev/mmcblk0p2&#012;fsck from util-linux 2.20.1&#012;e2fsck 1.42 (29-Nov-2011)&#012;/dev/mmcblk0p2: recovering journal&#012;Error writing block 2359734 (Attempt to write block to filesystem resulted in short write).  Ignore error? yes&#012; &#012;Error writing block 2359734 (Attempt to write block to filesystem resulted in short write).  Ignore error? yes&#012; &#012;Error writing block 2359734 (Attempt to write block to filesystem resulted in short write).  Ignore error? yes&#012; &#012;Error writing block 2359734 (Attempt to write block to filesystem resulted in short write).  Ignore error? yes&#012; &#012;Error writing block 2359734 (Attempt to write block to filesystem resulted in short write).  Ignore error? yes&#012; &#012;...&#012;This goes on and on&#012;...&#012; &#012;fsck.ext4: unable to set superblock flags on /dev/mmcblk0p2&#012; &#012;/dev/mmcblk0p2: ********** WARNING: Filesystem still has errors **********&#012; &#012;</pre><!--end code block--><br><small>--<br>"Padre, nobody said war was fun now bowl!" - Sherman T Potter<br><br>&raquo;<A HREF="http://maxolasersquad.com/" >maxolasersquad.com/</A><br><br>&raquo;<A HREF="http://maxolasersquad.blogspot.com" >maxolasersquad.blogspot.com</A><br><br>&raquo;<A HREF="https://www.facebook.com/maxolasersquad" >www.facebook.com/maxolasersquad</A></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Data-recovery-help-27962367</guid>
<pubDate>Wed, 30 Jan 2013 15:16:33 EDT</pubDate>
</item>

</channel>
</rss>
