I have been trying to solve the issue for two days now. Let me explain:
Background
System Settings
I have an Acer Nitro-5 Laptop.
The storage settings: 1TB HDD & 256GB Intel ssdpekkw256g7.
The OS settings: Dual boot, Ubuntu 20.4 on HDD, and Windows 10 on SSD.
Origin of the Issue
Lately, my Windows was getting slower every day. I've had it for nearly 5 years.
Two days ago, I started up Windows and the Desktop process kept hanging. Thought it could be a virus or something so I ran a full scan of the system. While it was scanning the power went off and thus my laptop was shut down in the middle of the scan. The problem might've occurred before or after this outage I'm not sure. When I got the power back on and started up Windows, I saw the blue screen:
The blue screen
I logged into Ubuntu to fix the issue. I backed up everything I needed so I'm safe from data loss. Except I lost some data from the SSD.
What I Have Tried
GParted
I tried to check the disk for issues but it said the following:
Cluster accounting failed at 13300092 (0xcaf17c): extra cluster in $Bitmap
Cluster accounting failed at 13300093 (0xcaf17d): extra cluster in $Bitmap
Filesystem check failed!
Totally 999 cluster accounting mismatches. ERROR: NTFS is inconsistent. Run chkdsk /f
on Windows then reboot it TWICE! The usage of the /f parameter is very IMPORTANT! No modification was and will be made to NTFS by this software until it gets repaired.
Windows Safe Mode and ChkDsk
Since I don't have access to Windows directly (remember the blue screen). I tried Hiren's BootCD winPE to gain access to the Windows command prompt. I ran the command and it says one of the three messages below:
Windows cannot run disk checking on this volume because it is write protected
The type of the file system is RAW. CHKDSK is not available for RAW drives.
**This is the most recent one: **
chkdsk g: /f
Stage 2: Examining file name linkage ...
An unspecified error occurred (696e647863686b2e 9cd).
An unspecified error occurred (6e74667363686b2e 1798).
Failed to transfer logged messages to the event log with status 6.
And thus I reached a dead-end for chkdsk.
Formatting the Disk/Partition
I tried to format the partition with Disk Management, Diskpart, GParted, Disks, etc.
They didn't work and either said the I/O error or some unexpected error.
Overwriting The Disk by Installing Ubuntu on SSD
I tried to install another Ubuntu on the SSD and overwrite Windows files. But this wasn't working either and it said 'Error occurred while formatting the disk' or something like that.
Trying to Fix it Through Ubuntu
sudo mkfs.ext4 /dev/nvme0n1p4
I tried to change the file system through Ubuntu but this was the log:
mke2fs 1.45.5 (07-Jan-2020)
/dev/nvme0n1p4 contains a ntfs file system labelled 'OS'
Proceed anyway? (y,N) y
Creating filesystem with 62186249 4k blocks and 15548416 inodes
Filesystem UUID: 98f9d29e-c882-42ca-9b83-d15bb1f1a9cb
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: mkfs.ext4: Input/output error while writing out and closing file system
So I tried to check the bad blocks:
sudo bad blocks -v /dev/nvme0n1
Which resulted in:
Checking blocks 0 to 250059095
Checking for bad blocks (read-only test): 1404620
1404621
1404622
1404623
.
.
.
Basically, it found 1333 bad blocks. But I don't think this is a physical issue since the SSD was working fine until a few days ago.
Using NVME
I used nvme
to check the logs:
Smart Log for NVME device:nvme0n1 namespace-id:ffffffff
critical_warning : 0x9
temperature : 25 C
available_spare : 0%
available_spare_threshold : 10%
percentage_used : 4%
data_units_read : 23,584,781
data_units_written : 22,680,050
host_read_commands : 424,922,169
host_write_commands : 435,538,029
controller_busy_time : 7,189
power_cycles : 3,689
power_on_hours : 10,192
unsafe_shutdowns : 298
media_errors : 716,805
num_err_log_entries : 716,805
Warning Temperature Time : 265
Critical Composite Temperature Time : 0
Thermal Management T1 Trans Count : 0
Thermal Management T2 Trans Count : 0
Thermal Management T1 Total Time : 0
Thermal Management T2 Total Time : 0
I really don't have any idea how to fix it. Can you please help me out?
I would rather not replace the SSD.