You are not logged in.

#1 2011-10-24 08:04:40

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Is possible to defrag an NTFS partition from Linux?

My cousin computer uses Windows and it cannot defrag
(unknown Windows-like reason).

My first idea was using the old NTFS4DOS and defrag from
there, but it seems the included old DOS cannot boot.

I know I can try making a new bootCD with a newer
FreeDOS, but I hardly recall anything of DOS. So I was
wondering if it is possible to defrag an unmounted NTFS
partition from Linux where I am more confident I can
make a bootable usbkey or CD.

Thanks

Offline

#2 2011-10-25 11:17:03

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 233
Website

Re: Is possible to defrag an NTFS partition from Linux?

The only idea that comes to my mind is by utilizing a virtual machine. Unmount all NTFS partitions from Linux and try to access them from the VirtualBox with this command:

VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/Harddisks/myphysicaldisk.vmdk -rawdisk /dev/sdX

where X is your partition number.

After that you can attach the physical-to-virtual disk through the Virtualbox GUI.


Proud Arch Linux user since 2007.

Offline

#3 2011-10-25 11:28:34

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: Is possible to defrag an NTFS partition from Linux?

Since some posts here were lost due to forum error, I repost:
tar'ing, deleting and recopying all files do write continuously to the ntfs partition, thus effectively defragment it. But for that you need much free space on the other partition.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#4 2011-10-25 12:23:34

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 233
Website

Re: Is possible to defrag an NTFS partition from Linux?

SanskritFritz wrote:

tar'ing, deleting and recopying all files do write continuously to the ntfs partition, thus effectively defragment it. But for that you need much free space on the other partition.

Not few times I did that myself.


Proud Arch Linux user since 2007.

Offline

#5 2011-10-27 08:08:00

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Is possible to defrag an NTFS partition from Linux?

It seems Ultradefrag has been ported to linux (you can find the sources here); but I am not able to compile it.
Can anyone try? Once compiled the first time I will be happy to maintain it in the AUR.

Offline

Board footer

Powered by FluxBB