In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to modify the mount partition table fstab of Linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to modify Linux's mount partition table fstab"!
First of all, please take a look at the following example and remember to back up a copy before you modify it:
Sudo cp / etc/fstab / etc/fstab.bak
# / dev/sda9
UUID=e6496924-053a-498f-a8a1-283e9cefd5c1 / ext3 defaults,errors=remount-ro 0 1
The * column represents the name of the disk partition, the second column represents the mount point, the third column is the file system, the fourth column is the mount option, the fifth column is the dump option (represented by a number), and the sixth column (the following number) represents the file system check option.
* columns (red), two columns (blue): disk partition and default mount point
The partition here is represented by UUID, and the partition of the device is indicated in the * * line comment.
The default mount point, that is, if you do not specify a different directory when you mount, the system mounts the device to this directory
Each folder of the mount point in ubuntu is generally placed in the / media directory
According to the contents of fstab, when you enter a command
$mount / dev/fd0
Your floppy drive will be mounted to / media/floppy, and the system has been told in fstab where the floppy drive should be mounted
Third column (green): type of file system
File system refers to the partition type selected when formatting partitions. For example, NTFS and FAT partition systems are generally used in Windows, and ext partition systems are generally used in Linux.
Auto: if the third column is auto, the type of file system will be automatically detected
Fourth column (purple): Mount option
Separate multiple options with commas
Defauts is mounted by default and will be loaded automatically at startup. If this item is noauto, it means to mount the device manually, and run the mount command to mount the partition.
The user and nouser:user options allow ordinary users to mount the device, while nouser only allows root users to mount the device
Exec and noexec: exec indicates that executable programs in this partition can be run, while noexec cannot run programs in it
Ro: Mount this partition as read-only, which can be used to install the partition on Windows's system to avoid misoperation.
Rw: Mount the system with readable and writable properties
Sync and async: whether to buffer the write operation of the file, that is, save the file to a buffer first, and then write a piece to disk
For removable disks such as USB drives, they should be written to the disk immediately, or execute the umount command before unplugging to ensure the correct transfer of files.
Async is a buffered write operation
Defaults: all use default configurations, including rw, suid, dev, exec, auto, nouser, and async
Fifth and sixth columns: dump and fsck options
Dump is a backup tool. General / partition is backed up. Fsck is a file system scan and check tool. Default is 1. If 2 means other partition systems.
For Windows's ntfs partition system, the mount options are somewhat different:
# / dev/sda6
UUID=D404C65004C634F0 / media/sda6 ntfs defaults,umask=007,gid=46 0 1
Where umask is the permission and gid is the group id
At this point, I believe that everyone on the "Linux mount partition table fstab how to modify" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.