All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Cordes <peter@cordes.ca>
To: Sergey Zolotarev <szx@live.ru>
Cc: "util-linux@vger.kernel.org" <util-linux@vger.kernel.org>
Subject: Re: Fix partition order killed my hard drive (twice)
Date: Mon, 13 Apr 2015 10:58:15 -0300	[thread overview]
Message-ID: <20150413135815.GC3933@cordes.ca> (raw)
In-Reply-To: <DUB119-W10D0E142F9CF92AA8A3436B4E70@phx.gbl>

On Mon, Apr 13, 2015 at 04:11:05PM +0600, Sergey Zolotarev wrote:
> Hello,
> 
> Is it possible that fdisk could damage / kill a hard drive after using the "Fix partition order" command?
> [...]
> Both of HDDs seem unrecoverable.

 It's probably not the drive that's bad, it's just that your BIOS
won't boot when it's attached.  So boot without, THEN connect it via a
USB adapter.  Or via SATA.  (SATA is electrically safe to hotplug,
thanks to having the ground pins longer than any others, and Linux
handles it just as well as USB.  I never reboot to swap hard drives.
I only reboot to check that my system still boots if I've done
anything that might put that in doubt :P)

 Or set your BIOS to not even look at USB devices while booting.

> could it be the result of a corrupted / bad sector in the place where the partition table is stored?

 A badly-written BIOS could certainly have it's boot-sector detection
code get stuck in an infinite loop with unexpected inputs.  There's no
reason to believe the data read from the sector is anything other than
what fdisk wrote to it.  You can check with smartctl -a /dev/sdX once
you get it connected to a booted-up computer.

-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X(peter@cor , des.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BC

  parent reply	other threads:[~2015-04-13 13:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-13 10:11 Fix partition order killed my hard drive (twice) Sergey Zolotarev
2015-04-13 10:27 ` Ruediger Meier
2015-04-14  2:53   ` Dale R. Worley
2015-04-13 10:31 ` Karel Zak
2015-04-13 13:58 ` Peter Cordes [this message]
     [not found]   ` <DUB119-W317EAA79F1829FA13DAEA6B4E60@phx.gbl>
     [not found]     ` <20150418034306.GF3933@cordes.ca>
2015-04-18  6:25       ` Sergey Zolotarev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150413135815.GC3933@cordes.ca \
    --to=peter@cordes.ca \
    --cc=szx@live.ru \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.