GNU/Linux (fstab)
Arquivo fstab totalmente comentado.
Categoria: Init
Software: GNU/Linux
[ Hits: 22.609 ]
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
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Meu Fork do Plugin de Integração do CVS para o KDevelop
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Compartilhamento de Rede com samba em modo Público/Anônimo de forma simples, rápido e fácil
Cups: Mapear/listar todas as impressoras de outro Servidor CUPS de forma rápida e fácil
Criando uma VPC na AWS via CLI
Tem como instalar o gerenciador AMD Adrenalin no Ubuntu 24.04? (15)
Tenho dois Link's ( IP VÁLIDOS ), estou tentando fazer o failover... (0)
Pendrive não formata de jeito nenhum (4)