Writeable SD filesystem

Guys, I have a stupid question. Im trying to setup new Emonhub to my RPI SD. I used precompiled image from Aug.13th. I wrote that to my SD and RPI booted succesfully. But now, I need to change emonhub.conf file, which is read only as a whole filesystem. But when I use "rpi -rw" command in putty to make it writeable (following setup cookbook), system reject it as a unknown command.What am I doing wrong way?Thanks

Radek

pb66's picture

Re: Writeable SD filesystem

Possibly permission or mode issues try running

sudo chmod +x  /usr/bin/rpi-rw

sudo chown pi:pi /usr/bin/rpi-rw

If that works you will probably need to do rpi-ro also

Paul

 

 

rbreuss's picture

Re: Writeable SD filesystem

Thanks Paul. I tried both of your commands, but answer of system is "Read-only file system" and any attempt to modify emonhub.conf file or its permissions is still rejected. Any other tip?

pb66's picture

Re: Writeable SD filesystem

rpi-rw is just a little script to perform this command with a confirmation message

sudo mount -o remount,rw /dev/mmcblk0p2  /

 

rbreuss's picture

Re: Writeable SD filesystem

Much better now. It is writable already. Thanks !

 

pb66's picture

Re: Writeable SD filesystem

Whilst it is writable you should fix the rpi-rw script try running the first 2 commands above for both rpi-rw and rpi-ro.

nano /usr/bin/rpi-rw

should contain the line you just used plus the confirmation message and

nano /usr/bin/rpi-ro

should contain 

sudo mount -o remount,ro /dev/mmcblk0p2  /

plus the confirmation message

Paul

rbreuss's picture

Re: Writeable SD filesystem

Everything works now. Both sctripts were OK, it was my fault. I wrote rpi -rw instead of rpi-rw (additional space in the middle.

Thanks for you support, Paul.

Radek

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.