From: Mark Knecht <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: USB drive dead? (Commands to check?)
Date: Sat, 19 Sep 2009 16:40:58 -0700 [thread overview]
Message-ID: <5bdc1c8b0909191640x7f04baddgc5d42622a62808a5@mail.gmail.com> (raw)
In-Reply-To: <h93oh5$2fe$1@ger.gmane.org>
On Sat, Sep 19, 2009 at 4:12 PM, walt <w41ter@gmail.com> wrote:
> On 09/19/2009 03:38 PM, Mark Knecht wrote:
>>
>> On Sat, Sep 19, 2009 at 3:21 PM, Mark Knecht<markknecht@gmail.com> wrote:
>>>
>>> Hi,
>>> 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 hate to be the party poop, but I suspect disk hardware failure.
>
> Can you use dd to read the raw disk? e.g.
> # dd if=/dev/sda of=/tmp/ddout bs=512 count=1024(or whatever)
>
Hi Walt,
Don't worry about it. If it's dead it's dead.
I've actually managed to make some headway. After fiddling around
with e2fsck -b 32768 /dev/sda1 the drive is now mountable but running
e2fsck after a reboot says the drive still has errors:
MacMini ~ # e2fsck /dev/sda1
e2fsck 1.41.3 (12-Oct-2008)
/dev/sda1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
^C/dev/sda1: e2fsck canceled.
/dev/sda1: ********** WARNING: Filesystem still has errors **********
MacMini ~ #
If I mount the drive I can actually see all the MythTV files and
amazingly they still seem to play so I don't think the drive is dead.
I got a few messages about my backup directory being hosed so I
attempted to delete it. Now the drive mounts but the sizes and things
are messed up:
MacMini ~ # mount
/dev/hda4 on / type ext3 (rw,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
/dev/sda1 on /video type ext3 (rw)
MacMini ~ # df /video
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 157566568 -1551528 151114116 - /video
MacMini ~ #
MacMini ~ # ls /video/
1003_20090531163000.mpg.png 1042_20090611190000.mpg.png
1189_20090617183000.mpg.png
1003_20090603173000.mpg.png 1042_20090911210000.mpg
1189_20090619183000.mpg
1003_20090621163000.mpg.png 1042_20090911210000.mpg.png
<SNIP>
1017_20090817193000.mpg.png 1189_20090617183000.mpg lost+found
1042_20090611170000.mpg.png 1189_20090617183000.mpg.100x75.png
MacMini ~ #
Now, my question is how can I use the file system tools to fix all the
tables on this drive?
I see Volker is suggesting ddrescue. As it seems I've already lost the
Windows backup files but have good MYthTV files is there a way to
repair the disk tables and only end up with the existing Myth files
and clean tables? I don't have another disk to copy all this stuff to
and the MacMini is headless and PPC-based so it's difficult to use
gparted or anything like that.
I think the existing Myth files are possibly small enough that I could
store them temporarily on the Mac while I rebuild the USB drive.
Thanks,
Mark
next prev parent reply other threads:[~2009-09-19 23:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-19 22:21 [gentoo-user] USB drive dead? (Commands to check?) Mark Knecht
2009-09-19 22:38 ` [gentoo-user] " Mark Knecht
2009-09-19 22:59 ` Volker Armin Hemmann
2009-09-19 23:05 ` Mark Knecht
2009-09-19 23:12 ` walt
2009-09-19 23:32 ` Volker Armin Hemmann
2009-09-19 23:40 ` Mark Knecht [this message]
2009-09-19 23:48 ` Volker Armin Hemmann
2009-09-20 0:01 ` Mark Knecht
2009-09-20 10:24 ` Stroller
2009-09-20 18:41 ` Mark Knecht
2009-09-21 8:21 ` Neil Bothwick
2009-09-21 21:38 ` Mark Knecht
2009-09-21 19:07 ` [gentoo-user] " Paul Hartman
2009-09-21 21:39 ` Mark Knecht
2009-09-22 20:20 ` Mark Knecht
2009-09-24 19:02 ` Mick
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=5bdc1c8b0909191640x7f04baddgc5d42622a62808a5@mail.gmail.com \
--to=markknecht@gmail.com \
--cc=gentoo-user@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox