LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 12-01-2010, 09:58 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 115

Rep: Reputation: 15
How to change read-only mount to read-write ?


Hi,

I'm running vanilla 2.6.27.35 on Embedded Pentium-M board.

The disk is divided into 2 ext3 partitions. The first is where bzImage+grub+busybox is installed. The second is for the user.

In menu.lst I set the first partition to be read only.

How can a root user change it temporarily to read-write in order to make some changes in /etc using telnet ?

Thanks,
Zvika.
 
Old 12-01-2010, 10:15 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,560

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
Edit /etc/fstab to change "ro" to "rw" for the first partition, then change it back.
 
Old 12-02-2010, 12:06 AM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 115

Original Poster
Rep: Reputation: 15
/etc/fstab is also read only

Quote:
Originally Posted by frankbell View Post
Edit /etc/fstab to change "ro" to "rw" for the first partition, then change it back.
Hi,

I can not edit /etc/fstab. It is also read only.

Thanks,
Zvika.
 
Old 12-02-2010, 03:36 AM   #4
zvivered
Member
 
Registered: Sep 2007
Posts: 115

Original Poster
Rep: Reputation: 15
Solution

The command:

mount -o remount rw /

converts the partition to read-write till the next reboot.

Thanks.
 
Old 12-02-2010, 09:06 PM   #5
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,560

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
Root privileges are needed to edit /etc/fstab. You need edit it with root privileges, however that is done in your distro.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/ LVM mounting read-only, how to mount read-write thllgo Linux - Server 2 11-10-2010 07:39 AM
Read Write access to a iso9660 filesystem..mount a .iso image as read write ceazar123 Linux - Newbie 16 09-01-2010 09:07 AM
Read Write access to a iso9660 filesystem..mount a .iso image as read write ceazar123 Linux - General 2 08-26-2010 03:32 PM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM


All times are GMT -5. The time now is 02:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration