GNU/Linux (fstab)
Arquivo fstab totalmente comentado.
Categoria: Init
Software: GNU/Linux
[ Hits: 22.378 ]
Por: José Lopes
Este é um meta-arquivo fstab, bem comentado e com descrições sobre o preenchimento de cada coluna. Este arquivo traz a configuração padrão de montagem do GNU/Linux (diretório raíz, proc e swap) e ainda exemplo com partição Windows, Disquetes, DVD-ROM, além da montagem de diversos diretórios da árvore de diretórios em partições separadas. Os comentários estão em inglês, mas para aqueles que não entenderem esta linguagem, sugiro acessar o endereço http://www.linuxbsd.com.br/portal/index.php?q=node/66 para esclarecimentos sobre o arquivo.
# FSTAB - File System TABle # NAME .........: fstab # AUTHOR .......: José Lopes de Oliveira Júnior # DESCRIPTION ..: Saves static information about the filesystems. # INSTRUCTIONS .: Copy this file to the /etc directory and give it 644 # permission. #=============================================================================== #=============================================================================== # FIELDS' EXPLANATION # Type "$ man 5 fstab" for more details about these fields. # Type "$ man 8 mount" for more details about mount options and supported # filesystems. #=============================================================================== # 1. The first field, (fs_spec), describes the block special device or remote # filesystem to be mounted. # Ex.: /dev/sda1 # 2. The second field, (fs_file), describes the mount point for the filesystem. # For swap partitions, this field should be specified as `none'. If the name # of the mount point contains spaces these can be escaped as `# FSTAB - File System TABle
# NAME .........: fstab
# AUTHOR .......: José Lopes de Oliveira Júnior
# DESCRIPTION ..: Saves static information about the filesystems.
# INSTRUCTIONS .: Copy this file to the /etc directory and give it 644
# permission.
#===============================================================================
#===============================================================================
# FIELDS' EXPLANATION
# Type "$ man 5 fstab" for more details about these fields.
# Type "$ man 8 mount" for more details about mount options and supported
# filesystems.
#===============================================================================
# 1. The first field, (fs_spec), describes the block special device or remote
# filesystem to be mounted.
# Ex.: /dev/sda1
# 2. The second field, (fs_file), describes the mount point for the filesystem.
# For swap partitions, this field should be specified as `none'. If the name
# of the mount point contains spaces these can be escaped as `{CONTEUDO}40'.
# Ex.: /mnt/cdrom
# 3. The third field, (fs_vfstype), describes the type of the filesystem. Linux
# supports lots of filesystem types, such as adfs, affs, autofs, coda,
# coherent, cramfs, devpts, efs, ext2, ext3, hfs, hpfs, iso9660, jfs, minix,
# msdos, ncpfs, nfs, ntfs, proc, qnx4, reiserfs, romfs, smbfs, sysv, tmpfs,
# udf, ufs, umsdos, vfat, xenix, xfs, and possibly others. For more details,
# see mount(8). For the filesystems currently supported by the running
# kernel, see /proc/filesystems. An entry swap denotes a file or partition to
# be used for swapping, cf. swapon(8). An entry ignore causes the line to be
# ignored. This is useful to show disk partitions which are currently unused.
# Ex.: auto
# 4. The fourth field, (fs_mntops), describes the mount options associated with
# the filesystem.
# Ex.: defaults
# 5. The fifth field, (fs_freq), is used for these filesystems by the dump(8)
# command to determine which filesystems need to be dumped. If the fifth
# field is not present, a value of zero is returned and dump will assume that
# the filesystem does not need to be dumped.
# Ex.: 0
# 6. The sixth field, (fs_passno), is used by the fsck(8) program to determine
# the order in which filesystem checks are done at reboot time. The root
# filesystem should be specified with a fs_passno of 1, and other filesystems
# should have a fs_passno of 2. Filesystems within a drive will be checked
# sequentially, but filesystems on different drives will be checked at the
# same time to utilize parallelism available in the hardware. If the sixth
# field is not present or zero, a value of zero is returned and fsck will
# assume that the filesystem does not need to be checked.
# Ex.: 2
#===============================================================================
# FILESYSTEMS' ENTRIES
#===============================================================================
# Swap Partition ---------------------------------------------------------------
/dev/hda5 none swap defaults 0 0
# Root Filesystem --------------------------------------------------------------
/dev/hda1 / xfs defaults 0 1
# Another System's Mounting Points ---------------------------------------------
/dev/hda6 /tmp xfs defaults 0 2
/dev/hda7 /var xfs defaults 0 2
/dev/hda8 /opt xfs defaults 0 2
/dev/hda9 /usr xfs defaults 0 2
/dev/hda2 /home xfs defaults 0 2
/dev/hda3 /boot xfs defaults 0 2
# Another Operational Systems --------------------------------------------------
/dev/hda10 /mnt/win ntfs noexec,gid=100,uid=100 0 0
# Removable Medias -------------------------------------------------------------
/dev/fd0 /mnt/floppy vfat noauto,owner,user 0 0
/dev/dvdrom /mnt/dvdrom auto noauto,owner,ro,user 0 0
# Proc & TMPFS Filesystems -----------------------------------------------------
none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noexec 0 0
# EOF40'. # Ex.: /mnt/cdrom # 3. The third field, (fs_vfstype), describes the type of the filesystem. Linux # supports lots of filesystem types, such as adfs, affs, autofs, coda, # coherent, cramfs, devpts, efs, ext2, ext3, hfs, hpfs, iso9660, jfs, minix, # msdos, ncpfs, nfs, ntfs, proc, qnx4, reiserfs, romfs, smbfs, sysv, tmpfs, # udf, ufs, umsdos, vfat, xenix, xfs, and possibly others. For more details, # see mount(8). For the filesystems currently supported by the running # kernel, see /proc/filesystems. An entry swap denotes a file or partition to # be used for swapping, cf. swapon(8). An entry ignore causes the line to be # ignored. This is useful to show disk partitions which are currently unused. # Ex.: auto # 4. The fourth field, (fs_mntops), describes the mount options associated with # the filesystem. # Ex.: defaults # 5. The fifth field, (fs_freq), is used for these filesystems by the dump(8) # command to determine which filesystems need to be dumped. If the fifth # field is not present, a value of zero is returned and dump will assume that # the filesystem does not need to be dumped. # Ex.: 0 # 6. The sixth field, (fs_passno), is used by the fsck(8) program to determine # the order in which filesystem checks are done at reboot time. The root # filesystem should be specified with a fs_passno of 1, and other filesystems # should have a fs_passno of 2. Filesystems within a drive will be checked # sequentially, but filesystems on different drives will be checked at the # same time to utilize parallelism available in the hardware. If the sixth # field is not present or zero, a value of zero is returned and fsck will # assume that the filesystem does not need to be checked. # Ex.: 2 #=============================================================================== # FILESYSTEMS' ENTRIES #=============================================================================== # Swap Partition --------------------------------------------------------------- /dev/hda5 none swap defaults 0 0 # Root Filesystem -------------------------------------------------------------- /dev/hda1 / xfs defaults 0 1 # Another System's Mounting Points --------------------------------------------- /dev/hda6 /tmp xfs defaults 0 2 /dev/hda7 /var xfs defaults 0 2 /dev/hda8 /opt xfs defaults 0 2 /dev/hda9 /usr xfs defaults 0 2 /dev/hda2 /home xfs defaults 0 2 /dev/hda3 /boot xfs defaults 0 2 # Another Operational Systems -------------------------------------------------- /dev/hda10 /mnt/win ntfs noexec,gid=100,uid=100 0 0 # Removable Medias ------------------------------------------------------------- /dev/fd0 /mnt/floppy vfat noauto,owner,user 0 0 /dev/dvdrom /mnt/dvdrom auto noauto,owner,ro,user 0 0 # Proc & TMPFS Filesystems ----------------------------------------------------- none /proc proc defaults 0 0 none /dev/shm tmpfs nodev,nosuid,noexec 0 0 # EOF
Atualizar o macOS no Mac - Opencore Legacy Patcher
Crie alias para as tarefas que possuam longas linhas de comando - bash e zsh
Criando um gateway de internet com o Debian
Configuração básica do Conky para mostrar informações sobre a sua máquina no Desktop
Aprenda a criar músicas com Inteligência Artificial usando Suno AI
Instalando Zoom Client no Ubuntu 24.04 LTS
Instalando Zoom Client no Fedora 40
Instalando Navegador Firefox no Debian 12
Bloqueando propagandas no Youtube e outros sites com o uBlocker Origin
Sistema da Coréia do Norte - Red Star OS (59)
Comando interno CD não funciona (16)
Dificuldade em ler binário (12)
Em que pasta/arquivo ficam as configurações das janelas em derivados d... (2)