Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to repair file system error ?

Status
Not open for further replies.

microsky

MIS
May 7, 2001
33
Under Soaris 2.6 ,there is one file system can not mount up and there are some errors when using 'fsck' command to check that file system ,the result as following ,has anybody know how to repair this file system ? Thank you very much !
=========================================================
# fsck /dev/dsk/c4t0d0s2
** /dev/dsk/c4t0d0s2
CANNOT SEEK: BLK 17641760
CONTINUE? y
CANNOT READ: BLK 17641760
CONTINUE? y
CANNOT SEEK: BLK 17641760
CONTINUE? y
THE FOLLOWING SECTORS COULD NOT BE READ: 17641760 17641761 17641762 17641763 17641764 17641765 17641766 17641767 17641768 17641769
==========================================================

Best Regards,
Microsky
 
Thanks ayjaycee!
But if I newfs /dev/rdsk/c4t0d0s2 then all the files which stored in this disk will be lost ,how can I restore these files ?
Thanks!
 
the fsck runs two mode Noninteractive mode and Interactive mode.

Noninteractive mode(preen) : runs during normal bootup and corrects only those operations which do not require a user interventions
Interactive mode: lists each problem it finds
therefore use Noninteractive mode
# fsck -o f,p /dev/dsk/c4t0d0s3
o= option
f= forces checking of the file sys
p= checks and fixes the file sys noninteractive(preen)

check also the sanity of the file system
# fsck -m /dev/dsk/c4t0d0s3
try also
# fsck -y /dev/dsk/c4t0d0s3

.

Farah regal
good luck
"think twice and hit enter once"
 
Are you using slice 2 as a data slice. Normally slice 2 is set aside and never used as a data slice. I noticed in you first post you were fscking c4t0d0s2. Is this really set up as a data slice?

Hereis one way of repairing (or trying) a disk.
FORMAT
UMOUNT THE FILE SYSTEM)s) ON THIS DISK C4T0D0
1. Run format
2. Select c4t0d0
3. analyze
4. read (THIS WILL NOT CORRUPT DATA)
5. If an error is seen this utility will try to fix.
The default passes are two for this routine.
6. AFTERWARD RUN FSCK ON the file system(s) that you have
on this disk.
7. mount -a (this will mount the file system(s)
8.. df -k (do you see them?)

You need to make sure what partition(s) you have set up on this disk.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top