Linux area automatic mounting and fstab file repair

>>> Linux tutorial directory <<<

File system management-3.2 partition automatic mounting and fstab file repair

Write in the front: If you finish the inspection by yourself, there may be some mistakes. If you find something wrong, you can leave a message or private message me below.

1. / etc / fstab file

  • Field 1: File name or UID of partition device (Universal Unique ID of Hard Disk)
  • Field 2: Mount point
  • Field 3: File system name
  • Field 4: Mounting parameters
  • Field 5: Specify whether the partition is dumped by dump
    • 0 means no backup
    • 1 means daily backup
    • 2 stands for irregular backup
  • Field 6: Specify whether the partition is detected by fsck
    • 0 means no detection
    • Other numbers represent inspection priority
    • 1 has a higher priority than 2, and so on

2. Automatic partition mounting

  • vi /etc/fstab
  • Write the following:
  • /dev/sdb1 /disk1 ext4 defaults 1 2
  • Then use the command mount -a to automatically mount the file according to the configuration.

3. / etc / fstab file repair

  • mount -o remount,rw /

Write in the back: I hope these explanations will be helpful to you, I hope everyone will like and pay attention to it. Your support is my biggest motivation (๑> ؂ <๑)

Published 366 original articles · praised 68 · 50,000+ views

Guess you like

Origin blog.csdn.net/qq_43479432/article/details/105655622