* Read-only paranoia during data recovery
@ 2005-12-11 22:38 Kenneth Porter
2005-12-12 1:49 ` Douglas Gilbert
0 siblings, 1 reply; 2+ messages in thread
From: Kenneth Porter @ 2005-12-11 22:38 UTC (permalink / raw)
To: linux-scsi
I have a friend who needs to recover some data from a SCSI drive from a SCO
system, and he wants to make sure nothing writes to the drive if he mounts
it on his Linux system. I just want to verify that mounting it read-only is
sufficient and won't attempt to write anything to it. (I recall in the old
days when HD's had a write-protect jumper to protect it at the firmware
level.) Are there other measures he should take?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Read-only paranoia during data recovery
2005-12-11 22:38 Read-only paranoia during data recovery Kenneth Porter
@ 2005-12-12 1:49 ` Douglas Gilbert
0 siblings, 0 replies; 2+ messages in thread
From: Douglas Gilbert @ 2005-12-12 1:49 UTC (permalink / raw)
To: Kenneth Porter; +Cc: linux-scsi
Kenneth Porter wrote:
> I have a friend who needs to recover some data from a SCSI drive from a
> SCO system, and he wants to make sure nothing writes to the drive if he
> mounts it on his Linux system. I just want to verify that mounting it
> read-only is sufficient and won't attempt to write anything to it. (I
> recall in the old days when HD's had a write-protect jumper to protect
> it at the firmware level.) Are there other measures he should take?
Kenneth,
Many SCSI disks still have write protect jumpers, typically
on the same block that selects the SCSI id of the parallel
interface. From recent SCSI disk product manuals, I can see
that Maxtor supports the Software Write Protect (SWP) bit in
the control mode page.
A tool like sdparm could be used to set SWP:
# sdparm --set=SWP --save /dev/sda
You need to be careful that the system you do this on
(or the following dd suggestion) does not automount file
systems.
To be safe, you could copy the contents of the SCSI disk
to the same size or larger disk (ATA or SCSI).
Something like:
# dd if=/dev/sda of=/dev/hdb bs=512
where /dev/sda is your reference disk and /dev/hdb has nothing
important on it and is the same size or larger than /dev/sda **
Then power down the system, remove /dev/sda, power up and
try and mount the SCO partition on /dev/hdb . After getting
the data from /dev/hdb you may need to use fdisk to repartition
it (so that its extra size is not wasted).
** Using a command like 'fdisk -ul', is one way of checking
that a disk has been copied. Keeping the first 63 sectors
of the original /dev/hdb may also be prudent:
"dd if=/dev/hdb of=hdb_0_62.img bs=512 count=63"
Doug Gilbert
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-12 1:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-11 22:38 Read-only paranoia during data recovery Kenneth Porter
2005-12-12 1:49 ` Douglas Gilbert
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.