LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Banana Pi M3 Debian GNU/Linux 8 (jessie) root read only (https://www.linuxquestions.org/questions/linux-newbie-8/banana-pi-m3-debian-gnu-linux-8-jessie-root-read-only-4175607173/)

matthewobrn 06-02-2017 07:32 AM

Banana Pi M3 Debian GNU/Linux 8 (jessie) root read only
 
Hi guys,

I'm not sure if this is the best place for this as technically I'm running a server but I'm also pretty new to linux, I can get around and prefer to learn in the terminal.

I'm running a banana pi m3 running Debian GNU/Linux 8 (jessie)

I used the perfect server tutorial to set up ISPConfig. It's hosting a small web server for me to mess around with php projects and some other websites but nothing commercial.

About 2 weeks ago I noticed the apache server was returning errors and saying the system may be down for upgrades. Now it is refusing https connections. (Server refused to connect).

So I logged in using putty and tried to access the logs to see what might be going on. When I tried copying the log files to my home directory so I could ftp in and open them in notepad++ on my windows machine I got an error stating the file system is read only.

None of the logs have been changed since 22/05/2017 last entry was at 00:08:00.

How should I best proceed?

I should note the the file system isn't on an sd card, I wrote the file system to the eMMC.

Thanks for reading this and also for any help!

Shadow_7 06-02-2017 08:32 AM

If /etc/fstab isn't setup, systemd will mount / read-only at boot. Not sure if that's your issue, but one possibility. You can remount it read-write after boot, but logs of course don't get written when it's read-only. You could try remounting it rw and if it doesn't take, you could have filesystem corruption or storage medium failure. Or something else happened, like out of space, exploited, or other potentials.

matthewobrn 06-02-2017 08:43 AM

thanks,

fstab contents:
Code:

/dev/mmcblk0p2 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 1
tmpfs /tmp tmpfs defaults,rw,nosuid 0 0
/var/swap none swap sw 0 0
/var/log/ispconfig/httpd/[domain 1] /var/www/clients/client2/web31/log    none    bind,nobootwait    0 0
/var/log/ispconfig/httpd/[domain 2] /var/www/clients/client0/web33/log    none    bind,nobootwait    0 0
/var/log/ispconfig/httpd/[domain 3] /var/www/clients/client1/web8/log    none    bind,nobootwait    0 0
/var/log/ispconfig/httpd/[domain 4] /var/www/clients/client1/web11/log    none    bind,nobootwait    0 0
/var/log/ispconfig/httpd/[domain 5] /var/www/clients/client2/web14/log    none    bind,nobootwait    0 0

I take it that "errors=remount-ro" suggests it encountered errors on boot?
Is there a boot log anywhere?
How do I attempt to remount it as rw?

matthewobrn 06-02-2017 09:03 AM

I just ran fsck and it found a heap of errors and then said to reboot. Now / is RW.
The fsck log is empty, was hoping for some results.

AwesomeMachine 06-02-2017 03:30 PM

The drive probably just needed a fsck.


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