The fstab (/etc/fstab) (or file systems table) file is a system configuration file commonly found on Unix systems. It is part of the util-linux package. The fstab file typically lists all available disks and disk partitions, and indicates how they are to be initialized or otherwise integrated into the overall system’s file system. fstab is still used for basic system configuration, notably of a system’s main hard drive and startup file system, but for other uses has been superseded in recent years by automatic mounting.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# # /etc/fstab # # Arch Linux (Partitions) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Swap /dev/sda2 none swap defaults 0 0 # Temp (adjust 256M to your own size) tmpfs /tmp tmpfs nodev,nosuid,noexec,size=256M,mode=1777 0 0 # Boot [ /boot ] /dev/sda1 /boot ext4 rw,relatime,data=ordered 0 2 # Root [ / ] /dev/sda3 / ext4 rw,relatime,data=ordered 0 1 # Home [ /home ] /dev/sda4 /home ext4 rw,nodiratime,noatime,data=ordered 0 2 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Extra Hard Drives #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Use "blkid" to find UUID and create "/hdd/" folder to mount all of this extra hard drives. # HDD-1 [ /dev/sdb ] UUID="#" /hdd/one # HDD-2 [ /dev/sdc ] UUID="#" /hdd/two #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #EOF: fstab |