I recently installed Ubuntu 18.04 Server on the nvme drive of a PC. During installation, I chose to use GPT and EXT4. After operating normally for a few weeks, the system had a disk failure, and then would no longer boot directly into the OS.
Booting into the OS is now only possible by selecting the nvme drive as the boot disk from the BIOS. Then, the system will operate normally until there is another disk failure.
To troubleshoot, I tried running fsck: sudo fsck /dev/nvme0n1
. This gives an error, The superblock could not be read or does not describe a valid ext2/ext3/ext4 filesystem
.
However, if I fsck
certain partitions, the result is either the same error or a clean fsck report.
- Partition 1 (
/dev/nvme0n1p1
) is the 1MB boot partition.fsck
ing it gives the superblock error. - Partition 2 (
/dev/nvme0n1p2
) uses the rest of the drive space.fsck
ing it gives the clean results.
My questions are:
- I think Partition 1 may not be EXT4, which is why
fsck
doesn't work. What is the typical file system or organization scheme of the boot partition? - I am trying to fix the periodic disk failure. Would the superblock issue have anything to do with it? If not, how should I troubleshoot further?
- Since the system no longer boots into the OS, I think the boot partition is corrupted. How can I fix this? Is this related to the disk failure?
Here is the output from lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,MODEL | egrep -v "^loop"
NAME FSTYPE LABEL MOUNTPOINT SIZE MODEL
sda 1.8T ST2000DM008-2FR1
└─sda1 ext4 1.8T
sdb iso9660 Ubuntu-Server 18.04.2 LTS amd64 /cdrom 14.9G USB Flash Drive
├─sdb1 iso9660 Ubuntu-Server 18.04.2 LTS amd64 834M
└─sdb2 vfat Ubuntu-Server 18.04.2 LTS amd64 2.4M
nvme0n1 465.8G Samsung SSD 970 EVO Plus 500GB
├─nvme0n1p1 1M
└─nvme0n1p2 ext4 465.8G
Here is the output of sudo parted -l
Model: ATA ST2000DM008-2FR1 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 2000GB 2000GB ext4
Model: Samsung SSD 970 EVO Plus 500GB (nvme)
Disk /dev/nvme0n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 2097kB 1049kB bios_grub
2 2097kB 500GB 500GB ext4
lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,MODEL | egrep -v "^loop"
in your question?boot-repair
. Make sure you back-up/image the sda1 partition first before attempting any of this.