Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-02-2017, 07:32 AM   #1
LQ Newbie
Registered: May 2017
Posts: 12

Rep: Reputation: Disabled
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!

Last edited by matthewobrn; 06-02-2017 at 07:46 AM. Reason: Added detail to title.
Old 06-02-2017, 08:32 AM   #2
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
Old 06-02-2017, 08:43 AM   #3
LQ Newbie
Registered: May 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled

fstab contents:
/dev/mmcblk0p2 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro,usrjquota=quota.user,,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?
Old 06-02-2017, 09:03 AM   #4
LQ Newbie
Registered: May 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
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.
Old 06-02-2017, 03:30 PM   #5
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The drive probably just needed a fsck.


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
LXer: Debian GNU/Linux 8.5 "Jessie" Live Editions Are Now Available to Download LXer Syndicated Linux News 0 06-10-2016 05:51 AM
Java 8 jre-8u74 installation after downloading on to Debian GNU/Linux 8 (jessie) 64 bit windsurfer1 Debian 2 03-18-2016 11:15 PM
second monitor not working. Debian GNU/Linux 8.2 (jessie) ( Radeon HD 8670 / R7 250 AND Xeon E3-1200 ) 1redto Debian 107 01-27-2016 09:26 PM
LXer: Debian GNU/Linux 8.3 "Jessie" Now Available for Download, Live DVDs Coming Soon LXer Syndicated Linux News 0 01-25-2016 11:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration