Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1475780

Preventing the kernel to perform i/o on plugged in HDD

From David Balažic <xerces9@gmail.com>
Newsgroups linux.kernel
Subject Preventing the kernel to perform i/o on plugged in HDD
Date 2016-09-03 21:30 +0200
Message-ID <sdoNz-Sw-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi!

I'm trying to rescue some data from a damaged HDD (attached over USB)
and run into the problem that when reading from a damaged part of the
drive, it goes into "panic mode" and refusing access even to good
parts (happened before with other drive).

As the kernel reads the partitioning related sectors at plugin time,
it can trigger this "panic mode" if those sectors are damaged.

I patched my kernel to not read the partitions (a new sysctl that
makes check_partition() just return when set), but it (or something)
still tries to access a few sectors (apparently at the end of the
disk) that again fail.

Question: What access besides partition related is done by the kernel?

Info: Userspace is sysrescd 4.8.1 (I just changed the kernel)

Regards,
David

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Preventing the kernel to perform i/o on plugged in HDD David Balažic <xerces9@gmail.com> - 2016-09-03 21:30 +0200

csiph-web