Find the answer to your Linux question:
Results 1 to 7 of 7
I'm using FC3 and would like to know how to add a mount to the fstab...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Location
    somewhere in kansas
    Posts
    5

    How to add mount in fstab


    I'm using FC3 and would like to know how to add a mount to the fstab

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    just open up fstab with vi or nano, and the syntax should be self evident:
    Code:
    /path/to/device /path/to/mount/point fstype options 0(in most cases) 0(in most cases)
    so if you wanted to mount a usb flash drive at boot up, taking up device /dev/sda1 at /mnt/usb with a FAT filesystem, the line would be:
    Code:
    /dev/sda1 /mnt/usb vfat defaults 0 0
    -lakerdonald

  3. #3
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Montreal, Canada
    Posts
    1,267
    If ever you need help with the filwsystem, dont hesitate to hit back.
    If you feel like learning, I sugest those two

    Code:
    man fstab
    man mount
    \"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
    \"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Dec 2004
    Location
    somewhere in kansas
    Posts
    5
    What is the point of the last two digits in a fstab statement

  6. #5
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Montreal, Canada
    Posts
    1,267
    they are obsolete for normal use. Since I dont really feel like writing textualy, as my post stated before, read the fstab manual you'll have all the required information

    Greetings
    \"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
    \"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps

  7. #6
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    the two numbers have to do with their fsck order and something else.

  8. #7
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Montreal, Canada
    Posts
    1,267
    Quote Originally Posted by lakerdonald
    ... and something else.


    Here's the full explanation in case you didn't feel like typing man fstab...

    The 5th column in /etc/fstab is the dump option. Dump checks it and uses the number to decide if a filesystem should be backed up. If it's zero, dump will ignore that filesystem. If you take a look at the example fstab, you'll notice that the 5th column is zero in most cases.

    The 6th column is a fsck option. fsck looks at the number in the 6th column to determine in which order the filesystems should be checked. If it's zero, fsck won't check the filesystem.
    \"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
    \"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •