LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-10-2016, 06:03 AM   #1
aranea.network
LQ Newbie
 
Registered: Dec 2010
Location: Croatia
Distribution: Mint 18 Cinnamon
Posts: 6

Rep: Reputation: 0
How to make read-only root partition writable again?


Recently I red an article about trimming of SSD on Linux systems. I decided to give it a shot, so I tweaked a setting in fstab file. Unfortunately, I wrote parameter "noatime" incorrectly as "noatima". Didn't notice it until next reboot. Now the box won't boot into GUI, but I have full access via CLI. But the problem is that root partition is mounted as read-only, so I can't change anything. Then I tried to boot from LiveCD, but no luck - partition still mounted as RO. I use Linux Mint 18, Cinnamon, 64-bit, the root partition is formatted with ext4.

How can I make root partition writable so I can save fstab file when I modify it?

p.s. - I am interested how to do it from Linux, don't suggest MiniXP with ext4 support or similar solutions, thank you.
 
Old 09-10-2016, 06:28 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Code:
mount -o remount,rw /
As always, start by reading the manpage.
 
Old 09-13-2016, 04:49 AM   #3
aranea.network
LQ Newbie
 
Registered: Dec 2010
Location: Croatia
Distribution: Mint 18 Cinnamon
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Code:
mount -o remount,rw /
As always, start by reading the manpage.
Good advice, thank you (didn't work in linux for a while, so I lost a few routines). Reading the man page did help, since I couldn't apply the command mount in form written here. But it worked only after I booted from a live CD, and then opened the fstab file with sudo privileges. When booting from local drive, the command exited with failure, because it used the local fstab file, which contained misspelled option, so I couldn't mount it.

Last edited by aranea.network; 09-14-2016 at 04:20 AM.
 
  


Reply

Tags
ext4, fstab, noatime, read only, root partition



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
Read only root partition mrajanna Linux - Kernel 8 05-12-2015 09:48 AM
Make a file read-only... even for root Virchanza Linux - General 9 06-03-2010 08:39 PM
Make Gentoo use read only root partition BuckRogers01 Linux - Distributions 4 03-05-2006 02:30 PM
Knoppix 3.4 make partition writable for everyone suguru Debian 2 05-12-2004 04:07 PM
Make other partition writable to all gm_leon Linux - General 2 11-27-2002 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:01 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