LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fstab question (https://www.linuxquestions.org/questions/linux-newbie-8/fstab-question-198921/)

phoenix99 06-28-2004 10:20 PM

fstab question
 
what is the meaning of the 0 0 at the end of
/dev/sda1 /mnt/usb ntfs user,exec,auto 0 0
in fstab ?

Thanks !

ranger_nemo 06-28-2004 10:32 PM

From "man fstab"...
Code:

      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.

      The sixth field, (fs_passno), is used by the fsck(8) program to  deter-
      mine 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.


darthtux 06-28-2004 10:35 PM

The first 0 field sets that filesystem to not be "dumped" or backed up with the dump command.

The second 0 is the order to be checked with fsck at boot. The root filesystem should be set to 1 and any others you want checked to 2

For more information see
man fstab

phoenix99 06-29-2004 01:30 PM

Great !
Tanks A Lot !
I'll begin to use man more often :)


All times are GMT -5. The time now is 07:36 PM.