TOLDOTECHNIK / buildroot-webkit

Buildroot WebKit fullscreen browser for Raspberry Pi. Suitable for HTML 5 user interfaces or digital signage / kiosk installations. It also can be used as a fullscreen video loop player. Ready to use RPi Zero/W and RPi 3 B SD card images are available.
244 stars 53 forks source link

Read Only FileSystem #18

Closed ghanjiboy closed 4 years ago

ghanjiboy commented 4 years ago

Hi, I was testing this out on a Raspberry pi zero W and wanted to set things like the timezone and disable nodejs, but the filesystem says its read only. Is there a way to temporarily remove the read only so I can make changes and reset it?

Thanks!

TOLDOTECHNIK commented 4 years ago

Did you compile buildroot by yourself? Because on the downloadable image the root fs is read/write by default. Can you post the content of your /etc/fstab?

ghanjiboy commented 4 years ago

I used the image fro pizero that was available on the Readme.

Here is the data

root@rpi0:~ # cat /etc/fstab

/dev/root / ext2 rw,noauto 0 1 proc /proc proc defaults 0 0 devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs mode=0777 0 0 tmpfs /tmp tmpfs mode=1777 0 0 tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0 sysfs /sys sysfs defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 0

TOLDOTECHNIK commented 4 years ago

Ok, seems like our original file. What happens if you do a: touch /root/somefile.txt?

ghanjiboy commented 4 years ago

Unfortunately it says read only file system. Is there something I could have done wrong, it's a micrsd card, no write protection and I used etcher to write the image.

TOLDOTECHNIK commented 4 years ago

This problem is new to us. What happens if you run mount -o remount,rw /? Could you please write the SD card again as described in the documentation and try again? Unfortunately we cannot give more support.

ghanjiboy commented 4 years ago

Thanks for the assistance - I did do it twice before I reached out. I tried building on another machine and incredibly it worked. I was able to login and make the necessary changes to free up more memory for my use case. Thank you for creating this - its awesome!

ghanjiboy commented 4 years ago

Spoke too soon - it seems first boot is Read write, but subsequent boots are read only. Is that by design?

TOLDOTECHNIK commented 4 years ago

No, this shouldn't be this way. We tested it again and we run into the same problem.

TOLDOTECHNIK commented 4 years ago

There must have been something going wrong with previous buildroot build. We generated a new one. Please download and try again.

ghanjiboy commented 4 years ago

This is now confirmed working - thank you for the prompt responses and thank you for fixing and rebuilding an image.