To mount a device automatically, register the device into "/etc/fstab".
❑ /etc/fstab(File System TABle) : A configuration file for mounting physical/logical devices.
❍ Format : [Device path or UUID] [Mount path] [File system] [File system option] [Dump option] [Check option]
* The Mount path of swap is "swap".
* File system option
- defaults : read-write, nouser, auto, exec, suid
- user : The mounting is available by general account.
- nouser : The mounting is available by only administrator account.
- auto : Automatic mounting at system boot time.
- noauto : No automatic mounting at system boot time.
- exec : Executing is available.
- suid : SUID, SGID is available.
- nosuid : SUID, SGID is not available.
- ro : Read only.
- rw : Read write.
- usrquota : The disk usage limit per user is available.
- grpquota : The disk usage limit per group is available.
- defaults : read-write, nouser, auto, exec, suid
- user : The mounting is available by general account.
- nouser : The mounting is available by only administrator account.
- auto : Automatic mounting at system boot time.
- noauto : No automatic mounting at system boot time.
- exec : Executing is available.
- suid : SUID, SGID is available.
- nosuid : SUID, SGID is not available.
- ro : Read only.
- rw : Read write.
- usrquota : The disk usage limit per user is available.
- grpquota : The disk usage limit per group is available.
* Dump option : Whether backup or not when using the "dump" command.
- 0 : No back up.
- 1 : Back up.
- 0 : No back up.
- 1 : Back up.
* Check option : Whether to check the file system via "fsck" at system boot time. 1 is recommended to set only the root file system.
- 0 : No file system check.
- 1~N : Priority for file system check.
- 1~N : Priority for file system check.
❍ The information registered in fstab is applied at system reboot.
❍ # mount -a : The command to mount devices manually using information registered in "/etc/fstab".