Configuration and understanding of fstab files in Linux

Source: Internet
Author: User

Here is the fstab file on my machine:
label=//ext3 Defaults 1 1
Label=/boot1/boot ext3 Defaults 1 2
TMPFS/DEV/SHM TMPFS Defaults 0 0
Devpts/dev/pts devpts gid=5,mode=620 0 0
Sysfs/sys Sysfs Defaults 0 0
PROC/PROC proc Defaults 0 0
LABEL=SWAP-SDA11 swap swap defaults 0 0
/dev/sda6/mnt/wine VFAT Defaults 0 0
/dev/sda8/mnt/wing NTFS defaults 0 0
You can see that this file has six columns, as explained in the last column below, assuming you are familiar with the Mount command:
1. The 1th column is the file system or storage device that needs to be mounted, here is the G-Disk on my Windows, partition is/DEV/SDA8.
2. The 2nd column is the mount point, which I chose for/mnt/wing.
3. The 3rd column specifies the type of file system or partition, and my G disk is of type NTFS, which is expressed as NTFS under Linux.
File types:
Linux file Systems:ext2, ext3, JFS, ReiserFS, Reiser4, XFS, swap.
Windows:
VFAT = fat, Fat 16
ntfs= NTFS
Note:for NTFS RW ntfs-3g
cd/dvd/iso:iso9660
Network File Systems:
Nfs:server:/shared_directory/mnt/nfs NFS 0 0
SMB://win_box/shared_folder/mnt/samba smbfs rw,credentials=/home/user_name/winbox-credentials.txt 0 0
Auto:the file system type (ext3, iso9660, etc) it detected automatically. Usually works. Used for removable devices (CD/DVD, floppy drives, or Usb/flash drives) as the file system may vary on these devices.
4.4th Column Mount option, refer to man mount for details. Some common options are listed below:
Auto: The system mounts automatically, Fstab is this option by default
Ro:read-only
Rw:read-write
DEFAULTS:RW, suid, Dev, exec, auto, Nouser, and async.
5.5th column Dump option, set whether to let Backup program dump backup file system, 0 is ignored, 1 is backup.
6. The 6th column of the FSCK option tells the FSCK program to check the file system in what order, 0 is ignored.

Configuration and understanding of fstab files in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.