Good evening,
I recall that a few years ago, I somehow checked my Fedora system for disk fragmentation. I also think the tool came with Fedora; i did not have to install it separately. Now, I don't recall the name of the tool that did that. Nor can I find any tool to do that. How do I check my F-28 system for disk fragmentation?
thanks, Bill.
On 4/3/19 6:28 PM, home user via users wrote:
Good evening,
I recall that a few years ago, I somehow checked my Fedora system for disk fragmentation. I also think the tool came with Fedora; i did not have to install it separately. Now, I don't recall the name of the tool that did that. Nor can I find any tool to do that. How do I check my F-28 system for disk fragmentation?
Hi Bill,
I don't know of any defragmentation tool. Are you maybe thinking of "fsck"? It's a program to check the health of the filesystem and recover any lost bits, etc.
On 4/4/19 9:45 AM, home user via users wrote:
Mike wrote
I don't know of any defragmentation tool. Are you maybe thinking of "fsck"? It's a program to check the health of the filesystem and recover any lost bits, etc.
No. It was definitely a tool that included fragmentation checking and defragmentation functionality.
You could be thinking of e4defrag?
On 4/3/19 6:45 PM, home user via users wrote:
Mike wrote
I don't know of any defragmentation tool. Are you maybe thinking of "fsck"? It's a program to check the health of the filesystem and recover any lost bits, etc.
No. It was definitely a tool that included fragmentation checking and defragmentation functionality.
There was a program called "e2defrag", but it was for ext2 only. e2fsck will give you a fragmentation percent at the end. Just don't forget the "-n" unless the partition is not mounted!
# e2fsck -nf /dev/sda2 [skip lots of invalid output] root: 764635/5242880 files (0.2% non-contiguous), 18993872/20971520 blocks
(Samuel wrote)
There was a program called "e2defrag", but it was for ext2 only. e2fsck will give you a fragmentation percent at the end. Just don't forget the "-n" unless the partition is not mounted! ...
I saw this after tagging the thread "SOLVED". But for continuing education, I'll give this a try tomorrow morning.
Thank-you, Samuel. Bill.
(Samuel wrote)
There was a program called "e2defrag", but it was for ext2 only. e2fsck will give you a fragmentation percent at the end. Just don't forget the "-n" unless the partition is not mounted!
I done it. ----- -bash.5[~]: e2fsck -nf [partition] e2fsck 1.44.2 (14-May-2018) Warning! [partition] is mounted. Warning: skipping journal recovery because doing a read-only filesystem check. Pass 1: Checking inodes, blocks, and sizes Deleted inode 52428804 has zero dtime. Fix? no
Inodes that were part of a corrupted orphan linked list found. Fix? no
Inode 52429073 was part of the orphaned inode list. IGNORED. Inode 52429167 was part of the orphaned inode list. IGNORED. Inode 52429328 was part of the orphaned inode list. IGNORED. Inode 52431131 was part of the orphaned inode list. IGNORED. Inode 52431332 was part of the orphaned inode list. IGNORED. Inode 52431496 was part of the orphaned inode list. IGNORED. Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Block bitmap differences: -33824 -(209757912--209757923) -(209759858--209759869) -(209766298--209766309) -(210052344--210052355) -(210616843--210616854) -(211515401--211515412) Fix? no
Free blocks count wrong (235056406, counted=235055939). Fix? no
Inode bitmap differences: -52428804 -52429073 -52429167 -52429328 -52431131 -52431332 -52431496 Fix? no
Free inodes count wrong (60127490, counted=60127428). Fix? no
[partition]: ********** WARNING: Filesystem still has errors **********
[partition]: 59134/60186624 files (1.7% non-contiguous), 5659882/240716288 blocks -bash.6[~]: ----- (hopefully, I got the right partition!) I gather the "1.7% non-contiguous" is what relates to fragmentation.
This does raise a few questions, but I'll deal with those late this month, in a separate thread, after I upgrade to F-29.
Thank-you, Samuel. Bill.
On 04/03/2019 07:28 PM, home user via users wrote:
I recall that a few years ago, I somehow checked my Fedora system for disk fragmentation. I also think the tool came with Fedora; i did not have to install it separately. Now, I don't recall the name of the tool that did that. Nor can I find any tool to do that. How do I check my F-28 system for disk fragmentation?
You don't. The ext2/3/4 file systems are designed to minimize fragmentation, and one of the worst things you can do is defrag your system because that will just cause constant fragmentation. In fact, the best way to defrag if you really really have to is by backing up, reformatting and restoring your system.
(Joe wrote)
You don't. The ext2/3/4 file systems are designed to minimize fragmentation, ...
Not what I expected. But I like it!
Recently, I've been moving a lot of files and sub-directories around. And I'm preparing for a semi-annual big back-up and system upgrade (to F-29). Because it has been a few years since I last checked for fragmentation, I thought it would be good to at least check.
A few minutes ago, based on Ed's reply, I tried "e4defrag -c" on "/home": ----- e4defrag 1.44.2 (14-May-2018) <Fragmented files> now/best size/ext 1. [user1's home]/.ICEauthority 30/1 4 KB 2. [user1's home]/.local/share/tracker/tracker-miner-fs.log 12/1 4 KB 3. [user2's home]/.nv/GLCache/e0ac323390458da3db161114e73bf39c/89ca161336d63803/c6eb5423ccd49d57.toc 11/1 4 KB 4. [user2's home]/.local/share/tracker/tracker-miner-fs.log 29/1 4 KB 5. [user2's home]/.nv/GLCache/1518083e014283666145392811bca1e8/4c4d90067ea0e5dc/c6eb5423ccd49d57.toc 9/1 4 KB
Total/best extents 55461/52910 Average size per extent 131 KB Fragmentation score 1 [0-30 no problem: 31-55 a little bit fragmented: 56- needs defrag] This directory (/home) does not need defragmentation. Done. -bash.2[~]: ----- So it looks great.
The results above do raise a question in my mind: What are those "[user's home]/.local/share/tracker/tracker-miner-fs.log" files? Anything to do with coin or data mining, or something else malicious?
Thank-you, Joe and Ed. Bill.
On 4/4/19 11:12 AM, home user via users wrote:
The results above do raise a question in my mind: What are those "[user's home]/.local/share/tracker/tracker-miner-fs.log" files? Anything to do with coin or data mining, or something else malicious?
These are produced by the "tracker" packages.
I, personally, couldn't find a need for them so I erased them quite some time ago.
Do a "dnf info tracker" and "dnf info traker-miners" for more info on what they do.
(Ed wrote)
These are produced by the "tracker" packages. I, personally, couldn't find a need for them so I erased them quite some time ago.
I assume you deleted the files, not the packages. Mine were dated 2013, so I deleted them.
Do a "dnf info tracker" and "dnf info traker-miners" for more info on what they do.
That gave me a rough idea. Doesn't sound like anything I have wanted or do want. But I can't predict the future, so I'm keeping the packages.
Thank-you, Ed. Bill.
On 4/4/19 11:53 PM, home user via users wrote:
(Ed wrote)
These are produced by the "tracker" packages. I, personally, couldn't find a need for them so I erased them quite some time ago.
I assume you deleted the files, not the packages. Mine were dated 2013, so I deleted them.
I should have been specific.
I did do "dnf erase tracker*" as it was an easier way to ensure the daemons wouldn't run for any user.
Do a "dnf info tracker" and "dnf info traker-miners" for more info on what they do.
That gave me a rough idea. Doesn't sound like anything I have wanted or do want. But I can't predict the future, so I'm keeping the packages.
Thank-you, Ed.
On 4/3/19 8:12 PM, home user via users wrote:
The results above do raise a question in my mind: What are those "[user's home]/.local/share/tracker/tracker-miner-fs.log" files? Anything to do with coin or data mining, or something else malicious?
Tracker is a service that indexes your files so you can easily search for them by name and content.
home user via users:
Good evening,
I recall that a few years ago, I somehow checked my Fedora system for disk fragmentation. I also think the tool came with Fedora; i did not have to install it separately. Now, I don't recall the name of the tool that did that. Nor can I find any tool to do that. How do I check my F-28 system for disk fragmentation?
thanks, Bill.
I really do not see any need to defrag a Linux system. The file system itself already takes care of everything.