LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-23-2015, 05:21 AM   #1
naveenpatturi
LQ Newbie
 
Registered: Sep 2015
Posts: 2

Rep: Reputation: Disabled
How to make /etc/fstab readonly to read write


Hi,
I am unfortunately remove the /etc/fstab file and after i will reboot the server
so after i got lot of errors
no mounted filesystem and even df -h also not worjk

So i am going single user mode i am trying to edit the fstab filesystem but it is read only mode

My Question is
How to make /etc/fstab readonly to read write.
currently I am in Single user mode
 
Old 09-23-2015, 06:41 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
what will the command mount say?
 
Old 09-23-2015, 06:41 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Check the ownerships/perms
Code:
ls -l /etc/fstab

-rw-r--r--. 1 root root 801 May 10 15:11 /etc/fstab
Use chmod for perms eg
Code:
chmod u=rw,g=r,o=r /etc/fstab
Ownerships
Code:
chown root:root /etc/fstab
and make a BACKUP immediately and before each edit
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My filesystem is readonly , how can do read and write raghuveer520 Linux - Newbie 12 06-30-2017 05:57 AM
[SOLVED] how can i remount root filesystem as read/write after modify readonly-root file jcwkyl Linux - Newbie 3 12-21-2010 10:40 PM
Mount Fiber attached volume read/write on Windows and readonly on linux jojothedogboy Linux - Server 1 09-04-2010 08:34 AM
External hard-drive - readonly, can't make it read/write mooseman Linux - Hardware 3 05-18-2007 02:27 AM
fstab vfat read write prob gbarny Linux - General 3 06-20-2004 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration