How to edit fstab?

Support for security such as Firewalls and securing linux
User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to edit fstab?

Post by TrevorH » 2013/10/05 15:01:27

[quote]
what is the difference between 0777 and 1777?
[/quote]

`man chmod` details the various bit settings but the 1 is 'sticky'. It's required for /tmp

[quote]
mount -a returns nothing for me!
[/quote]

Means there were no errors while mounting all available filesystems in fstab

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: How to edit fstab?

Post by scottro » 2013/10/05 18:10:29

I have a good article, written by someone else, and on my pages with his permission, at http://home.roadrunner.com/~computertaijutsu/chmod.html

Makes it, IMHO, easy for people to understand it.

As for mount -a, as Trevor says, when it returns you to a command prompt, that's a good thing. It is one way to test that your fstab is working properly--if there are issues with your fstab file you will get errors, not a prompt.

EDIT: (I'd originally typed the link incorrectly, hence the posts below about not being able to find it and the correct url.)

agriz
Posts: 267
Joined: 2011/11/19 15:17:40

Re: How to edit fstab?

Post by agriz » 2013/10/06 04:21:57

link is not working

User avatar
vonskippy
Posts: 839
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

Re: How to edit fstab?

Post by vonskippy » 2013/10/06 06:35:41

Try...

http://home.roadrunner.com/~computertaijutsu/chmod.html

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: How to edit fstab?

Post by scottro » 2013/10/06 11:27:59

Well, that's embarrassing. Thank you vonskippy. I'll fix it in the original post, too.

valllem
Posts: 2
Joined: 2017/05/18 08:48:22
Location: New Zealand

Re: How to edit fstab?

Post by valllem » 2017/08/30 22:17:48

Hi all

I am wanting to edit fstab in order to mount a new drive i have added to my server. How would i go about this correctly?
Thanks in advance.

Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

Re: How to edit fstab?

Post by Whoever » 2017/08/31 01:36:25

Start by running:

Code: Select all

man fstab

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to edit fstab?

Post by TrevorH » 2017/08/31 09:09:57

And please don't hijack ancient threads and bring them back from the dead. Locked.

Start your own topic if you need assistance. Use a descriptive subject and post in the relevant forum section.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Locked