特殊:Badtitle/NS100:Fstab:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第55行: | 第55行: | ||
* [[UbuntuHelp:UsingUUID|UUID]] | * [[UbuntuHelp:UsingUUID|UUID]] | ||
* http://doc.gwos.org/doku.php/doc:hardware:fstab | * http://doc.gwos.org/doku.php/doc:hardware:fstab | ||
* http://en.wikipedia.org/wiki/Fstab | |||
---- | ---- | ||
[[category:CategoryNeedsExpansion]] | [[category:CategoryNeedsExpansion]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年5月9日 (五) 18:58的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Fstab }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/af | • {{#if: UbuntuHelp:Fstab|Afrikaans| [[::Fstab/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/ar | • {{#if: UbuntuHelp:Fstab|العربية| [[::Fstab/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/az | • {{#if: UbuntuHelp:Fstab|azərbaycanca| [[::Fstab/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/bcc | • {{#if: UbuntuHelp:Fstab|جهلسری بلوچی| [[::Fstab/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/bg | • {{#if: UbuntuHelp:Fstab|български| [[::Fstab/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/br | • {{#if: UbuntuHelp:Fstab|brezhoneg| [[::Fstab/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/ca | • {{#if: UbuntuHelp:Fstab|català| [[::Fstab/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/cs | • {{#if: UbuntuHelp:Fstab|čeština| [[::Fstab/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/de | • {{#if: UbuntuHelp:Fstab|Deutsch| [[::Fstab/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/el | • {{#if: UbuntuHelp:Fstab|Ελληνικά| [[::Fstab/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/es | • {{#if: UbuntuHelp:Fstab|español| [[::Fstab/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/fa | • {{#if: UbuntuHelp:Fstab|فارسی| [[::Fstab/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/fi | • {{#if: UbuntuHelp:Fstab|suomi| [[::Fstab/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/fr | • {{#if: UbuntuHelp:Fstab|français| [[::Fstab/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/gu | • {{#if: UbuntuHelp:Fstab|ગુજરાતી| [[::Fstab/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/he | • {{#if: UbuntuHelp:Fstab|עברית| [[::Fstab/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/hu | • {{#if: UbuntuHelp:Fstab|magyar| [[::Fstab/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/id | • {{#if: UbuntuHelp:Fstab|Bahasa Indonesia| [[::Fstab/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/it | • {{#if: UbuntuHelp:Fstab|italiano| [[::Fstab/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/ja | • {{#if: UbuntuHelp:Fstab|日本語| [[::Fstab/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/ko | • {{#if: UbuntuHelp:Fstab|한국어| [[::Fstab/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/ksh | • {{#if: UbuntuHelp:Fstab|Ripoarisch| [[::Fstab/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/mr | • {{#if: UbuntuHelp:Fstab|मराठी| [[::Fstab/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/ms | • {{#if: UbuntuHelp:Fstab|Bahasa Melayu| [[::Fstab/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/nl | • {{#if: UbuntuHelp:Fstab|Nederlands| [[::Fstab/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/no | • {{#if: UbuntuHelp:Fstab|norsk| [[::Fstab/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/oc | • {{#if: UbuntuHelp:Fstab|occitan| [[::Fstab/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/pl | • {{#if: UbuntuHelp:Fstab|polski| [[::Fstab/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/pt | • {{#if: UbuntuHelp:Fstab|português| [[::Fstab/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/ro | • {{#if: UbuntuHelp:Fstab|română| [[::Fstab/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/ru | • {{#if: UbuntuHelp:Fstab|русский| [[::Fstab/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/si | • {{#if: UbuntuHelp:Fstab|සිංහල| [[::Fstab/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/sq | • {{#if: UbuntuHelp:Fstab|shqip| [[::Fstab/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/sr | • {{#if: UbuntuHelp:Fstab|српски / srpski| [[::Fstab/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/sv | • {{#if: UbuntuHelp:Fstab|svenska| [[::Fstab/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/th | • {{#if: UbuntuHelp:Fstab|ไทย| [[::Fstab/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/tr | • {{#if: UbuntuHelp:Fstab|Türkçe| [[::Fstab/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/vi | • {{#if: UbuntuHelp:Fstab|Tiếng Việt| [[::Fstab/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/yue | • {{#if: UbuntuHelp:Fstab|粵語| [[::Fstab/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/zh | • {{#if: UbuntuHelp:Fstab|中文| [[::Fstab/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/zh-hans | • {{#if: UbuntuHelp:Fstab|中文(简体)| [[::Fstab/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fstab | UbuntuHelp:Fstab | {{#if: | :}}Fstab}}/zh-hant | • {{#if: UbuntuHelp:Fstab|中文(繁體)| [[::Fstab/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Fstab|:Fstab|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Fstab/zh | | {{#ifexist: Fstab/zh | | {{#ifeq: {{#titleparts:Fstab|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Fstab|1|-1|}} | zh | | }}
Introduction
The configuration file /etc/fstab
contains the necessary information to mount the disk. This file comes read at the start of the system and can be modified only by root user.
Content of file
It is possible to visualize this file with the following command:
cat /etc/fstab
or alt-f2 and enter:
gksu gedit /etc/fstab
The result of the previous command will be similar to following:
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/hda1 UUID=12102C02102CEB83 /media/windows ntfs silent,umask=0,locale=it_IT.utf8 0 0 # /dev/hda2 UUID=cee15eca-5b2e-48ad-9735-eae5ac14bc90 none swap sw 0 0 # /dev/hda3 UUID=98E0-6D24 /media/dati vfat defaults,utf8,umask=007,uid=0,gid=46,auto,rw,nouser 0 0 # /dev/hda4 UUID=0aa86c61-0df9-4f1a-8b0b-34abbee6b769 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 0 /dev/hdc /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
Each no-commented line is composed by six fields:
fields | description |
file system | it indicates the devices that contain a file system |
mount point | it indicates the directory (or mount point) from which it will be possible to approach the content of the device (for the swap is not demanded the mount point) |
type | type of file system |
options | options of access to device (the command "mount") |
dump | turn ON/OFF the backup of file system (the command "dump"). This option is obsolete. |
pass | turn ON/OFF the control of coherence of the disc (tells the command "fsck" in which order to check the filesystems - the root device should be 1, all others 2, 0 = no fsck check, which is not advised) |
To get a list of all the UUID's use this command:
ls -l /dev/disk/by-uuid