Eu tenho um pequeno servidor em casa com uma unidade externa de 2 TB conectada. Estava funcionando bem por um ano ou mais. Mas há 2 dias o disco externo simplesmente desapareceu do sistema. Tentei remontá-lo, mas recebi alguns erros.
$ sudo mount -t ext3 /dev/sda1 /home/ak/temp/
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
Aqui está a lsblk
output:
$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1,8T 0 disk
└─sda1 8:1 0 1,8T 0 part
sdb 8:16 0 14,9G 0 disk
├─sdb1 8:17 0 11G 0 part /
├─sdb2 8:18 0 1K 0 part
└─sdb5 8:21 0 4G 0 part [SWAP]
e parted
(parted) print all
Model: Seagate Backup+ Desk (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 4096B/4096B
Partition table: msdos
Disk flags:
Number Start End Size Type Filesystem Flags
1 8389kB 2000GB 2000GB primary ext3 bootable
e dmesg
$ dmesg | tail
[75612.935686] sd 2:0:0:0: [sda] tag#1 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
[75612.935692] sd 2:0:0:0: [sda] tag#1 CDB: ATA command pass through(16) 85 06 2c 00 da 00 00 00 00 00 4f 00 c2 00 b0 00
[75626.329846] sd 2:0:0:0: [sda] tag#1 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[75626.329869] sd 2:0:0:0: [sda] tag#1 Sense Key : Medium Error [current]
[75626.329876] sd 2:0:0:0: [sda] tag#1 Add. Sense: Unrecovered read error
[75626.329884] sd 2:0:0:0: [sda] tag#1 CDB: Read(10) 28 00 0e 8d 8a 4a 00 00 1f 00
[75626.329891] blk_update_request: critical medium error, dev sda, sector 1953256016
[75626.332139] JBD2: Failed to read block at offset 71
[75626.431715] JBD2: recovery failed
[75626.431722] EXT4-fs (sda1): error loading journal
tentou
ak@NASBOX:~$ sudo fsck /dev/sda
fsck из util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block when trying to open /dev/sda
The superblock could not be read or does not describe a valid ext2/ext3/ext4
ФС. If the device is valid and it really contains an ext2/ext3/ext4
ФС (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Como posso corrigir isso? Eu preciso de alguns dados dentro.