How to edit fstab?

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

Re: How to edit fstab?

Postby TrevorH » 2013/10/05 15:01:27

what is the difference between 0777 and 1777?


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

mount -a returns nothing for me!


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

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

Re: How to edit fstab?

Postby 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?

Postby 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?

Postby vonskippy » 2013/10/06 06:35:41


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

Re: How to edit fstab?

Postby 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?

Postby 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: 950
Joined: 2013/09/06 03:12:10

Re: How to edit fstab?

Postby Whoever » 2017/08/31 01:36:25

Start by running:

Code: Select all

man fstab

User avatar
TrevorH
Forum Moderator
Posts: 21002
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to edit fstab?

Postby 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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke