You are not logged in.

#1 2011-09-13 06:11:22

ILoveJapaneseGirls
Banned
Registered: 2009-09-05
Posts: 72

[SOLVED] How to defragment an NTFS partition in Linux?

Hello, I want to defragment an NTFS partition (which contains Windows XP) from Linux especially because when doing that under Windows is not possible to move system files, so I guess from Linux it will offer better results.

Is there any tool that could do it, like fsck?

I've tried this command:

fsck -t ntfs --kerneldefrag /dev/sda1

but it does nothing, it only shows this message:

fsck de util-linux 2.20

Is there any way to do it?

Thanks in advance!

Last edited by ILoveJapaneseGirls (2011-12-28 06:25:30)

Offline

#2 2011-09-13 06:23:04

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: [SOLVED] How to defragment an NTFS partition in Linux?

Please be sure to use the bbs search: Defragment a NTFS partition from LINUX

Offline

#3 2011-12-28 06:25:12

ILoveJapaneseGirls
Banned
Registered: 2009-09-05
Posts: 72

Re: [SOLVED] How to defragment an NTFS partition in Linux?

Maybe what you said jakobm is right, that topic contains the right answers, especially the post that says we shouldn't do it from Linux because it can mess with system files.

I'm closing the topic now. Thanks!

Offline

#4 2014-08-28 07:21:16

dagelf
Member
Registered: 2013-11-22
Posts: 4

Re: [SOLVED] How to defragment an NTFS partition in Linux?

jakobm wrote:

Please be sure to use the bbs search: Defragment a NTFS partition from LINUX

That thread has absolutely no information other than a list of motivations to use Windows to defrag it... and a link to a buggy Python defragger.

Here's the only bulletproof way to defrag NTFS under Linux:

Make a new partition of the same size (or bigger), and format it to NTFS and mount it at /defragged

Mount your fragged partition at /fragged

rsync -av /fragged /defragged

Wha-la. /defragged is now your fragged partition, defragged. Reformat /fragged and rsync it back if you really must.

Drives get fragmented if you do multiple copies at the same time, so don't do anything else on the drive while it's syninc.

Last edited by dagelf (2014-08-28 07:21:54)

Offline

#5 2014-08-28 07:35:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] How to defragment an NTFS partition in Linux?

This belongs on the wiki, not a dead thread: https://wiki.archlinux.org/index.php/Fo … Bumping.27



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB