Comments (3)
Such extraordinary huge files are likely bogus. The only valid reason to have such a file is that it is sparse. That means, it consists of zeroes mostly. Pretty much only databases and tools as bittorrent which combine several source files in place create valid files of that sort.
from xfs_undelete.
Hi,
I managed to extract the relevant data from that file. It was on the first 16606 lines. Using sed or vim was a no go, they filled up the memory and got killed. I managed to extract the data using head -n NNN and try&error to guess the number of lines.
You may want to close this issue as solved, but isn't there an option to avoid this huge files? How can a file be bigger as the underlying FS? Why does -z not work here?
Anyhow, many thanks for xfs_undelete, nice work!
Thanks,
Richard
from xfs_undelete.
There's already a lot of sanity check in xfs_undelete. The one that usually triggers is that those huge bogus sparse file often have no data at position 0 and following. But yours had. I don't know.
How can a file be bigger as the underlying FS?
It's a sparse file. It does not occupy that space on the original filesystem. You have to think of it as e.g. one block at position 0 and another block at position 18446744073709551616. It only takes 8192 bytes on disk then.
Why does -z not work here?
Because -z does only delete zeroes at the end of a file, not zeroes inbetween. Oh, and it has the same problems with huge files as vim and sed.
from xfs_undelete.
Related Issues (20)
- Error renaming to [...] to [...].pythonapplication/octet-stream HOT 2
- Please specify a block device or an XFS filesystem image. HOT 1
- Doesn't appear to undelete PCM data. HOT 4
- xfs_undelete -l does not show at least one file type supported by file -i HOT 2
- Restore file with big inode number fail HOT 5
- Does this work with Amazon Linux AMI 2? I'm getting "can't find package cmdline"
- Test file not recovered, what am I doing wrong? HOT 3
- can't find package cmdline HOT 2
- thank and suggest HOT 2
- Help-me HOT 1
- invalid command name "lmap" HOT 9
- who can help me recover some files in a plesk system? HOT 3
- recovering a vdisk.img file HOT 4
- Clock Scan Problems and environments HOT 5
- I have xfs raid-5 array mounted as /srv/media HOT 7
- 0 file recovered xfs raid-5 HOT 1
- Unable to parse time range. Please put it as a range of time specs Tcl's \[clock sc... HOT 8
- missing value to go with key( 0%) HOT 3
- -l list file types option broken HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xfs_undelete.