1 |
On Sat, Sep 19, 2009 at 3:21 PM, Mark Knecht <markknecht@×××××.com> wrote: |
2 |
> Hi, |
3 |
> I seem to have lost an external USB drive I've been using on my |
4 |
> MythTV backend server for video storage. What commands can I try to |
5 |
> get it to wake up or at least show me what's working and what isn't? |
6 |
> The drive shows under fdisk /dev/sda. I can see the large partition, |
7 |
> and it seems to be the right size, according to fdisk anyway, but I |
8 |
> cannot mount it using mount, and so far I cannot get e2fsck to do |
9 |
> anything. Both of these fail: |
10 |
> |
11 |
> |
12 |
> mount -t ext2 /dev/sda1 /video |
13 |
> mount -t ext3 /dev/sda1 /video |
14 |
> |
15 |
> I have power cycled the drive and I've rebooted the MacMini. Nothing changed. |
16 |
> |
17 |
> Thanks in advance, |
18 |
> Mark |
19 |
> |
20 |
> MacMini ~ # fdisk /dev/sda |
21 |
> |
22 |
> The number of cylinders for this disk is set to 19929. |
23 |
> There is nothing wrong with that, but this is larger than 1024, |
24 |
> and could in certain setups cause problems with: |
25 |
> 1) software that runs at boot time (e.g., old versions of LILO) |
26 |
> 2) booting and partitioning software from other OSs |
27 |
> (e.g., DOS FDISK, OS/2 FDISK) |
28 |
> |
29 |
> Command (m for help): p |
30 |
> |
31 |
> Disk /dev/sda: 163.9 GB, 163928604672 bytes |
32 |
> 255 heads, 63 sectors/track, 19929 cylinders |
33 |
> Units = cylinders of 16065 * 512 = 8225280 bytes |
34 |
> Disk identifier: 0xa9b5c6b5 |
35 |
> |
36 |
> Device Boot Start End Blocks Id System |
37 |
> /dev/sda1 1 19929 160079661 83 Linux |
38 |
> |
39 |
> Command (m for help): |
40 |
> |
41 |
> |
42 |
> |
43 |
> MacMini ~ # df |
44 |
> Filesystem 1K-blocks Used Available Use% Mounted on |
45 |
> /dev/hda4 75890040 37169416 34865560 52% / |
46 |
> udev 10240 156 10084 2% /dev |
47 |
> shm 257396 0 257396 0% /dev/shm |
48 |
> MacMini ~ # fsck -t ext3 /dev/sda |
49 |
> fsck 1.41.3 (12-Oct-2008) |
50 |
> e2fsck 1.41.3 (12-Oct-2008) |
51 |
> fsck.ext3: Superblock invalid, trying backup blocks... |
52 |
> fsck.ext3: Bad magic number in super-block while trying to open /dev/sda |
53 |
> |
54 |
> The superblock could not be read or does not describe a correct ext2 |
55 |
> filesystem. If the device is valid and it really contains an ext2 |
56 |
> filesystem (and not swap or ufs or something else), then the superblock |
57 |
> is corrupt, and you might try running e2fsck with an alternate superblock: |
58 |
> e2fsck -b 8193 <device> |
59 |
> |
60 |
> MacMini ~ # e2fsck -b 8193 /dev/sda |
61 |
> e2fsck 1.41.3 (12-Oct-2008) |
62 |
> e2fsck: Bad magic number in super-block while trying to open /dev/sda |
63 |
> |
64 |
> The superblock could not be read or does not describe a correct ext2 |
65 |
> filesystem. If the device is valid and it really contains an ext2 |
66 |
> filesystem (and not swap or ufs or something else), then the superblock |
67 |
> is corrupt, and you might try running e2fsck with an alternate superblock: |
68 |
> e2fsck -b 8193 <device> |
69 |
> |
70 |
> MacMini ~ # fsck -t ext3 /dev/sda1 |
71 |
> fsck 1.41.3 (12-Oct-2008) |
72 |
> e2fsck 1.41.3 (12-Oct-2008) |
73 |
> fsck.ext3: Attempt to read block from filesystem resulted in short |
74 |
> read while tr ying to open /dev/sda1 |
75 |
> Could this be a zero-length partition? |
76 |
> MacMini ~ # e2fsck -b 8193 /dev/sda1 |
77 |
> e2fsck 1.41.3 (12-Oct-2008) |
78 |
> e2fsck: Bad magic number in super-block while trying to open /dev/sda1 |
79 |
> |
80 |
> The superblock could not be read or does not describe a correct ext2 |
81 |
> filesystem. If the device is valid and it really contains an ext2 |
82 |
> filesystem (and not swap or ufs or something else), then the superblock |
83 |
> is corrupt, and you might try running e2fsck with an alternate superblock: |
84 |
> e2fsck -b 8193 <device> |
85 |
> |
86 |
> MacMini ~ # e2fsck -b 8193 /dev/sda |
87 |
> e2fsck 1.41.3 (12-Oct-2008) |
88 |
> e2fsck: Bad magic number in super-block while trying to open /dev/sda |
89 |
> |
90 |
> The superblock could not be read or does not describe a correct ext2 |
91 |
> filesystem. If the device is valid and it really contains an ext2 |
92 |
> filesystem (and not swap or ufs or something else), then the superblock |
93 |
> is corrupt, and you might try running e2fsck with an alternate superblock: |
94 |
> e2fsck -b 8193 <device> |
95 |
> |
96 |
> MacMini ~ # |
97 |
> |
98 |
|
99 |
A little more info: |
100 |
|
101 |
Buffer I/O error on device sda, logical block 12 |
102 |
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08 |
103 |
sd 0:0:0:0: [sda] Sense Key : 0x3 [current] |
104 |
sd 0:0:0:0: [sda] ASC=0x4b ASCQ=0x0 |
105 |
end_request: I/O error, dev sda, sector 96 |
106 |
Buffer I/O error on device sda, logical block 12 |
107 |
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08 |
108 |
sd 0:0:0:0: [sda] Sense Key : 0x3 [current] |
109 |
sd 0:0:0:0: [sda] ASC=0x4b ASCQ=0x0 |
110 |
end_request: I/O error, dev sda, sector 96 |
111 |
Buffer I/O error on device sda, logical block 12 |
112 |
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08 |
113 |
sd 0:0:0:0: [sda] Sense Key : 0x3 [current] |
114 |
sd 0:0:0:0: [sda] ASC=0x4b ASCQ=0x0 |
115 |
end_request: I/O error, dev sda, sector 96 |
116 |
|
117 |
MacMini ~ # fsck -t ext3 /dev/sda1 |
118 |
fsck 1.41.3 (12-Oct-2008) |
119 |
e2fsck 1.41.3 (12-Oct-2008) |
120 |
fsck.ext3: Attempt to read block from filesystem resulted in short |
121 |
read while trying to open /dev/sda1 |
122 |
Could this be a zero-length partition? |
123 |
MacMini ~ # |
124 |
|
125 |
|
126 |
end_request: I/O error, dev sda, sector 95 |
127 |
__ratelimit: 58 callbacks suppressed |
128 |
Buffer I/O error on device sda1, logical block 16 |
129 |
Buffer I/O error on device sda1, logical block 17 |
130 |
Buffer I/O error on device sda1, logical block 18 |
131 |
Buffer I/O error on device sda1, logical block 19 |
132 |
Buffer I/O error on device sda1, logical block 20 |
133 |
Buffer I/O error on device sda1, logical block 21 |
134 |
Buffer I/O error on device sda1, logical block 22 |
135 |
Buffer I/O error on device sda1, logical block 23 |
136 |
Buffer I/O error on device sda1, logical block 24 |
137 |
Buffer I/O error on device sda1, logical block 25 |
138 |
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08 |
139 |
sd 0:0:0:0: [sda] Sense Key : 0x3 [current] |
140 |
sd 0:0:0:0: [sda] ASC=0x4b ASCQ=0x0 |
141 |
end_request: I/O error, dev sda, sector 95 |
142 |
__ratelimit: 86 callbacks suppressed |
143 |
Buffer I/O error on device sda1, logical block 16 |
144 |
Buffer I/O error on device sda1, logical block 17 |
145 |
Buffer I/O error on device sda1, logical block 18 |
146 |
Buffer I/O error on device sda1, logical block 19 |
147 |
Buffer I/O error on device sda1, logical block 20 |
148 |
Buffer I/O error on device sda1, logical block 21 |
149 |
Buffer I/O error on device sda1, logical block 22 |
150 |
Buffer I/O error on device sda1, logical block 23 |
151 |
Buffer I/O error on device sda1, logical block 24 |
152 |
Buffer I/O error on device sda1, logical block 25 |
153 |
MacMini ~ # |
154 |
|
155 |
|
156 |
I could try reinstalling the file system but I had a few backups on |
157 |
this drive for other systems. (non-critical, but possibly useful) I'd |
158 |
like to be sure I cannot recover them before I blow everything away. |
159 |
|
160 |
Thanks, |
161 |
Mark |