Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] USB drive dead? (Commands to check?)
Date: Sat, 19 Sep 2009 22:21:25
Message-Id: 5bdc1c8b0909191521j72388919w35e54b577b55ae60@mail.gmail.com
1 Hi,
2 I seem to have lost an external USB drive I've been using on my
3 MythTV backend server for video storage. What commands can I try to
4 get it to wake up or at least show me what's working and what isn't?
5 The drive shows under fdisk /dev/sda. I can see the large partition,
6 and it seems to be the right size, according to fdisk anyway, but I
7 cannot mount it using mount, and so far I cannot get e2fsck to do
8 anything. Both of these fail:
9
10
11 mount -t ext2 /dev/sda1 /video
12 mount -t ext3 /dev/sda1 /video
13
14 I have power cycled the drive and I've rebooted the MacMini. Nothing changed.
15
16 Thanks in advance,
17 Mark
18
19 MacMini ~ # fdisk /dev/sda
20
21 The number of cylinders for this disk is set to 19929.
22 There is nothing wrong with that, but this is larger than 1024,
23 and could in certain setups cause problems with:
24 1) software that runs at boot time (e.g., old versions of LILO)
25 2) booting and partitioning software from other OSs
26 (e.g., DOS FDISK, OS/2 FDISK)
27
28 Command (m for help): p
29
30 Disk /dev/sda: 163.9 GB, 163928604672 bytes
31 255 heads, 63 sectors/track, 19929 cylinders
32 Units = cylinders of 16065 * 512 = 8225280 bytes
33 Disk identifier: 0xa9b5c6b5
34
35 Device Boot Start End Blocks Id System
36 /dev/sda1 1 19929 160079661 83 Linux
37
38 Command (m for help):
39
40
41
42 MacMini ~ # df
43 Filesystem 1K-blocks Used Available Use% Mounted on
44 /dev/hda4 75890040 37169416 34865560 52% /
45 udev 10240 156 10084 2% /dev
46 shm 257396 0 257396 0% /dev/shm
47 MacMini ~ # fsck -t ext3 /dev/sda
48 fsck 1.41.3 (12-Oct-2008)
49 e2fsck 1.41.3 (12-Oct-2008)
50 fsck.ext3: Superblock invalid, trying backup blocks...
51 fsck.ext3: Bad magic number in super-block while trying to open /dev/sda
52
53 The superblock could not be read or does not describe a correct ext2
54 filesystem. If the device is valid and it really contains an ext2
55 filesystem (and not swap or ufs or something else), then the superblock
56 is corrupt, and you might try running e2fsck with an alternate superblock:
57 e2fsck -b 8193 <device>
58
59 MacMini ~ # e2fsck -b 8193 /dev/sda
60 e2fsck 1.41.3 (12-Oct-2008)
61 e2fsck: Bad magic number in super-block while trying to open /dev/sda
62
63 The superblock could not be read or does not describe a correct ext2
64 filesystem. If the device is valid and it really contains an ext2
65 filesystem (and not swap or ufs or something else), then the superblock
66 is corrupt, and you might try running e2fsck with an alternate superblock:
67 e2fsck -b 8193 <device>
68
69 MacMini ~ # fsck -t ext3 /dev/sda1
70 fsck 1.41.3 (12-Oct-2008)
71 e2fsck 1.41.3 (12-Oct-2008)
72 fsck.ext3: Attempt to read block from filesystem resulted in short
73 read while tr ying to open /dev/sda1
74 Could this be a zero-length partition?
75 MacMini ~ # e2fsck -b 8193 /dev/sda1
76 e2fsck 1.41.3 (12-Oct-2008)
77 e2fsck: Bad magic number in super-block while trying to open /dev/sda1
78
79 The superblock could not be read or does not describe a correct ext2
80 filesystem. If the device is valid and it really contains an ext2
81 filesystem (and not swap or ufs or something else), then the superblock
82 is corrupt, and you might try running e2fsck with an alternate superblock:
83 e2fsck -b 8193 <device>
84
85 MacMini ~ # e2fsck -b 8193 /dev/sda
86 e2fsck 1.41.3 (12-Oct-2008)
87 e2fsck: Bad magic number in super-block while trying to open /dev/sda
88
89 The superblock could not be read or does not describe a correct ext2
90 filesystem. If the device is valid and it really contains an ext2
91 filesystem (and not swap or ufs or something else), then the superblock
92 is corrupt, and you might try running e2fsck with an alternate superblock:
93 e2fsck -b 8193 <device>
94
95 MacMini ~ #

Replies

Subject Author
[gentoo-user] Re: USB drive dead? (Commands to check?) Mark Knecht <markknecht@×××××.com>
Re: [gentoo-user] USB drive dead? (Commands to check?) Paul Hartman <paul.hartman+gentoo@×××××.com>