Find the answer to your Linux question:
Results 1 to 7 of 7
I got a problem with the server I'm hosted on. Friend who owns it is on holiday (vacation). For some reasons the server changed its file system today at 4 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2004
    Location
    European Union
    Posts
    3

    Read-only file system


    I got a problem with the server I'm hosted on. Friend who owns it is on holiday (vacation).

    For some reasons the server changed its file system today at 4 am (I think). It's now mounted as Read-only file system. I don't know much about Linux. Can anyone tell me what to do to change it back to "normal"?

    rootserver:/# apachectl restart
    /usr/sbin/apachectl restart: httpd not running, trying to start
    fopen: Read-only file system
    apache: could not open error log file /var/log/apache/error.log.
    /usr/sbin/apachectl restart: httpd could not be started


    P.S. I got root access...

  2. #2
    Linux Enthusiast scientica's Avatar
    Join Date
    Sep 2003
    Location
    South- or "Mid-" Sweden
    Posts
    742
    Sounds like a permissions thing, are you running the "apachectl restart" command logged on as root? If not run this command:
    Code:
    su - -c 'apachectl restart'
    It will ask for the root password (unless you're root), and then run the command as root.
    Regards Scienitca (registered user #335819 - http://counter.li.org )
    --
    A master is nothing more than a student who knows something of which he can teach to other students.

  3. #3
    Just Joined!
    Join Date
    Oct 2004
    Location
    European Union
    Posts
    3
    It's not a "permission thing". I can't even create a dir when logged on as root:
    rootserver:/# mkdir test
    mkdir: cannot create directory `test': Read-only file system

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Oct 2004
    Location
    Manchester, England
    Posts
    165
    check the /etc/fstab to see if it is mounted read only (ro)

  6. #5
    Just Joined!
    Join Date
    Oct 2004
    Location
    European Union
    Posts
    3
    I figured something was/is wrong with the hdd and the system was set to mount the file system as read-only in this case.

  7. #6
    Just Joined!
    Join Date
    May 2005
    Posts
    1

    try fcsk and fix the problem with your HD

    Probably the hard disk are being damaged. In case of disk error automatically the hd was mounted like Only read mode.

    Reboot and try fsck without mount any partition.

  8. #7
    Just Joined!
    Join Date
    May 2008
    Posts
    1

    Thumbs up Linuxguru4ever

    Hi,

    I'm requesting you to please reboot the box and at startup type the command "fsck".

    This will help u out from the Read Only File systems.

    Probably this will check 5 Phases.

    1.Bloack , Inodes 2. Directory structure 3.Directory Connectivity 4.Groups and So on .....

    Selvaraj KS | linuxguru4ever@hotmail.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •