<div dir="ltr">Thanks to all for your input!<div><br></div><div style>I need to get another drive so I can ddresuce this drive. Actually, I will probably just replace the whole machine with something better.....time to upgrade from a 486 to a i7 or some such beast. Also, I was thinking of using dd_rescue so I could copy the drive to another machine across the network as opposed to installing a new drive in the current machine. Any issues with that?</div>
<div style><br></div><div style>BTW, I was able to recover all of my mysql tables using knoppix. They are now fat and happy in their temporary home on a new shiny linode....;)</div><div style><br></div><div style>Mark</div>
<div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 14, 2014 at 8:13 AM, Carruth, Rusty <span dir="ltr"><<a href="mailto:Rusty.Carruth@smarth.com" target="_blank">Rusty.Carruth@smarth.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Short answer to Mark: yes.<br>
<br>
Much longer answer, in direct reaction to ET aka kitepilot:<br>
<br>
No, the first check should be to make the output be either another hard<br>
drive or a file on another hard drive, not /dev/null.  This might be<br>
your only chance to read the whole thing.<br>
<br>
Actually, as I typed that I realized that the VERY FIRST THING Mark<br>
should do is use ddrescue.  (Sorry for yelling, but it is that<br>
important).<br>
<br>
So, my recommended steps are:<br>
<br>
IMMEDIATELY stop using that disk.<br>
<br>
Run, do not walk, and install ddrescue if you don't already have it.<br>
<br>
Read the man page for ddrescue.  Your minimal command line is 'ddrescue<br>
/dev/sda /path/sda.ddrescue /anotherpath/ddrescue.log', where sda is the<br>
bad drive, /path/ is a path to a place on a different drive and<br>
'sda.ddrescue' is the file that will hold a full image of that drive,<br>
/anotherpath/ is, well, another path (if desired to be different than<br>
/path/, but at least on a different drive than the bad one) and<br>
ddrescue.log is where ddrescue keeps its, well, log.  You really want to<br>
include the log, or its not nearly as useful.<br>
<br>
A possible modification of this is to ddrescue each PARTITION rather<br>
than the entire drive, giving you one file per partition.  This allows<br>
you to MOUNT that partition later and copy stuff off, rather than<br>
requiring a drive that can accept the dd image of a different full<br>
drive.  (I've started doing it this way for all my DD images, even if I<br>
compress them for storage.  Allows you to mount the image (when<br>
uncompressed, at least - I've not tried mounting a compressed image),<br>
and reduces the requirements on the destination drive when you get<br>
around to copying to a new drive.  Also, it allows you to skip<br>
partitions you know are not needed, like swap space)<br>
<br>
Rusty  (Who has used ddrescue on a drive that only worked when in (what<br>
amounted to) a freezer and which had 2 or 3 unreadable blocks, but which<br>
copy was completely usable after ddrescue finished)<br>
<div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:plug-discuss-bounces@lists.phxlinux.org">plug-discuss-bounces@lists.phxlinux.org</a><br>
[mailto:<a href="mailto:plug-discuss-bounces@lists.phxlinux.org">plug-discuss-bounces@lists.phxlinux.org</a>] On Behalf Of kitepilot<br>
Sent: Sunday, April 13, 2014 8:59 AM<br>
To: Main PLUG discussion list<br>
Subject: Re: Is my hard drive hosed?<br>
<br>
My first check:<br>
dd if=/dev/sda of=/dev/null<br>
<br>
If no errors then:<br>
maybe...<br>
YMMV<br>
ET<br>
<br>
<br>
Mark Phillips writes:<br>
<br>
> I have been having some issues lately on an older server.....just<br>
> found this in dmesg with I realized the file system was read only....<br>
><br>
> [ 1295.874963] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action<br>
> 0x0 [ 1295.875032] ata4.00: BMDMA stat 0x5 [ 1295.875084] ata4.00:<br>
> failed command: READ DMA [ 1295.875139] ata4.00: cmd<br>
> c8/00:08:08:0b:98/00:00:00:00:00/e3 tag 0 dma<br>
> 4096 in<br>
> [ 1295.875141]          res 51/40:00:0e:0b:98/00:00:00:00:00/e3 Emask<br>
0x9<br>
> (media error)<br>
> [ 1295.875266] ata4.00: status: { DRDY ERR } [ 1295.875315] ata4.00:<br>
> error: { UNC } [ 1295.896422] ata4.00: configured for UDMA/100 [<br>
> 1295.912627] ata4.01: configured for UDMA/133 [ 1295.912645] ata4: EH<br>
> complete [ 1299.838082] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0<br>
<br>
> action 0x0 [ 1299.838142] ata4.00: BMDMA stat 0x5 [ 1299.838192]<br>
> ata4.00: failed command: READ DMA [ 1299.838248] ata4.00: cmd<br>
> c8/00:08:08:0b:98/00:00:00:00:00/e3 tag 0 dma<br>
> 4096 in<br>
> [ 1299.838250]          res 51/40:00:0e:0b:98/00:00:00:00:00/e3 Emask<br>
0x9<br>
> (media error)<br>
> [ 1299.838375] ata4.00: status: { DRDY ERR } [ 1299.838424] ata4.00:<br>
> error: { UNC } [ 1299.860448] ata4.00: configured for UDMA/100 [<br>
> 1299.876673] ata4.01: configured for UDMA/133 [ 1299.876696] ata4: EH<br>
> complete [ 1303.856909] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0<br>
<br>
> action 0x0 [ 1303.856967] ata4.00: BMDMA stat 0x5 [ 1303.857018]<br>
> ata4.00: failed command: READ DMA [ 1303.857074] ata4.00: cmd<br>
> c8/00:08:08:0b:98/00:00:00:00:00/e3 tag 0 dma<br>
> 4096 in<br>
> [ 1303.857076]          res 51/40:00:0e:0b:98/00:00:00:00:00/e3 Emask<br>
0x9<br>
> (media error)<br>
> [ 1303.857201] ata4.00: status: { DRDY ERR } [ 1303.857250] ata4.00:<br>
> error: { UNC } [ 1303.880448] ata4.00: configured for UDMA/100 [<br>
> 1303.896764] ata4.01: configured for UDMA/133 [ 1303.896786] ata4: EH<br>
> complete [ 1307.865671] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0<br>
<br>
> action 0x0 [ 1307.865730] ata4.00: BMDMA stat 0x5 [ 1307.865781]<br>
> ata4.00: failed command: READ DMA [ 1307.865836] ata4.00: cmd<br>
> c8/00:08:08:0b:98/00:00:00:00:00/e3 tag 0 dma<br>
> 4096 in<br>
> [ 1307.865838]          res 51/40:00:0e:0b:98/00:00:00:00:00/e3 Emask<br>
0x9<br>
> (media error)<br>
> [ 1307.865962] ata4.00: status: { DRDY ERR } [ 1307.866011] ata4.00:<br>
> error: { UNC } [ 1307.888427] ata4.00: configured for UDMA/100 [<br>
> 1307.904843] ata4.01: configured for UDMA/133 [ 1307.904866] ata4: EH<br>
> complete [ 1311.791898] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0<br>
<br>
> action 0x0 [ 1311.791957] ata4.00: BMDMA stat 0x5 [ 1311.792018]<br>
> ata4.00: failed command: READ DMA [ 1311.792074] ata4.00: cmd<br>
> c8/00:08:08:0b:98/00:00:00:00:00/e3 tag 0 dma<br>
> 4096 in<br>
> [ 1311.792075]          res 51/40:00:0e:0b:98/00:00:00:00:00/e3 Emask<br>
0x9<br>
> (media error)<br>
> [ 1311.792198] ata4.00: status: { DRDY ERR } [ 1311.792247] ata4.00:<br>
> error: { UNC } [ 1311.816427] ata4.00: configured for UDMA/100 [<br>
> 1311.832872] ata4.01: configured for UDMA/133 [ 1311.832893] ata4: EH<br>
> complete [ 1315.745297] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0<br>
<br>
> action 0x0 [ 1315.745356] ata4.00: BMDMA stat 0x5 [ 1315.745407]<br>
> ata4.00: failed command: READ DMA [ 1315.745462] ata4.00: cmd<br>
> c8/00:08:08:0b:98/00:00:00:00:00/e3 tag 0 dma<br>
> 4096 in<br>
> [ 1315.745464]          res 51/40:00:0e:0b:98/00:00:00:00:00/e3 Emask<br>
0x9<br>
> (media error)<br>
> [ 1315.745588] ata4.00: status: { DRDY ERR } [ 1315.745637] ata4.00:<br>
> error: { UNC } [ 1315.768422] ata4.00: configured for UDMA/100 [<br>
> 1315.784891] ata4.01: configured for UDMA/133 [ 1315.784914] sd<br>
> 3:0:0:0: [sda] Unhandled sense code [ 1315.784917] sd 3:0:0:0: [sda]<br>
> Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 1315.784921] sd<br>
> 3:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor] [<br>
> 1315.784928] Descriptor sense data with sense descriptors (in hex):<br>
> [ 1315.784930]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00<br>
> [ 1315.784941]         03 98 0b 0e<br>
> [ 1315.784946] sd 3:0:0:0: [sda] Add. Sense: Unrecovered read error -<br>
> auto reallocate failed [ 1315.784954] sd 3:0:0:0: [sda] CDB: Read(10):<br>
<br>
> 28 00 03 98 0b 08 00 00 08<br>
> 00<br>
> [ 1315.784965] end_request: I/O error, dev sda, sector 60295950 [<br>
> 1315.785044] ata4: EH complete [ 1315.785068] EXT3-fs error (device<br>
> sda1): ext3_get_inode_loc: unable to read inode block - inode=1885681,<br>
<br>
> block=7536737 [ 1315.785203] Aborting journal on device sda1.<br>
> [ 1315.785860] Remounting filesystem read-only [ 1315.895542] EXT3-fs<br>
> error (device sda1) in ext3_new_blocks: Journal has aborted [<br>
> 1315.895634] EXT3-fs error (device sda1) in ext3_orphan_add: Journal<br>
> has aborted [ 1316.207259] EXT3-fs error (device sda1) in<br>
> ext3_reserve_inode_write: IO failure [ 1316.207328] EXT3-fs error<br>
> (device sda1) in ext3_new_inode: IO failure [ 1316.207386] EXT3-fs<br>
> error (device sda1) in start_transaction: Journal has aborted [<br>
> 1316.207460] EXT3-fs error (device sda1) in ext3_create: IO failure<br>
><br>
><br>
> Any suggestions on how to pull off the important data before too late?<br>
<br>
><br>
> Thanks,<br>
><br>
> Mark<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a> To<br>
subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</div></div></blockquote></div><br></div>