Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Defrag Unraid Drives

Featured Replies

Last significant post I could find on this subjected started in 2016.

I recently took an unassigned drive off my Unraid server and hooked to my Windows PC. It is formatted NTFS. I found it was 27% fragmented. Indeed, Windows had a such hard time de-fragmenting it, I ended up wiping it and copying the files manually with Krusader. I would copy so many gigs, bring it to my Windows PC, defrag it, and hook it back up to Unraid. Kept doing the process until everything was copied, about 3TB.

(I was using Rsync to copy the files previously).

Which brought me to the question, is there a solution to de-fragement these drives while attached to the Unraid NAS? Also, had me wondering about the drives in my Array itself. How fragmented are those?

Solved by JorgeB

  • Community Expert
  • Solution

For NTFS best to use WIndows defrag.

  • Community Expert
5 hours ago, RaidPC said:

I would copy so many gigs, bring it to my Windows PC, defrag it, and hook it back up to Unraid. Kept doing the process until everything was copied, about 3TB.

That makes no sense, if you wiped and copied again there would be no fragmentation then, so pointless to run defrags.

5 hours ago, RaidPC said:

Also, had me wondering about the drives in my Array itself. How fragmented are those?

Pretty much doesn't matter with the usual filesystems used in the array.

Edited by Kilrah

  • Author

"That makes no sense, if you wiped and copied again there would be no fragmentation then, so pointless to run defrags."

Can only speak on what I saw. But when files are written to a drive, unless things have changed, they are not written in a nice, neat order, from the front of the disk to the back. So when you load a lot of files as in terabytes, I would expect fragmentation. Just didn't expect coming from Rsync to Windows defrag it would be so bad for Windows to struggle with it.

Using Windows defrag as suggested above, with the process of stopping after so many gigabytes and de-fragmenting.

  • Community Expert
10 hours ago, RaidPC said:

But when files are written to a drive, unless things have changed, they are not written in a nice, neat order, from the front of the disk to the back.

You must be confused because it's how it's been for basically ever. Fragmentation happens when some files later get deleted and the gaps get filled by new ones that don't quite fit and have to be... well fragmented where there is space.

Edited by Kilrah

  • Author

Cool. Didn't know that was the case when writing a lot of files to a new or cleared drive. While I believe 100% what you wrote, not sure why when I wrote 30% to my drive, disconnected from Unraid, hooked to my PC and Windows found fragmentation.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.