1 |
On Sunday 06 March 2011, Florian Philipp wrote: |
2 |
> Am 06.03.2011 18:07, schrieb Nikos Chantziaras: |
3 |
> > Before leaving home, I started an fsck.ext4 on a filesystem (500GB) |
4 |
> > that |
5 |
> > |
6 |
> > resides on a disk that I suspect is damaged: |
7 |
> > fsck.ext4 -c -c -f /dev/sdb1 |
8 |
> > |
9 |
> > When I came back 10 hours later, it was still checking. After 2 |
10 |
> > hours |
11 |
> > |
12 |
> > more (so it took 12 hours total) it finally finished. The output was: |
13 |
> > e2fsck 1.41.14 (22-Dec-2010) |
14 |
> > Checking for bad blocks (non-destructive read-write test) |
15 |
> > Testing with random pattern: done |
16 |
> > Extra: Updating bad block inode. |
17 |
> > Pass 1: Checking inodes, blocks, and sizes |
18 |
> > Pass 2: Checking directory structure |
19 |
> > Pass 3: Checking directory connectivity |
20 |
> > Pass 4: Checking reference counts |
21 |
> > Pass 5: Checking group summary information |
22 |
> > |
23 |
> > Extra: ***** FILE SYSTEM WAS MODIFIED ***** |
24 |
> > Extra: 11/30531584 files (0.0% non-contiguous), |
25 |
> > 1966902/122096638 blocks |
26 |
> > |
27 |
> > I'm not sure how to read this. Were there any bad blocks or not? |
28 |
> > Is there a way to query the filesystem for the now known bad |
29 |
> > blocks? (The "Updating bad block inode." message suggests that |
30 |
> > such a list is stored directly inside the filesystem.) |
31 |
> |
32 |
> When there is nothing else reported, there was no error. "FILE SYSTEM |
33 |
> WAS MODIFIED" usually just means that a directory "lost+found" was |
34 |
> created. |
35 |
|
36 |
That would be interactive, and it would show up in the console output: |
37 |
|
38 |
fsck from util-linux-ng 2.18 |
39 |
e2fsck 1.41.12 (17-May-2010) |
40 |
Pass 1: Checking inodes, blocks, and sizes |
41 |
Pass 2: Checking directory structure |
42 |
Pass 3: Checking directory connectivity |
43 |
/lost+found not found. Create<y>? yes |
44 |
|
45 |
Pass 3A: Optimizing directories |
46 |
Pass 4: Checking reference counts |
47 |
Pass 5: Checking group summary information |
48 |
|
49 |
/dev/mapper/sda5: ***** FILE SYSTEM WAS MODIFIED ***** |
50 |
/dev/mapper/sda5: 177646/4481024 files (6.7% non-contiguous), |
51 |
10916521/17920370 blocks |
52 |
|
53 |
Anyway I don't worry about the fact that the filesystem was modified, as |
54 |
long as the program doesn't ask for user intervention. As you can see in |
55 |
my case there was a directory optimization. |
56 |
|
57 |
Fsck took a very long time because of "-c" option (you are not taking |
58 |
advantage of the fact that the disk is almost empty), and you specified |
59 |
it twice, so "the bad block scan will be done using a non-destructive |
60 |
read-write test." as stated in the man page, so in the end, nothing to |
61 |
worry about WRT filesystem. |
62 |
|
63 |
You should also check SMART status. |
64 |
|
65 |
Bye |
66 |
Francesco |
67 |
|
68 |
-- |
69 |
Linux Version 2.6.37-gentoo-r1, Compiled #4 SMP PREEMPT Sat Mar 5 |
70 |
16:45:57 CET 2011 |
71 |
Two 2.8GHz AMD Athlon 64 Processors, 4GB RAM, 11255 Bogomips Total |
72 |
aemaeth |