From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-100537-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1Mp8Zn-0001y4-Jd
	for garchives@archives.gentoo.org; Sat, 19 Sep 2009 22:38:43 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9D62BE0931;
	Sat, 19 Sep 2009 22:38:41 +0000 (UTC)
Received: from mail-yw0-f196.google.com (mail-yw0-f196.google.com [209.85.211.196])
	by pigeon.gentoo.org (Postfix) with ESMTP id 78689E0931
	for <gentoo-user@lists.gentoo.org>; Sat, 19 Sep 2009 22:38:41 +0000 (UTC)
Received: by ywh34 with SMTP id 34so2638524ywh.10
        for <gentoo-user@lists.gentoo.org>; Sat, 19 Sep 2009 15:38:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:content-type
         :content-transfer-encoding;
        bh=j+E3+OFZtyIbSWr7NJaE7gMXM87FZrD7NJ2EHrhWKxA=;
        b=DQChZJenGEiMmbObA1HKBdMr6IV5dILuGyQhaOaq7/sEJnsMCP9hTbjg+H9HoVTdsn
         afSDoF8JkxvpbMNHi/FRKNo3xyzASrlVI16j9mJDiH+dgt5vMO8aqg+eQ7kKbCzyRQzQ
         GoLKoxwgtRgma2cBIcsGslkl1PrkAd6Yy01VM=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:content-transfer-encoding;
        b=BoBGCAaZtp977FzrvO9yI2x8dFLpe9kPO3k11H4SdpMM2pm7ReCNNEXeOa4P4nxoUk
         aU2TCMUw8xONO/UwaOtv1mRYABfqqlcypspL5k8+Dy5HBLxUpmAEc7g6VdQjZTo0HEUy
         aGA9vDXWLkmbwWsXb/jJ7N1vIXJYPgm7Zpmsw=
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.151.25.7 with SMTP id c7mr5739318ybj.236.1253399921215; Sat, 
	19 Sep 2009 15:38:41 -0700 (PDT)
In-Reply-To: <5bdc1c8b0909191521j72388919w35e54b577b55ae60@mail.gmail.com>
References: <5bdc1c8b0909191521j72388919w35e54b577b55ae60@mail.gmail.com>
Date: Sat, 19 Sep 2009 15:38:41 -0700
Message-ID: <5bdc1c8b0909191538h2ebf7697s742f2ee90bb9752a@mail.gmail.com>
Subject: [gentoo-user] Re: USB drive dead? (Commands to check?)
From: Mark Knecht <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 0efa5736-fa09-43b1-b25a-8b88f114aa7f
X-Archives-Hash: 8f2422430f91bf05da39b2adcfe08786

On Sat, Sep 19, 2009 at 3:21 PM, Mark Knecht <markknecht@gmail.com> wrote:
> Hi,
> =C2=A0 I seem to have lost an external USB drive I've been using on my
> MythTV backend server for video storage. What commands can I try to
> get it to wake up or at least show me what's working and what isn't?
> The drive shows under fdisk /dev/sda. I can see the large partition,
> and it seems to be the right size, according to fdisk anyway, but I
> cannot mount it using mount, and so far I cannot get e2fsck to do
> anything. Both of these fail:
>
>
> mount -t ext2 /dev/sda1 /video
> mount -t ext3 /dev/sda1 /video
>
> =C2=A0 I have power cycled the drive and I've rebooted the MacMini. Nothi=
ng changed.
>
> Thanks in advance,
> Mark
>
> MacMini ~ # fdisk /dev/sda
>
> The number of cylinders for this disk is set to 19929.
> There is nothing wrong with that, but this is larger than 1024,
> and could in certain setups cause problems with:
> 1) software that runs at boot time (e.g., old versions of LILO)
> 2) booting and partitioning software from other OSs
> =C2=A0 (e.g., DOS FDISK, OS/2 FDISK)
>
> Command (m for help): p
>
> Disk /dev/sda: 163.9 GB, 163928604672 bytes
> 255 heads, 63 sectors/track, 19929 cylinders
> Units =3D cylinders of 16065 * 512 =3D 8225280 bytes
> Disk identifier: 0xa9b5c6b5
>
> =C2=A0 Device Boot =C2=A0 =C2=A0 =C2=A0Start =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
End =C2=A0 =C2=A0 =C2=A0Blocks =C2=A0 Id =C2=A0System
> /dev/sda1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 =C2=A0 =C2=
=A0 =C2=A0 19929 =C2=A0 160079661 =C2=A0 83 =C2=A0Linux
>
> Command (m for help):
>
>
>
> MacMini ~ # df
> Filesystem =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1K-blocks =C2=A0 =C2=A0 =C2=
=A0Used Available Use% Mounted on
> /dev/hda4 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 75890040 =C2=A0371694=
16 =C2=A034865560 =C2=A052% /
> udev =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 10240 =C2=A0 =C2=A0 =C2=A0 156 =C2=A0 =C2=A0 10084 =C2=A0 2% /dev
> shm =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 257396 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0257396 =C2=A0 0% /dev/sh=
m
> MacMini ~ # fsck -t ext3 /dev/sda
> fsck 1.41.3 (12-Oct-2008)
> e2fsck 1.41.3 (12-Oct-2008)
> fsck.ext3: Superblock invalid, trying backup blocks...
> fsck.ext3: Bad magic number in super-block while trying to open /dev/sda
>
> The superblock could not be read or does not describe a correct ext2
> filesystem. =C2=A0If the device is valid and it really contains an ext2
> filesystem (and not swap or ufs or something else), then the superblock
> is corrupt, and you might try running e2fsck with an alternate superblock=
:
> =C2=A0 =C2=A0e2fsck -b 8193 <device>
>
> MacMini ~ # e2fsck -b 8193 /dev/sda
> e2fsck 1.41.3 (12-Oct-2008)
> e2fsck: Bad magic number in super-block while trying to open /dev/sda
>
> The superblock could not be read or does not describe a correct ext2
> filesystem. =C2=A0If the device is valid and it really contains an ext2
> filesystem (and not swap or ufs or something else), then the superblock
> is corrupt, and you might try running e2fsck with an alternate superblock=
:
> =C2=A0 =C2=A0e2fsck -b 8193 <device>
>
> MacMini ~ # fsck -t ext3 /dev/sda1
> fsck 1.41.3 (12-Oct-2008)
> e2fsck 1.41.3 (12-Oct-2008)
> fsck.ext3: Attempt to read block from filesystem resulted in short
> read while tr =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ying to open /dev/=
sda1
> Could this be a zero-length partition?
> MacMini ~ # e2fsck -b 8193 /dev/sda1
> e2fsck 1.41.3 (12-Oct-2008)
> e2fsck: Bad magic number in super-block while trying to open /dev/sda1
>
> The superblock could not be read or does not describe a correct ext2
> filesystem. =C2=A0If the device is valid and it really contains an ext2
> filesystem (and not swap or ufs or something else), then the superblock
> is corrupt, and you might try running e2fsck with an alternate superblock=
:
> =C2=A0 =C2=A0e2fsck -b 8193 <device>
>
> MacMini ~ # e2fsck -b 8193 /dev/sda
> e2fsck 1.41.3 (12-Oct-2008)
> e2fsck: Bad magic number in super-block while trying to open /dev/sda
>
> The superblock could not be read or does not describe a correct ext2
> filesystem. =C2=A0If the device is valid and it really contains an ext2
> filesystem (and not swap or ufs or something else), then the superblock
> is corrupt, and you might try running e2fsck with an alternate superblock=
:
> =C2=A0 =C2=A0e2fsck -b 8193 <device>
>
> MacMini ~ #
>

A little more info:

Buffer I/O error on device sda, logical block 12
sd 0:0:0:0: [sda] Result: hostbyte=3D0x00 driverbyte=3D0x08
sd 0:0:0:0: [sda] Sense Key : 0x3 [current]
sd 0:0:0:0: [sda] ASC=3D0x4b ASCQ=3D0x0
end_request: I/O error, dev sda, sector 96
Buffer I/O error on device sda, logical block 12
sd 0:0:0:0: [sda] Result: hostbyte=3D0x00 driverbyte=3D0x08
sd 0:0:0:0: [sda] Sense Key : 0x3 [current]
sd 0:0:0:0: [sda] ASC=3D0x4b ASCQ=3D0x0
end_request: I/O error, dev sda, sector 96
Buffer I/O error on device sda, logical block 12
sd 0:0:0:0: [sda] Result: hostbyte=3D0x00 driverbyte=3D0x08
sd 0:0:0:0: [sda] Sense Key : 0x3 [current]
sd 0:0:0:0: [sda] ASC=3D0x4b ASCQ=3D0x0
end_request: I/O error, dev sda, sector 96

MacMini ~ # fsck -t ext3 /dev/sda1
fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
fsck.ext3: Attempt to read block from filesystem resulted in short
read while trying to open /dev/sda1
Could this be a zero-length partition?
MacMini ~ #


end_request: I/O error, dev sda, sector 95
__ratelimit: 58 callbacks suppressed
Buffer I/O error on device sda1, logical block 16
Buffer I/O error on device sda1, logical block 17
Buffer I/O error on device sda1, logical block 18
Buffer I/O error on device sda1, logical block 19
Buffer I/O error on device sda1, logical block 20
Buffer I/O error on device sda1, logical block 21
Buffer I/O error on device sda1, logical block 22
Buffer I/O error on device sda1, logical block 23
Buffer I/O error on device sda1, logical block 24
Buffer I/O error on device sda1, logical block 25
sd 0:0:0:0: [sda] Result: hostbyte=3D0x00 driverbyte=3D0x08
sd 0:0:0:0: [sda] Sense Key : 0x3 [current]
sd 0:0:0:0: [sda] ASC=3D0x4b ASCQ=3D0x0
end_request: I/O error, dev sda, sector 95
__ratelimit: 86 callbacks suppressed
Buffer I/O error on device sda1, logical block 16
Buffer I/O error on device sda1, logical block 17
Buffer I/O error on device sda1, logical block 18
Buffer I/O error on device sda1, logical block 19
Buffer I/O error on device sda1, logical block 20
Buffer I/O error on device sda1, logical block 21
Buffer I/O error on device sda1, logical block 22
Buffer I/O error on device sda1, logical block 23
Buffer I/O error on device sda1, logical block 24
Buffer I/O error on device sda1, logical block 25
MacMini ~ #


I could try reinstalling the file system but I had a few backups on
this drive for other systems. (non-critical, but possibly useful) I'd
like to be sure I cannot recover them before I blow everything away.

Thanks,
Mark