I. fault symptom: 1. an error is reported during startup. 2. Df & ndash; k. view the disk file system check result. 3. Fdisk & ndash; l check result 4. Fsck/dev/sda check result 2. fault analysis 1. an error is reported when the system is started, fsck check/dev/sda2 partition file system loss I. fault symptom:
1. startup error
2. view the disk file system using Df-kCheck result
3. Fdisk-lCheck result
4. Fsck/dev/sda check results
II. fault analysis
1. an error is reported when the system is started. The fsck check/dev/sda2 partition file system is damaged.
2. during Df-k check, only one mounted file system is found.
3. the Fdisk-l result shows that the/dev/sda disk has bad channels.
4. an error is returned when Fsck-y/dev/sda attempts to fix the issue.
III. troubleshooting steps
1. shut down and replace the 2 TB faulty disk
2. restart the server and enter the single-user mode.
3. mount the root partition
Command: mount-o remount, rw/
4. delete the original disk Mount path
1) command: Vi/etc/fstab
2) comment out the original path as follows:
# UUID = f5a015f9-2466-4c9b-b545-2212b2669905/filesystem ext4 defau
5. restart the server. the hard disk error cannot be found during system startup and disappears.
6. go to the system and view the hard disk
Fdisk-l
Disk/dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Sectorsize (logical/physical): 512 bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk identifier: 0x00000000
7. create a disk partition
Fdisk/dev/sda
8. create a file system
Command: mkfs/dev/sda1
8. create a file system mount point:
Command: mkdir/opt
9. set automatic mounting of the file system
Vim/etc/fstab
Add a row]
/Dev/sda1/opt ext2 defaults 0 0
10. restart and check disk replacement
Command: Df-k
/Dev/sda1 1922858352 68968 1825113784 1%/opt