On 15/03/2020 12:03, James Harris wrote:
> On 02/03/2020 09:40, wolfgang kern wrote:
>> On 27.02.2020 12:49, James Harris wrote:
>
>>> both IDENTIFYs aborted
>
> ....
>
>>> Do you think there's any way I could read the disk - even just as a
>>> block device - if it does not even know its own IDENTIFY data? Could
>>> I, for example, substitute the IDENTIFY data for an identical or
>>> similar disk?
>>
>> You can try to read LBA-0 in native SATA mode (acts like IDE).
>> And if this worked you can read other LBAs as well.
>
> As I don't have a working OS I've been looking into how I could do this.
> In case it's of any use to someone else the most promising seems to be
> the sg interface under recent versions of Linux.
>
> For IO the idea is that the user sets up the parameters in a header,
> makes the call, and gets the results back. You can see the idea in the
> header fields which are documented at
>
>
https://www.tldp.org/HOWTO/SCSI-Generic-HOWTO/sg_io_hdr_t.html
>
> I gather the sg layer translates between SCSI and ATA and effectively
> issues the corresponding ATA calls.
There's a good prose writeup of sg at
http://sg.danny.cz/sg/p/scsi-generic_long.txt
As an aside to all this can I add that working with file replication
software can be very, very stressful...!
My backup strategy on the machine which failed was basically to have to
reinstall apps but to have data replicated to the cloud. So when I
pulled out an old laptop all I should have had to do to get my data back
was install the cloud-sync software on it and I would be able to carry on.
That worked very will indeed for Dropbox. I installed and configured
Dropbox and it downloaded from the cloud the latest versions of all the
files which I had protected in that way. It worked perfectly. I have all
my project files and other documents back and was able to carry on as
normal. Yay!
But I had other files - mainly media such as photos and videos - on
Google Drive rather than Dropbox. And they were, AIUI, synchronised by
me having Google Backup and Sync installed and running.
Why did I choose Google Backup and Sync? Because while mirroring
services have space limits, Google has a special provision for media
files. If one lets Google store the cloud versions of media in a
compressed form it doesn't count their sizes against one's allocation
limit! That's brilliant for most of my photos. The compression is plenty
good enough and the photos look the same to me. As a result, although in
reality I probably have many gigabytes of media files which Google is
storing it says I am using only 37 megabytes of my allocation!
However, the Google documentation is not the best. And setting Google
Backup and Sync up on this old PC is scary. When I installed it the
first thing it started to do was to delete files! To make things worse,
while I could see the names of the files it had deleted I couldn't find
out from anything in the program where it had been deleting the files
from. That meant I didn't know if they were just old copies which should
have been deleted or current ones in the cloud which it was deleting
because they didn't exist on the PC.
To cut the story short I called Google Support and they helped by
showing where the files had gone from and how to get them back. Given
that, I decided to uninstall Backup and Sync, get the files back to
where they had been deleted from (my PC), make some changes to the file
layout and start again. But that ran into another problem: Backup and
Sync would not uninstall while I had a window open to the copies in the
cloud.
To be clear, that was a browser window. Why would Backup and Sync
require such a window to be closed down before it would uninstall? AISI
any cloud copies should be completely irrelevant to whether I have
Backup and Sync on this PC. I can't think of any reason for Google
wanting that window to be closed. The fear is that Google thinks I am
closing my cloud account and so it would delete everything therein!!!
Surely they wouldn't do that...?! I know this may sound paranoid. But
without clear documentation on what it will do and without another
backup copy elsewhere I can't think of why they would require that
window be closed, and I just can't take the chance.
I'm going to have to do some more research and possibly contact Google
Support again. But, as I say, this stuff can be rather stressful!
Perhaps the whole issue of backup and restore should be better handled
by an OS.
--
James Harris