por algum motivo depois de atualizar o meu archlinux, o gerenciador de inicialização foi quebrado e não conseguiu carregar o sistema operacional novamente
Error loading \vmlinuz-linux: Device Error
Failed to execute Arch Linux (\vmlinuz-linux): Device Error
Failed to execute EFI Default Loader (\EFI\Boot\bootx64.efi): Device Error
Eu pensei que reinstalar o bootloader vai fazer o truque, então eu tentei chroot e reinstalar o bootloader de uma unidade USB live linux depois de montar o "/" e "/ boot" Eu estupidamente virou do sistema sem desmontar a unidade e decidiu para fazer isso depois.
poucas horas depois, liguei meu laptop, mas até o bootloader acabou!
~$ sudo gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************
Command (? for help): p
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 19053A85-EAC7-4958-889B-C1C78B8655FA
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 976773101 sectors (465.8 GiB)
Number Start (sector) End (sector) Size Code Name
Command (? for help): r
Recovery/transformation command (? for help): v
No problems found. 976773101 free sectors (465.8 GiB) available in 1
segments, the largest of which is 976773101 (465.8 GiB) in size.
Recovery/transformation command (? for help): e
Warning! This will probably do weird things if you've converted an MBR to
GPT form and haven't yet saved the GPT! Proceed? (Y/N): Y
Caution! After loading partitions, the CRC doesn't check out!
Recovery/transformation command (? for help): p
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 19053A85-EAC7-4958-889B-C1C78B8655FA
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 62916607 30.0 GiB 8300 Root
2 62916608 104859647 20.0 GiB 8300 Var
3 104859648 950011903 403.0 GiB 8300 Home
4 950011904 975177727 12.0 GiB 8200 SWAP
5 975177728 976773134 779.0 MiB EF00 UEFI
Recovery/transformation command (? for help): v
Problem: The CRC for the main partition table is invalid. This table may be
corrupt. Consider loading the backup partition table ('c' on the recovery &
transformation menu). This report may be a false alarm if you've already
corrected other problems.
Caution: The CRC for the backup partition table is invalid. This table may
be corrupt. This program will automatically create a new backup partition
table when you save your partitions.
Identified 2 problems!
Recovery/transformation command (? for help): c
Warning! This will probably do weird things if you've converted an MBR to
GPT form and haven't yet saved the GPT! Proceed? (Y/N): Y
Warning! Read error 5! Misbehavior now likely!
Caution! After loading partitions, the CRC doesn't check out!
Recovery/transformation command (? for help): p
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 19053A85-EAC7-4958-889B-C1C78B8655FA
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 62916607 30.0 GiB 8300 Root
2 62916608 104859647 20.0 GiB 8300 Var
3 104859648 950011903 403.0 GiB 8300 Home
4 950011904 975177727 12.0 GiB 8200 SWAP
5 975177728 976773134 779.0 MiB EF00 UEFI
Recovery/transformation command (? for help): v
Problem: The CRC for the main partition table is invalid. This table may be
corrupt. Consider loading the backup partition table ('c' on the recovery &
transformation menu). This report may be a false alarm if you've already
corrected other problems.
Caution: The CRC for the backup partition table is invalid. This table may
be corrupt. This program will automatically create a new backup partition
table when you save your partitions.
Identified 2 problems!
Recovery/transformation command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): Y
OK; writing new GUID partition table (GPT) to /dev/sda.
Unable to save backup partition table! Perhaps the 'e' option on the experts'
menu will resolve this problem.
Warning! An error was reported when writing the partition table! This error
MIGHT be harmless, or the disk might be damaged! Checking it is advisable.
Recovery/transformation command (? for help):
resultado do badblocks
ubuntu@ubuntu:-$ sudo badblocks -v /dev/sda
Checking blocks 0 to 488386583
checking for bad blocks (read-only test):
488386564
488386565
488386566
488386567
done Pass completed, 4 bad blocks found. (4/0/0 errors)
e este é o resultado do teste S.M.A.R.T
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.13.0-16-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Blue Mobile
Device Model: WDC WD5000LPVX-08V0TT2
Serial Number: WD-WX11A8358018
LU WWN Device Id: 5 0014ee 6591997bb
Firmware Version: 03.01A03
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun Dec 17 07:54:09 2017 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 113) The previous self-test completed having
the read element of the test failed.
Total time to complete Offline
data collection: ( 8640) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 100) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x7035) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 272
3 Spin_Up_Time 0x0027 155 149 021 Pre-fail Always - 1216
4 Start_Stop_Count 0x0032 040 040 000 Old_age Always - 60389
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002f 199 196 051 Pre-fail Always - 35
9 Power_On_Hours 0x0032 078 078 000 Old_age Always - 16469
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 097 097 000 Old_age Always - 3701
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 0
193 Load_Cycle_Count 0x0032 065 065 000 Old_age Always - 406879
194 Temperature_Celsius 0x0022 099 085 000 Old_age Always - 44
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0
240 Head_Flying_Hours 0x0032 080 080 000 Old_age Always - 15286
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed: read failure 10% 16468 976773128
# 2 Extended offline Aborted by host 90% 16466 -
# 3 Short offline Completed: read failure 60% 16465 976773128
# 4 Short offline Completed: read failure 60% 16465 976773128
# 5 Short offline Completed: read failure 60% 16465 976773128
# 6 Conveyance offline Completed without error 00% 16465 -
# 7 Extended offline Completed: read failure 10% 16460 976773128
# 8 Short offline Completed: read failure 60% 16459 976773128
# 9 Conveyance offline Aborted by host 90% 16459 -
#10 Vendor (0x50) Completed without error 00% 427 -
#11 Short offline Completed without error 00% 427 -
#12 Vendor (0x50) Completed without error 00% 0 -
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
Tags hard-disk