LinuxQuestions.org
Review your favorite Linux distribution.
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 09-14-2005, 07:30 AM   #16
AmbroiseF
LQ Newbie
 
Registered: Aug 2005
Location: Vandoeuvre - France
Posts: 9

Rep: Reputation: 0

Yes, this is what I thought, because my hard drive is over 5 years old, and it had hard life (what a pun )
The problem is : what if this problem occurs on a brand new hard drive?
I'm still thinking aloud, but if it's a bad sector problem, why doesn't fsck mark them as bad, knowing it's always (in my case) journal block 6156 on hg6 (/home) which is faulty?

Last edited by AmbroiseF; 09-14-2005 at 07:56 AM.
 
Old 09-15-2005, 01:24 AM   #17
chadwick
Member
 
Registered: Apr 2005
Location: At the 100th Meridian where the great plains begin
Distribution: Debian Testing on T60 laptop
Posts: 105

Original Poster
Rep: Reputation: 17
/dev/hda2 has now been mounted for two hours and 15 minutes without going ro. That surpasses by more than a factor of four any records that were made over the past week. Normally things wouldn't even have lasted as long as it has taken me to write a fraction of this message. I'm inclined to think that the problem is not going to occur now.

Here's what I did.

1) Booted into Knoppix. Mounted /dev/hda2. Edited /mnt/hda2/etc/fstab/ and changed the line pertaining to /dev/hda2 from ext3 to ext2.

/etc/fstab now looks like:
Code:
 
# /etc/fstab: static file system information.
#
#<file system>  <mount point>    <type>   <options>                  <dump>   <pass>
proc             /proc            proc    defaults                      0       0
/dev/hda2        /                ext2    defaults                      0       1
/dev/hda5        none             swap    sw                            0       0
/dev/sda1        /mnt/sda1        auto    sync,noauto,user,exec         0       0
/dev/hdc         /mnt/cdrom    iso9660    ro,user,noauto                0       0
/dev/hda1        /mnt/windoze     ntfs    ro,user,noauto                0       0
2) Shut down the computer and booted into the /dev/hda2 partition (i.e. running the Debian installation now).

3) Was disappointed to see the problem still occured, but then found out that it was still mounted as ext3 anyway (according to /etc/mtab).

4) Things were still buggered up so rebooted the computer again back into /dev/hda2 (i.e still Debian installation). Computer did an fsck for about an hour before being able to continue.

5) Back logged on now into Debian installation working from /dev/hda2 as root. Couldn't umount /dev/hda2 or remount it read-only. Then the problem occurred. Once the partition was sent into read-only mode, I was able to umount it.

6) Then issued: e2fsck -fy /dev/hda2
This gave a bunch of errors about:
- blocks claimed by more than one inode
- incorrect filetype (was 2 should be 1)
- deleted/unused inode
- unconnected directory inode
- inode ref count wrong
- unattached inode
and (according to all appearances) was fixing the errors.
The second time issuing e2fsck -fy /dev/hda2 it again found errors and fixed them.
The third time it did not find errors so I did not try it a fourth.

7) Then issued: tune2fs -O ^has_journal /dev/hda2

8) Then issued again: e2fsck -fy /dev/hda2
No errors were reported this time.

9) Restarted by typing init 6; crossed fingers to near injury

10) Noted that /etc/mtab now states that /dev/hda2 is mounted as ext2.

11)

Even if it comes back now, at least there's a positive development.

Thank you so much everyone freakyg, Nylex, sundialsvcs, tuxdev, aysiu, Ambroise, Bonzodog!!!for your helpful posts!!!
Ambroise I hope this helps your situation.

--------------------------------------------------------------------------------------------------------------------

EDIT: Up now for 11 hours and still going strong.
Next project: see if bringing back jounaling causes the problem to come back.

--------------------------------------------------------------------------------------------------------------------

EDIT: Bringing back journaling caused no problems at all.
(did #tune2fs -j /dev/hda2 to bring it back)
Everything seems to be fixed although I don't know what really happened.

Last edited by chadwick; 09-15-2005 at 11:47 PM.
 
Old 09-25-2005, 02:59 AM   #18
AmbroiseF
LQ Newbie
 
Registered: Aug 2005
Location: Vandoeuvre - France
Posts: 9

Rep: Reputation: 0
Hi again everyone.
After a week, I can say my problem is solved.

Well, to tell you the truth, I installed smartd and ran the hard drive test. smartd found no error on the drive, which was a surprise.
I made a quick backup of my partition and erased the disk. I made new partitions and formatted them using ext3.

After a week, the problem didn't occur. I'm inclined to think that it was a file system error, if such a thing is possible.
If it's a hard drive problem, which I now doubt, the error may come back as I fill my hard drive. Until then, things are working OK.

chadwick: thank you for the tip, I'm glad things are working for you too.

Last edited by AmbroiseF; 09-25-2005 at 03:02 AM.
 
Old 05-26-2006, 06:01 PM   #19
chadwick
Member
 
Registered: Apr 2005
Location: At the 100th Meridian where the great plains begin
Distribution: Debian Testing on T60 laptop
Posts: 105

Original Poster
Rep: Reputation: 17
Just an update on this issue. This problem kept coming back off and on for a few months, until I came across something.
uname -rm at the command line told me: 2.6.8-2-386 i686.
I understand this means I had the 386 kernel installed on a 686 machine. Several months ago I installed the 686 kernel package and removed the 386 kernel package (using debian's dpkg and apt-get utilities). Since I did this, I have not had any problems like the one explained in this thread. I'm convinced that this was the source of the problem, but I would appreciate if anyone has any enlightening stories on what exactly was going on.
 
Old 12-14-2006, 04:20 PM   #20
RickyRockRat
LQ Newbie
 
Registered: Apr 2005
Location: boise
Distribution: Red Hat - 6.2,7.3,9.0,FC3,FC4, FC5, Debian-3.1, Ubuntu 7x,8x,10x, DSL
Posts: 14

Rep: Reputation: 0
The problem is the Journal got hosed (why is a good question. I seem to have changed the kernel and it began happening). You need to replace the journal:

remove it:
tune2fs -O^has_journal /dev/hdxx
Add it back:
tune2fs -j /dev/hdxx
The second command may need to be done booted from a rescue disk.
 
  


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
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
NFS: a mounted to b, b mounted to c, c can't read a? Steve Cronje Linux - Networking 9 10-25-2004 09:51 AM
Can't read mounted drive mabarnes Linux - Newbie 4 12-19-2003 10:36 PM
root mounted as read only behmjose Linux - Newbie 1 12-16-2003 11:05 PM
Fs mounted in Read Only , Read Write Mode benjaminrtz Linux - General 2 07-31-2002 02:52 AM

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

All times are GMT -5. The time now is 11:26 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