The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find a file whick is consuming larger disk space in file system lokeshpashine UNIX for Dummies Questions & Answers 6 04-04-2009 03:52 AM
Inconsistency... Thy Name is "Password" geralex2 UNIX for Dummies Questions & Answers 3 09-17-2008 02:50 AM
packet inconsistency problem clalfa Ubuntu 1 03-17-2008 04:53 PM
how to mount a file system of a remote machine to local file system cy163 UNIX for Dummies Questions & Answers 2 01-31-2008 09:04 AM
Disk inconsistency Carmen123 UNIX for Dummies Questions & Answers 1 11-20-2006 11:10 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-05-2005
callitdctr callitdctr is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 2
Exclamation File System inconsistency


Dear All,
Here I am sending the error msg that come to to the terminal when I attempt to start my
linux redhat 2.4.18-3 system.


cheking file system
/boot clean
/home : clean
/usr :containing file system with errors,check forced
error reading block 35924(attempt to read blocks from filesystem resulted in short read)
usr/ UNEXPECTED INCONSISTENCY;run fsck MANUALLY.
(i.e. without -a or -p option)]

an error occurred during the file system check
dropping you to system shell.the system will reboot when you leave the
shell.
give root password for maintinace
(or type control d for normal startup)


I tried several options but the problm is that I don't have a boot diskette,
so I cant unmount the usr directory during the pocess.fsck can damage file sys heavily when running in a mounted fs.An option possibly -A(not -a) -R -V(can't remember exactly)tells on invoking that it recquire a terminal to run.i started the bash shell but it is not working in that also.I dont know the name of the device as recquired by command.To force bad block check i don't know the file of bad blocks -c option -l option.File sys is ext3.I am using fsck 1.27.

Please help me to solve the problem.

Last edited by callitdctr; 03-05-2005 at 07:10 AM..
  #2 (permalink)  
Old 03-05-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,128
I'm not following all of this, but here are a few comments. Are you sure that /usr is mounted? Are you sure that you don't know the device name? It's not easy to find out that a file system is mounted without also obtaining the device name. For example, with the "df" command, the device name is the first field. You can just examine /etc/fstab to get the device name. But you should not actually need the device name. Modern versions of fsck will look it up in /etc/fstab. So simply:
fsck /usr
really should work.

Ideally you should find some way to umount /usr or arrange that it was never mounted prior to fsck. A boot cd (can linux really boot from a diskette?) would be a good option. You're right that running fsck on a mounted filesystem is very dangerous. This is because some of the data from that filesystem is sitting in buffer cache. When this cache is written out, it will intermix with the data written by fsck and scramble the filesystem. So you need to do the following sequence of commands:
sync
<wait 10 seconds or so>
fsck /usr
reboot -n

The first sync will flush out any changed data in / or any other mounted filesystems. You need to wait until the disk writes complete. Then run fsck.
Then immediately reboot without syncing. Also during this entire procedure, almost nothing else must be happening. It is relatively safe in single user mode. This is not completely safe, but your system is not usuable anyway, so it is what I would try. There is a risk of damaging other mounted filesystems. The first sync together with minimizing activity should mitigate this danger. If you decide to try it, please post back and let us know how it works.

However, even if this does work, you may not be home free. fsck may not be able to repair your disk. "attempt to read blocks from filesystem resulted in short read" make me think that your disk may be bad in a hardware sense. fsck cannot repair broken hardware.

Whether or not fsck seems to work, you must immediately do the "reboot -n". Good luck.
  #3 (permalink)  
Old 03-07-2005
callitdctr callitdctr is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 2
Thumbs up

Dear All
Yesterday I posted a querry related to file systen inconsistency and as Mr perderabo suggested I used "fsck /usr" command and it worked.
The problem of short read can't be solved and resulted in some bad sectors in disk.
Thanks to Unix.com and Mr perderabo.
  #4 (permalink)  
Old 04-03-2009
sotich82's Avatar
sotich82 sotich82 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 12
Yes! it's reale worked!
Closed Thread

Bookmarks

Tags
linux commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0