Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Read only root filesystem on Linux

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 26-05-2011
Member
 
Join Date: May 2011
Posts: 208
Read only root filesystem on Linux
  

I am not so expert in the problem which I am facing. I am already in admin account and getting some issue with new software installation. I have a linux based system. I am getting errors on configuring a new tool for scanning hard drive. And there I think that fsck cannot correct the errors found in the root as it is read-only. So by default, the administrator makes a mistake by modifying or deleting any files system. I am getting a read-only root file system issue which is needed to be fixed.

Reply With Quote
  #2  
Old 26-05-2011
Member
 
Join Date: Nov 2009
Posts: 787
Re: Read only root filesystem on Linux

For that you will need to repair a file system type ext2 or ext3 on Linux. The first thing to do is get the list of partitions used by the system. For that pass the following command : df. The / dev / sda command allows for the complete list of disk partitions. The actual syntax is fdisk -l /dev/sda. Before you can fix a file system, it is necessary to pass readonly. In some cases this is possible using the following commands, but in general it is better to boot a cd or repair on a live CD (like Knoppix) for a filesystem read-only. The command for this is : init 1.
Reply With Quote
  #3  
Old 26-05-2011
Member
 
Join Date: Apr 2009
Posts: 990
Re: Read only root filesystem on Linux

The partition filled the whole disk except the / boot partition and swap. One important prerequisite for this procedure is that less than half of the root partition is full (so you can make a copy of the logical volume). If this is not the case, a second disk will be used. The procedure is then similar, except that it is not necessary to reduce the existing root partition and / dev/hda4 should be replaced, for example, / dev/hdb1 in our case. The easiest way to do this is to use GNU parted.
Reply With Quote
  #4  
Old 26-05-2011
Member
 
Join Date: May 2008
Posts: 2,676
Re: Read only root filesystem on Linux

Having your root file system under LVM 1 can significantly complicate the recovery of damaged file systems. If you lose your initrd, it will be very difficult to start the system. He will then have a recovery disk containing the kernel module and utilities LVM 1 and all the tools needed to recover a damaged file system. Be sure to make regular backups and keep an alternative boot method that allows for recovery of LVM.
Reply With Quote
  #5  
Old 27-05-2011
Member
 
Join Date: Nov 2009
Posts: 681
Re: Read only root filesystem on Linux

It is strongly recommended to make a complete backup of your system before trying to convert your LVM root 1. Having your root file system on LVM 1 can significantly complicate the procedures update (after distributions) so the decision should not be taken lightly. Specifically, you must ensure that the LVM 1 module (if not compiled into the kernel) and vgscan and vgchange utilities are available before, during and after the update.
Reply With Quote
  #6  
Old 28-05-2011
Member
 
Join Date: Apr 2010
Posts: 71
Re: Read only root filesystem on Linux

Start in Safe Mode by choosing to enter command line. Then you have to log in using your username and password. Then pass the command sudo fsck. It will prompt for administrator password. When you type the password on the screen does not display anything, it's like suddenly keyboard fails, ignore that and just write your password and press enter. When finished reboot and see if that fixes, but it just occurs to me to reinstall the graphical environment, although in that case if you have access to the repository because it is a version that is no longer supported.
Reply With Quote
  #7  
Old 01-06-2011
mv mv is offline
Member
 
Join Date: May 2008
Posts: 681
Re: Read only root filesystem on Linux

Starts in Safe Mode by choosing to enter command line. Then you have to log in using your username and password. Then pass the command sudo fsck. It will prompt for administrator password. When you type the password on the screen does not display anything, it's like suddenly keyboard fails, ignore that and just write your password and press enter. When finished reboot and see if that fixes, but it just occurs to me to reinstall the graphical environment, although in that case if you have access to the repository because it is a version that is no longer supported.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Read only root filesystem on Linux"
Thread Thread Starter Forum Replies Last Post
Error: Target Filesystem doesn't have /sbin/init during mount filesystem at boot X-MaaN Operating Systems 9 10-09-2011 11:10 PM
Unable to mount root partition as read-write in gentoo Ikrama Operating Systems 5 30-05-2011 08:12 PM
Multipath/device mapper error caused read-only root file system in Red hat enterprise Linux ROcHANn Operating Systems 4 27-05-2011 10:25 AM
Linux: Set User as Root veGANor Operating Systems 4 02-01-2011 10:14 PM
Managing filesystem LVM in linux blueprats Guides & Tutorials 4 28-06-2010 10:36 AM


All times are GMT +5.5. The time now is 07:57 PM.