Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6905823
  • 博文数量: 637
  • 博客积分: 10265
  • 博客等级: 上将
  • 技术积分: 6165
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-12 22:00
文章分类

全部博文(637)

文章存档

2011年(1)

2010年(1)

2009年(3)

2008年(12)

2007年(44)

2006年(156)

2005年(419)

2004年(1)

分类: LINUX

2005-12-16 15:34:14


虽然以前会以葫芦画瓢的把fstab写好,也能用,但一直不理解最后一栏的1和2的区别,这次总算耐着性子去查了

The first column is the filesystem device that you wish to mount. Normally it will be something like /dev/hda1 for a physical hard drive, but can be in many other forms. For example, to access a Windows network, you'd use something like //host/share in this column.

The second column is simply the mountpoint, or the directory you'd like the filesystem attached to.

The third column is the filesystem type. It can be the type of filesystem on the hard drive, like vfat, ext3 or reiserfs or it can be a network protocol like cifs or nfs. Enter auto here if you aren't sure of the type or if the type isn't always the same (such as for a USB stick)

The fourth column is for mount options. Typically you'd just use default here. In this FAQ we used this column to set the umask for the filesystem, allowing users to write to it.

The fifth column is used by the dump backup program. This isn't used much anymore, so just put a 0 here unless you know otherwise.

The sixth column is the order in which the filesystems will be checked on every boot. Put a 1 for your root partition and a 2 for all other partitions. If a partition doesn't need checked, put a 0 here.

阅读(1021) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~