LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2004, 02:30 PM   #1
cruxx
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
My / directory only mounts ro


What causes my /dev/hda2 (/) to remount in read only mode?

We're running Debian 3.0r2, filesystem is ext3 @ work.


There is a line in the fstab in /etc directory, which says /dev/hda2 on / type ext3 (rw,errors=remount-ro). By changing this line to /dev/hda2 on / type ext3 (rw,errors=remount-rw) without knowing the reason why the system remounts in read only is like giving aspirin to a man with a broken leg. I think I need to know why this happens before I can take any action.

so what can i do to remount my / directory in a writeable mode?

thank you for your help!

cruxx
 
Old 08-15-2004, 02:49 PM   #2
tefal
Member
 
Registered: Jul 2003
Location: S. Wales
Distribution: Fedora Core 5, SuSE 9.1 Pro
Posts: 30

Rep: Reputation: 15
The reason is that the system has foudn errors on the filesystem.

The best bet is to let it mount as ro as you cannot check the filesystem when it is rw.

the command to use is fsck, so:

fsck /dev/hda2

It will go through the check and report everything back to you.

Cheers,
Tefal
 
Old 08-15-2004, 03:09 PM   #3
cruxx
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
that doesnt work.. i tried it several times

if i run fsck /dev/hda2 there are no erros displayed so what can i do?

Last edited by cruxx; 08-15-2004 at 03:10 PM.
 
Old 08-15-2004, 03:56 PM   #4
tefal
Member
 
Registered: Jul 2003
Location: S. Wales
Distribution: Fedora Core 5, SuSE 9.1 Pro
Posts: 30

Rep: Reputation: 15
Try using the -c option:

fsck -c /dev/hda2

This will check for bad blocks on the file system.

Cheers,
Tefal
 
Old 08-16-2004, 07:06 PM   #5
cruxx
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
that doesn´t work either!

after testing linux tells me to reboot but that has no effects
what can i do?
 
Old 08-17-2004, 02:33 AM   #6
tefal
Member
 
Registered: Jul 2003
Location: S. Wales
Distribution: Fedora Core 5, SuSE 9.1 Pro
Posts: 30

Rep: Reputation: 15
I'm afraid I'm at a personal loss there now. One of the two commands have always worked for me.

Sorry,
Tefal
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba mounts ? linuxsurd Linux - Networking 1 02-07-2005 10:28 AM
cd mounts Murph00009 Linux - Hardware 1 01-07-2005 10:57 PM
The mounts don't stay! ch4s3r Linux - Software 25 05-21-2004 09:07 AM
Cd mounts auto ch4s3r Linux - Software 1 02-26-2004 06:35 PM
some help with x and mounts sehris Slackware 4 08-12-2003 02:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:40 PM.

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