LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2012, 04:39 PM   #1
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
ntfs-3g defrag?


Is there any way to defrag NTFS drive partitions mounted as ntfs-3g? I assume fragmentation still happens to NTFS formatted drives under Linux.
 
Old 02-08-2012, 05:35 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

Quote:
Originally Posted by arashi256 View Post
Is there any way to defrag NTFS drive partitions mounted as ntfs-3g?
no, AFAIK not. And that's not a matter of the ntfs-3g driver, as defragmentation is also just reading and writing sectors. But I don't know any Linux tool that would do the job of working out which sectors to read and where to write them.

Quote:
Originally Posted by arashi256 View Post
I assume fragmentation still happens to NTFS formatted drives under Linux.
You bet. It also does on NTFS partitions under native Windows, and massively so. And fragmentation degrades performance noticeably.
But I wouldn't care too much about that. Using NTFS formatted volumes in Linux is usually just a stopgap solution, so you'd better defrag them while they're connected to a Windows host. And do it frequently, at least every other week on regularly used drives.

[X] Doc CPU
 
Old 02-08-2012, 05:46 PM   #3
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Original Poster
Rep: Reputation: 61
Thank you for your reply. Well, that's rather depressing news frankly. Is it technically not possible or does Windows have some kind of secret sauce to handle NTFS?
 
Old 02-08-2012, 06:46 PM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,960

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Quote:
Originally Posted by arashi256 View Post
Is it technically not possible or does Windows have some kind of secret sauce to handle NTFS?
Yes. NTFS is proprietary, and Microsoft ain't sharing the recipe.
 
Old 02-09-2012, 05:43 AM   #5
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

Quote:
Originally Posted by rkelsen View Post
NTFS is proprietary, and Microsoft ain't sharing the recipe.
exactly, and the guys who created ntfs-3g did an excellent job here, because they hadn't any specification to adhere to.
All they found out is based on tedious debugging and reverse engineering, and probably lots of try & error. We should be awestruck at how fine it works.

Isn't there another NTFS driver implementation for Linux that runs the native Windows driver in a virtualized environment "just like that", the same way as they do with the NDIS wrapper for Windows WLAN drivers? - Well, it wouldn't make a difference for the OP's question, though.

[X] Doc CPU

Last edited by Doc CPU; 02-09-2012 at 06:53 AM.
 
Old 02-09-2012, 09:07 AM   #6
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,831
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Quote:
Originally Posted by rkelsen View Post
Yes. NTFS is proprietary, and Microsoft ain't sharing the recipe.
I second the notion that this is correct. Most of the proprietary defragging tools use a Microsoft API to automatically defrag. Then it is handled by the operating system. Here's some articles related to that.

http://www.mydefrag.com/forum/index.php?topic=1517.0
http://www.mydefrag.com/FAQDownloadA...Available.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Advise needed: NTFS defrag tool Sunny Rabbiera General 9 03-02-2009 03:35 PM
Defrag? spaceballs Slackware 17 05-14-2006 01:44 AM
Defrag? sleekmason Linux - Software 6 04-06-2006 07:44 PM
unable to resize ntfs - defrag problem? towsonu2003 Linux - General 4 08-31-2005 10:05 PM
defrag Citizen Bleys Linux - General 23 08-28-2003 11:23 AM


All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration