How to fix the logical mistaken in the filesystem

0 2446
sometimes, some error may happen on the file system. so we can do the following steps to fix it.
1. Insert your disk into the USB port.
2. run the following command to find the device node.
  1. sudo fdisk -l
Copy the Code
so we can know our device in the picture is /dev/sdb
3. then we can type the command to fix the error.
  1. sudo fsck -f -t ext4 /dev/sdb2
Copy the Code
if the disk has some error, the soft will notify you to deal with them.
You have to log in before you can reply Login | Sign Up

Points Rules