Home

¿fsck.ext3?

hperez

AZmod
Loco por OpenSPA
Fan de OpenSPA
10 Dic 2009
1.659
19
0
Como el deco me está haciendo cosas raras últimamente, estaba pensando en chequear el disco duro por si acaso se hubiera corrompido el sistema de ficheros.

El disco duro está formateado en ext3, pero el deco sólo incluye el comando fsck.ext2, ¿se puede conseguir el fsck.ext3 en algún lado?
 

Fundi

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
19 Mar 2007
11.803
596
0
hperez dijo:
Como el deco me está haciendo cosas raras últimamente, estaba pensando en chequear el disco duro por si acaso se hubiera corrompido el sistema de ficheros.

El disco duro está formateado en ext3, pero el deco sólo incluye el comando fsck.ext2, ¿se puede conseguir el fsck.ext3 en algún lado?

Baja cualquier Live cd de ubuntu y listo.

fsck.ext3 /media/hda2 o donde tengas el disco duro
 

hperez

AZmod
Loco por OpenSPA
Fan de OpenSPA
10 Dic 2009
1.659
19
0
Me refiero a ejecutar el fsck.ext3 desde el propio deco. Para eso necesito un fsck.ext3 compilado para el procesador que lleva.
 

hperez

AZmod
Loco por OpenSPA
Fan de OpenSPA
10 Dic 2009
1.659
19
0
Estoy viendo que el busybox 1.16.1 lleva un fsck, pero no sé si hace algo:

Código:
./fsck -t ext3 -V /dev/hda4
fsck (busybox 1.16.1, 2010-05-25 13:07:21 UTC)
[fsck.ext3 (1) -- ] fsck.ext3 /dev/hda4

(/dev/hda4 es la partición /Download, estoy probando con eso)

Por otro lado he visto que el deco incluye el comando e2fsck, aunque no sé si llevará soporte para ext3. Al pasarlo me sale esto:

Código:
e2fsck -n /dev/hda4
e2fsck 1.41.9 (22-Aug-2009)
Warning!  /dev/hda4 is mounted.
Reading 1 blocks starting at 2
Reading 1 blocks starting at 5
Reading 1 blocks starting at 266
Reading 1 blocks starting at 523
...
Reading 1 blocks starting at 254
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/hda4 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Reading 1 blocks starting at 266
...
Reading 4 blocks starting at 82155
Pass 2: Checking directory structure
Reading 1 blocks starting at 241
...
Reading 1 blocks starting at 253
Pass 3: Checking directory connectivity
Reading 1 blocks starting at 241
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (19012, counted=19735).
Fix? no

Free inodes count wrong (20751, counted=20752).
Fix? no


/dev/hda4: ********** WARNING: Filesystem still has errors **********

/dev/hda4: 17/20768 files (23.5% non-contiguous), 63932/82944 blocks

(Remontando esta partición como read-only, entonces no detecta errores)

He intentado pasar el e2fsck en el disco duro, y "out of memory" :(

Código:
oom-killer: gfp_mask=0xd0, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 0, high 186, batch 31 used:24
cpu 0 cold: low 0, high 62, batch 15 used:23
DMA32 per-cpu: empty
Normal per-cpu: empty
HighMem per-cpu: empty
Free pages:        2980kB (0kB HighMem)
Active:12542 inactive:6079 dirty:0 writeback:67 unstable:0 free:745 slab:3927 mapped:13439 pagetables:185
DMA free:2980kB min:2436kB low:3044kB high:3652kB active:50172kB inactive:24424kB present:371712kB pages_scanned:19639 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA: 84*4kB 16*8kB 2*16kB 0*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2800kB
DMA32: empty
Normal: empty
HighMem: empty
Swap cache: add 51018, delete 50932, find 7282/9598, race 0+0
Free swap  = 0kB
Total swap = 50548kB
Free swap:            0kB
92928 pages of RAM
0 pages of HIGHMEM
67807 reserved pages
5687 pages shared
85 pages swap cached
Out of Memory: Killed process 17633 (CRTVCore).
Out of Memory: Killed process 986 (CRTVCore).
Out of Memory: Killed process 1009 (CRTVCore).
Out of Memory: Killed process 1010 (CRTVCore).
Out of Memory: Killed process 1056 (CRTVCore).
Out of Memory: Killed process 1057 (CRTVCore).
Out of Memory: Killed process 1058 (CRTVCore).
Out of Memory: Killed process 1059 (CRTVCore).
Out of Memory: Killed process 1060 (CRTVCore).
Out of Memory: Killed process 1061 (CRTVCore).
Out of Memory: Killed process 1062 (CRTVCore).
Out of Memory: Killed process 17634 (CRTVCore).
Out of Memory: Killed process 17636 (CRTVCore).
oom-killer: gfp_mask=0xd0, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 0, high 186, batch 31 used:19
cpu 0 cold: low 0, high 62, batch 15 used:24
DMA32 per-cpu: empty
Normal per-cpu: empty
HighMem per-cpu: empty
Free pages:        3612kB (0kB HighMem)
Active:7473 inactive:10907 dirty:0 writeback:546 unstable:0 free:903 slab:4031 mapped:12850 pagetables:164
DMA free:3612kB min:2436kB low:3044kB high:3652kB active:29892kB inactive:43628kB present:371712kB pages_scanned:79660 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA: 243*4kB 36*8kB 1*16kB 1*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 3612kB
DMA32: empty
Normal: empty
HighMem: empty
Swap cache: add 55221, delete 54662, find 7550/9967, race 0+0
Free swap  = 0kB
Total swap = 50548kB
Free swap:            0kB
92928 pages of RAM
0 pages of HIGHMEM
67807 reserved pages
5298 pages shared
559 pages swap cached
Out of Memory: Killed process 19678 (e2fsck).
oom-killer: gfp_mask=0xd0, order=0
Mem-info:
DMA per-cpu:
cpu 0 hot: low 0, high 186, batch 31 used:13
cpu 0 cold: low 0, high 62, batch 15 used:5
DMA32 per-cpu: empty
Normal per-cpu: empty
HighMem per-cpu: empty
Free pages:        2832kB (0kB HighMem)
Active:12378 inactive:6298 dirty:0 writeback:539 unstable:0 free:708 slab:4031 mapped:12879 pagetables:164
DMA free:2832kB min:2436kB low:3044kB high:3652kB active:49512kB inactive:25192kB present:371712kB pages_scanned:98362 all_unreclaimable? yes
lowmem_reserve[]: 0 0 0 0
DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA: 63*4kB 36*8kB 1*16kB 1*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2892kB
DMA32: empty
Normal: empty
HighMem: empty
Swap cache: add 55230, delete 54675, find 7550/9967, race 0+0
Free swap  = 8kB
Total swap = 50548kB
Free swap:            0kB
92928 pages of RAM
0 pages of HIGHMEM
67807 reserved pages
5251 pages shared
557 pages swap cached

Voy a ver si poniendo una swap grande en un pendrive consigo chequear el disco duro...
 

hperez

AZmod
Loco por OpenSPA
Fan de OpenSPA
10 Dic 2009
1.659
19
0
Con una swap de 512 MB en un pendrive he conseguido chequear el disco duro. Ha tardado una eternidad (más de una hora), y parece que no tiene errores, ya que al final lo único que sale es:

Código:
/dev/hdb1: 3120/61063168 files (9.3% non-contiguous), 49783793/122096008 blocks

Para chequear el disco, he usado estas órdenes:

Remontar el disco en modo lectura (aunque sería mejor desmontarlo, pero hay programas usándolo y no me deja):

Código:
mount -o remount,ro /dev/hdb1 /DATA/hdb1

Chequear el disco:

Código:
e2fsck -n /dev/hdb1

La opción -n le dice que no haga ninguna modificación en el disco.

Y por lo que he leído sí es posible chequear una partición ext3 con fsck.ext2, ya que ext3 es en realidad una partición ext2 con un archivo de journaling.