LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   How to change read-only mount to read-write ? (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/how-to-change-read-only-mount-to-read-write-847821/)

zvivered 12-01-2010 09:58 PM

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.

frankbell 12-01-2010 10:15 PM

Edit /etc/fstab to change "ro" to "rw" for the first partition, then change it back.

zvivered 12-02-2010 12:06 AM

/etc/fstab is also read only
 
Quote:

Originally Posted by frankbell (Post 4177753)
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.

zvivered 12-02-2010 03:36 AM

Solution
 
The command:

mount -o remount rw /

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

Thanks.

frankbell 12-02-2010 09:06 PM

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


All times are GMT -5. The time now is 04:54 PM.