problema grave filesystem ext4

ho un disco con una partizione ext4 dove vedo solo le cartelle e non i file e poi è lento a sfogliare le cartelle , una altra partizione invece dello stesso disco in ntfs funziona bene
come posso provare a ripararlo ? ho dei dati sopra … :beer:
grazie[code][code][root@fedora5 ~]#
[root@fedora5 ~]# fdisk -l
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 82BB00D0-C361-4B13-93EF-8870D703147D

Device Start End Sectors Size Type
/dev/sda1 2048 5592096767 5592094720 2.6T Linux filesystem
/dev/sda2 5592096768 5860530175 268433408 128G Microsoft basic data

Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa617fb14

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT
/dev/sdb2 1026048 245759999 244733952 116.7G 7 HPFS/NTFS/exFAT
/dev/sdb3 245760000 246783999 1024000 500M 83 Linux
/dev/sdb4 246784000 488396799 241612800 115.2G 5 Extended
/dev/sdb5 246786048 488396799 241610752 115.2G 8e Linux LVM

Disk /dev/mapper/fedora-root: 114.2 GiB, 122633060352 bytes, 239517696 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/fedora-swap: 1020 MiB, 1069547520 bytes, 2088960 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@fedora5 ~]#
[root@fedora5 ~]#
[root@fedora5 ~]# fsck.ext4 /dev/sda1
e2fsck 1.43.4 (31-Jan-2017)
/dev/sda1: recovering journal
fsck.ext4: unable to set superblock flags on /dev/sda1

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

[root@fedora5 ~]# mkfs.ext4 -S /dev/sda1
mke2fs 1.43.4 (31-Jan-2017)
Warning: could not erase sector 2: Input/output error
Creating filesystem with 699011840 4k blocks and 174759936 inodes
Filesystem UUID: 37351e9b-ef81-4de5-b8f6-7f6e639a3ab6
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544

Allocating group tables: done
/dev/sda1 may be further corrupted by superblock rewrite
Proceed anyway? (y,N) n

[root@fedora5 ~]#
[root@fedora5 ~]#
[/code][/code]

Assicurati di avere un backup sottomano e prova a seguire la procedura di ripristino (come mai non usi fsck?). Il fatto che ci sia un errore di I/O mi fa pensare che il tuo disco abbia qualche problema.

Per il resto, ext3/4 è un filesystem robustissimo, ed ho recuperato partizioni sulle quali avevo scritto con dd… Davvero incredibile :smiley:

ciao ho laciato un fsck ma dopo 48 ore non aveva ancora finito ( sono 3tb ) poi ho annulato .

ora ho tolto il disco e messo in un case usb si comporta cosi come posso procedere ?

[code][root@fedora27 /]# fdisk -l
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000e85fc

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1026047 1024000 500M 83 Linux
/dev/sda2 1026048 3074047 2048000 1000M 82 Linux swap / Solaris
/dev/sda3 3074048 500117503 497043456 237G 83 Linux

Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 732566646 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device Boot Start End Sectors Size Id Type
/dev/sdb1 1 4294967295 4294967295 16T ee GPT
[root@fedora27 /]#
[root@fedora27 /]#
[root@fedora27 /]# mount /dev/sdb1 /mnt2
mount: /mnt2: special device /dev/sdb1 does not exist.
[root@fedora27 /]#
[root@fedora27 ~]# fsck /dev/sdb1
fsck from util-linux 2.30.2
e2fsck 1.43.5 (04-Aug-2017)
fsck.ext2: No such file or directory while trying to open /dev/sdb1
Possibly non-existent device?
[root@fedora27 ~]#

[/code]

Ciao

Se hai partizioni NTFS presumo che tu abbia anche Windows.
Ci sono parecchi tool per Windows per montare partizioni Ext4, uno di questi è Ex2Fsd
https://www.techgainer.com/how-to-mount-and-access-linux-partitions-ext4ext3ext2-in-windows-explorer-easily/ c’è una guida al riguardo.

Può essere un tentativo da fare, chissà che sia di bocca più buona.

Ciao Ciao, Moreno