1

I just bought a Toshiba X300 8TB 7500r hard disk.

At first I used the whole disk as a partition, the noise is really intolerable.

Then I tried to use a small partition of 1TB or 2TB, the noise is much smaller.

But 4TB still produces a large noise.

Can anybody give me some hint? Why partition size affects noise level?

Thank you very much!

Update:

A more recent test shows that, the partition size may not be the key reason for the noise.

The noise is generated when the ext4 performs [ext4lazyinit] at a speed of 5MB/s.

After I remount the disk with init_itable=0 option, the [ext4lazyinit] can perform at a speed about 100MB/s, the noise is gone!

Vimos
  • 113
  • 6

2 Answers2

3

The linux default filesystem, ext4, spreads files as far apart as it can to help against fragmentation (so you don't need to defragment so often). The side effect is that your HDD heads will travel a lot. You could try another file system like exFAT if that's acceptable.

For more information, see Do ext4 filesystems need to be defragmented?

Gizmo
  • 1,939
  • 6
  • 30
  • 56
  • [Fragmentation & Noise](https://pc.net/helpcenter/answers/noisy_hard_drive) ! – C0deDaedalus Jun 08 '18 at 07:18
  • @C0deDaedalus that would be applicable to Windows (or specifically NTFS, FAT32, FAT16, etc.. smart filesystems don't have this problem as often, as in my own experience, a file server that I used to manage on Windows server had 99% fragmentation and performance was a disaster). But the smart file systems do make the heads move around a lot which can make you think that your disk is fragmented, but it's not the case. – Gizmo Jun 08 '18 at 07:24
  • Hmmmmm. I got it - smart filesystem B-) – C0deDaedalus Jun 08 '18 at 07:31
  • Is there any parameter to control how far apart? There should be a threshold for a specific brand and size, if the space is large than the threshold, noise will be unavoidable. – Vimos Jun 08 '18 at 08:00
  • @Vimos don't quote me on it but by looking at https://www.kernel.org/doc/Documentation/filesystems/ext4.txt , the `mb_max_to_scan` and `mb_min_to_scan` parameters would be something that look like they do that. I'm no expert in this field so be careful. I would set min to `0` and max to something much smaller than your current system has (10x lower or 100x lower). – Gizmo Jun 08 '18 at 10:24
  • @C0deDaedalus also I would like to add that the disk in theory, is in fact, fragmented, but individual files aren't and future files probably will not either, because each grouped data is spread far from other grouped data. This is the case which I'm describing for "smart" file systems. – Gizmo Jun 08 '18 at 10:37
  • @Gizmo I find an interesting thing, when the noise is loud, `ext4lazyinit` process is running, could this be another reason? – Vimos Jun 11 '18 at 03:51
  • @Vimos that will indeed be another reason, just let it finish. See https://superuser.com/a/1208334/239433 – Gizmo Jun 11 '18 at 09:03
  • @Gizmo Thanks for the link, I just updated the question and problem solved! One question left for Toshiba, why 5MB/s produces such noise, haha! Thank you for the help! – Vimos Jun 11 '18 at 14:15
  • Fragmentation is only a big problem on the FAT family because they don't have an allocation map like NTFS. Moreover the NTFS driver also try to leave some buffer around files like ext4 to avoid fragmentation. And since Vista Windows always try to run defragmentor automatically – phuclv Jun 11 '18 at 14:52
0

I had a clicking (every second) sound with my new 6TB Toshiba NAS drives for a Debian homeserver I made. I was afraid it would damage the drives on long term. It still continued when I installed a delock raid1 controller. I have worked on it for a week trying all kind of configurations/new installations and HDparm settings, but nothing worked. My system partition was 100gb ext4 and I had a home partition of 5.5TB ext4. The clicking dissapeared after I changed the 5.5TB partition from ext4 to XFS. The drives are a bit noisy anyway, can hear them when I log in from another system, but I assume it is okay since NAS drives are a bit louder.