Solved

lost+found problem

Posted on 1998-01-02
7
276 Views
Last Modified: 2008-02-01
After a big crash, I got a big file in my seconf hard disk in the /lost+found directory. It is about 1'3 GB (the disk is 2'5 GB) so I've lost 50 % of the storage capacity.

I tried to delete the files or to look for some utility to fix the problem but with no luck.

Is it possible to restore this space without reformating the partition?


0
Comment
Question by:cesc
7 Comments
 
LVL 2

Expert Comment

by:Resonance
ID: 1635084
/lost+found is where e2fsck puts any files with lost filenames or links.  I've never seen it string together 1.3 gig of data, however.  What were you keeping on the drive?

Also, what are the permissions and ownerships on the file?  What error message do you get when you try to rm it?  What is the filename (any odd prefixes/suffixes?)?  Have you since run e2fsck on the drive with it unmounted?
0
 
LVL 4

Expert Comment

by:jlms
ID: 1635085
First of all run fsck, then if the file is useful just move it, if not delete it.

  If you can not delete it then recreate the filesystem in that partition.
0
 
LVL 4

Expert Comment

by:jlms
ID: 1635086
Please give some more clues or reasons why you rejected my answer. Withour information it is impossible to help!
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Expert Comment

by:grmbl
ID: 1635087
I have about the same problem: See my question: "Character devices all over my filesytem"

0
 
LVL 1

Expert Comment

by:c4lv1n
ID: 1635088
root is able to delete this file. If not, unmount this partition and run e2fsck. If this does not help and make root alble to rm this file your hard-disk has bad sectors. Am I right to suggest you had problems with the power-cables ? - If yes, try following:
Back up whole partition (not the 1.3Gig-file). Format this partition with DOS. Use WIPE-INFO from Norton-Utilities 8.0 to erase whole partion. Overwrite it with 0 and then with 255. After this use scandisk (not so bad i think) to check disk surface. If you still have any bad sectors, sorry, your drive is dead.
0
 
LVL 3

Expert Comment

by:biyiadeniran
ID: 1635089
what is the name of the file?
0
 
LVL 2

Accepted Solution

by:
Resonance earned 100 total points
ID: 1635090
If your drive is SCSI running off of an Adaptec card, I may have accidentally discovered your problem -- by experiencing it myself.  After much tinkering, I discovered that the drive was not properly remembering anything that was done to it, which is why nothing would delete.  I eventually resolved the problem by momentarily removing the drive cable from the drive, reconnecting it, going into the SCSI utilities on my 2940 card, low-level formatting it, partitioning it *differently* from my original setup, mke2fs on those, repartitioning it back to my original setup, mke2fs on -that-, and then remounting.  It seems to work now.  Hope that helps you.

0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question