LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-07-2013, 12:38 PM   #1
zrogee
LQ Newbie
 
Registered: Nov 2013
Distribution: LinuxMint 15 KDE
Posts: 5

Rep: Reputation: Disabled
Excessive IO activity by mount.ntfs-3g on startup


So, I have a problem that has puzzled me for quite some time.
In my /etc/fstab file I use the following line to mount an NTFS drive in Linux (a seperate drive, if that makes any difference):
Code:
/dev/sda2     /home/user/Downloads/win7     ntfs-3g     defaults  0  0
When I login, iotop will look like this for 8-12 minutes before returning to normal:



CPU usage is usually unaffected, but I can't really do anything that involves manipulating files.
Am I using the ntfs-3g driver incorrectly?
 
Old 11-07-2013, 07:28 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I can't read the jpeg.
Have you tried running chkdsk against it (from Windoze) ?.
 
Old 11-07-2013, 07:57 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Defrag too maybe?

Are some files needed or trying to be accessed when it mounts?
 
Old 11-08-2013, 08:46 AM   #4
zrogee
LQ Newbie
 
Registered: Nov 2013
Distribution: LinuxMint 15 KDE
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
I can't read the jpeg.
I made a thumbnail which links to a bigger jpeg, because I wasn't too sure about the rules on posting images on this forum.
I should've made that clearer in my first post.

Thanks for the tips. I tried both chkdsk and defragging; chkdsk reported no problems and defragmentation was minimal (I still went ahead and completed a full defrag).
The problem is still there, and I'm just about ready to throw in the towel and convert the drive to ext4.
 
Old 11-08-2013, 03:42 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I don't have any (major) issues with ntfs-3g - I run NTFS mounts everywhere as I keep the Windoze that systems ship with. But I only normally read from the Linux side.
I tried an installable driver for ext3 on Windoze years ago and wasn't happy with the result. Gave up on it - others have reported better results (if you are planning on that).
 
Old 11-08-2013, 03:47 PM   #6
zrogee
LQ Newbie
 
Registered: Nov 2013
Distribution: LinuxMint 15 KDE
Posts: 5

Original Poster
Rep: Reputation: Disabled
Actually, I was just thinking of wiping the Windows drive completely and turning it into an ext4 data drive. Pretty much spend all of my time in Linux - I just wanted to access music/data files on the Windows drive using ntfs-3g.
 
Old 11-09-2013, 04:49 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
When you remove the fstab entry and then do a normal mount does it have a similar issue?
 
Old 11-10-2013, 04:31 AM   #8
zrogee
LQ Newbie
 
Registered: Nov 2013
Distribution: LinuxMint 15 KDE
Posts: 5

Original Poster
Rep: Reputation: Disabled
I tried removing the fstab entry, and although mount.ntfs-3g didn't spike in IO activity on startup it did as soon as I manually mounted the drive in KDE.
 
Old 11-18-2013, 07:54 AM   #9
zrogee
LQ Newbie
 
Registered: Nov 2013
Distribution: LinuxMint 15 KDE
Posts: 5

Original Poster
Rep: Reputation: Disabled
I think I found a solution.

By closely watching iotop for the duration of the 99% activity attributed to "mount.ntfs-3g", I discovered a brief but noticeable IO spike by "updatedb.mlocate" just after the "mount.ntfs-3g" spike dissappeared.

It seems like (on Ubuntu systems) updatedb.mlocate is set to run daily (and possibly more often than that) by cron.
I killed the process, disabled the cron.daily script and deleted the database:
Code:
sudo killall updatedb.mlocate
sudo chmod -x /etc/cron.daily/mlocate
sudo rm /var/lib/mlocate/mlocate.db
So far (going on a couple of days) I haven't had the otherwise recurring issue of high IO activity by "mount.ntfs-3g".
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error mount Ntfs disk at startup Neptune87 Linux - General 2 03-06-2009 11:07 AM
Mount NTFS, doesen't have a valid NTFS d0lle Linux - Hardware 4 11-02-2008 12:40 PM
I can't mount ntfs partitions with the latest ntfs-3g version BK2 Linux - Software 1 02-01-2008 07:08 PM
Excessive disk activity in 12.0 elyk Slackware 3 07-04-2007 10:53 PM
Excessive Disk Activity overbored Linux - Software 2 01-26-2007 08:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:26 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
Open Source Consulting | Domain Registration