![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lost+found | morrish | Shell Programming and Scripting | 1 | 05-14-2008 08:01 PM |
| lost+found | morrish | UNIX for Advanced & Expert Users | 3 | 04-23-2008 02:00 PM |
| Lost+Found is not available | vinod2all | AIX | 4 | 07-04-2005 05:50 AM |
| what is lost+found dir? | bok | UNIX for Advanced & Expert Users | 1 | 06-01-2005 12:09 PM |
| Lost+found | DPAI | UNIX for Dummies Questions & Answers | 6 | 02-19-2002 10:12 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
lost+found
Hi all
I am using SOLARIS 8 on Sun enterpris3000 server. Last night i got a file system corrupted adn some inconsistancy in the file system were shown when i run fsck -o p option. Then i tried to fix it with fsck -F ufs -y /dev/md/rdsk/d1 option as i have given all yes response i cd not able to see the questions asked during fsck. after this phase is complete when i run fsck -o p again it shows the error inj super block or magic number so i assigned a new superblock and fix the bug. but after that when i fount the file system it was previouly 63% full and now it is only 16% and everything is written to lost+found directory. with the inodes number of the files assigned to every files .Still aome previous files and directory mapping are not their in the lost+found directory. I think the reson may be during fsck when it ask to clear the inodes i have given yes option to around thousands of inodes. I am telling the exact error i was getting when i first notice the corrupted file systems. 1) i can able to creat files and directories in that file system.Once i come out of the directory and put ls or ls -al it shows nothing. 2) when i tried to delete those file and directories it will say files exists can't delete.even rm -r won't work Now i have restored all data from last night backup. but still i want to know HOW TO RESTORE DATA FROM LOST+FOUND DIRECTORIES? Plese SUGGEST. Thanks and regards Prafulla |
| Forum Sponsor | ||
|
|
|
||||
|
First, ufsrestore recovers files from a tape prviously written by ufsdump. It's a cool program, but it won't move stuff out of lost+found.
You can manually move things from lost+found by doing stuff like "mv /lost+found/143226 /etc/passwd" or whatever. But moving a file from one point to another point in the same filesystem never increases its size. If your disk is 16% full now, after the moves it will still be 16% full. If your disk was previously 63% full, then you are missing lots of stuff. I never try to fix a filesystem that is this badly damaged. I would newfs it and completely reload from backup. Unless it is root, it which case I would reinstall the OS. Sorry for the bad news. You would think that the superblock at least would be ok after a "fsck -y"; but I believe you, because the same thing happened to me a few weeks ago only on a SunOS 2.5.1 box. It may be that Sun's fsck is less than robust. |
|
|||
|
As the Size of your filesystem has reduced to an incredible low value,
Lot of Data (files & directories) might be lost. For restoring the Files & Directories that have got stored in the lost+found directory read the below mentioned lines. -------------------------------------------------------------------------------------- When FSCK is performed on a FILE System, example : fsck -o f /dev/rdsk/c0t0d0s4 where /dev/dsk/c0t0d0s4 is mounted on /export And if FSCK encounters any problem with the FileSystem SuperBlock Entries, It prompts for a confirmation to rectify the problem, When Confirmation is provided, FSCK tries to rectify the problem either correcting the Entries in the SuperBlock or by moving the files[having the problem] into the /FileSystem/lost+found Directory. example : ** Phase 3 - Check Connectivity UNREF FILE I=788 OWNER=root MODE=100644 SIZE=19994 MTIME=Jan 18 10:49 2001 RECONNECT? y In this case the file with INODE Number 788 is moved into the /export/lost+found directory as # ls /export/lost+found #788 For Restoring the file in /export/lost+found into /export perform the below mentioned tasks : # ls /var/tmp/c0t0d0s4* /var/tmp/c0t0d0s4_log View this file to know the Correct File Name & Path for the corresponding file stored in the /export/lost+found Directory with the INODE_Number as the FileName. And then MOVE or COPY the file from /export/lost+found Directory into the Correct Path mentioned in the LOG File. -------------------------------------------------------------------------------------- Try this it will work fine. Good Luck. |
|
|||
|
fsck does not fix or protect your data as a first priority, it's main purpose is to keep the file system in a consistanmt state. It is possible for a box to go down hard with a bunch of open files, and to lose data completely.
Good luck, and remember, good backups are your friend.
__________________
[url=http://chuckb.1le.net/]My website[/url] |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|