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.

Re: Format XFS on replacement drive / Convert from RFS to XFS (discussion only)

Featured Replies

The files are still there and I can play them.

I realize that delete doesn't do anything except flag the file as deleted.

However the file is marked by remove-source-files, unraid sees it as deleted thus the 44MB usage but windows sees 2TB of media files.

  • Replies 1.1k
  • Views 209.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I'll start by giving some background on the current wiki method, and then touch on a few things you may not have thought about.  I had noticed already several users using unBALANCE, and had been think

  • Frank1940
    Frank1940

    I am in the process of converting the format on my Media Server.  (The Spec's are below.)  I normally use the reconstruct write (aka, turbo write) method of writing to the array but I decided that rea

  • @bombz - You will need to do a new config to remove the old drives and add the new one. Don't delete the data from the 2 500G drives, and you'll have a backup just in case you have any issues with the

Posted Images

The files are still there and I can play them.

I realize that delete doesn't do anything except flag the file as deleted.

However the file is marked by remove-source-files, unraid sees it as deleted thus the 44MB usage but windows sees 2TB of media files.

 

Additional thought, are you looking at a disk share or a user share?

 

If you are looking at a disk share the share should be called diskX.

 

User shares by default aggragate files and directories from accross all the disks in the array (unless set differently) so even though you moved files from DiskX to DiskY they are on DiskY so they show up in the user share.

 

If you look at the DiskX share (by sharing that disk under the disk settings) it only shows what's on DiskX and should show empty folders.

 

If this isn't it, and those files really are still there I am really confused by what's going on, though I don't know that it's a huge problem.

I'm looking at a disk share.

disk4 in my case.

  • Community Expert

I'm looking at a disk share.

disk4 in my case.

What do you get with

v /mnt/user

root@Unraid1:~# v /mnt/user

total 11

drwxrwxrwx 1 nobody users 10512 Mar 26 01:01 Audio/

drwxrwxrwx 1 nobody users  144 Mar 26 01:01 Media\ Art/

drwxrwxrwx 1 nobody users    72 Apr 14 22:05 Video/

drwxrwxrwx 1 nobody users    79 Oct  8  2014 disk4/

drwxrwxrwx 1 nobody users  1256 Apr 14 08:19 zzMisc/

root@Unraid1:~#

 

 

 

What is this supposed to be showing us?

  • Community Expert

root@Unraid1:~# v /mnt/user

total 11

drwxrwxrwx 1 nobody users 10512 Mar 26 01:01 Audio/

drwxrwxrwx 1 nobody users  144 Mar 26 01:01 Media\ Art/

drwxrwxrwx 1 nobody users    72 Apr 14 22:05 Video/

drwxrwxrwx 1 nobody users    79 Oct  8  2014 disk4/

drwxrwxrwx 1 nobody users  1256 Apr 14 08:19 zzMisc/

root@Unraid1:~#

 

 

 

What is this supposed to be showing us?

It's showing us that you have a user share named disk4

Any ideas why windows thinks the files are still there.

 

I want to format the drive and continue.

 

Thanks

A user share called disk4 sounds like a dangerous thing!

 

It likely hides the disk4 disk share.

 

Was this purposeful?

Any ideas why windows thinks the files are still there.

 

I want to format the drive and continue.

 

Thanks

 

I think (not tested the -R use of ls before myself) you can check if the files are actually still there using the following command.

 

ls -R /mnt/disk4

 

ls lists the contents of a directory, the -R option does it recursively, and /mnt/disk4 is the disk I assume you want to check, if it's not disk 4 substitute for the disk number it is...

 

I suspect this will only return the directories you had but no files.

 

As to why Windows would think your files are still on disk4... well it doesn't.

 

When trurl asked you to

v /mnt/user

the results that you posted show that you have a user share "mnt/user/disk4" that appears to be a disk share but is actually a user share. Because disk4 is actually a user share and user shares aggregate across all disks (unless the share is set to not do that) it's showing the data on the other disks when you look at the disk4 folder in Windows.

 

Unless creating a user share named disk4 was intentional I suggest you change that.

 

OK thanks all.

The light has finally come on.

No I did not create the user share on purpose.

I did make the disks visible so that I could check them.

It didn't click that I had a user share hiding the disk share.

 

Now how do I delete the share it is showing up on the settings page as not empty.

OK just found something else out.

 

The RSYNC command created a disk4 top level folder with all my data in it on my new disk6 which apparently gets shared automatically.

I moved my data to the top level but although the share is now empty I can't delete it.

I get the following error:

 

Invalid share name specified

Do not use reserved names

 

Is there a way to not create the new folder with the RSYNC command?

How do I delete the share, deleting from the disk does not remove it from unraid?

 

Thanks

OK found my error, forgot a trailing slash which is why it created the directory.

 

So I still need to delete the user share.

 

Thanks

  • Community Expert

If the problem folder no longer exists, check your flash drive for config/shares/disk4.cfg. It may not exist but if it does, delete it. Then stop then restart the array. If that doesn't work, stop the array and reboot.

OK found my error, forgot a trailing slash which is why it created the directory.

 

So I still need to delete the user share.

 

Thanks

 

You should be able to navigate to the directory from the command line and remove the directory ...

 

cd /mnt/disk6

rm disk4

 

Also delete the user share disk4.cfg as trurl indicates. Between the two the disk4 share should be gone.

 

That was a weird one! :)

Thanks all who helped.

 

I deleted the folder and stopping and starting the array removed the share.

 

Should this possibly be considered a bug.

If unraid is going to automatically create a share for a top level folder should it be verifying that it is not a reserved name?

 

Thanks again.

Robert

Thanks all who helped.

 

I deleted the folder and stopping and starting the array removed the share.

 

Should this possibly be considered a bug.

If unraid is going to automatically create a share for a top level folder should it be verifying that it is not a reserved name?

 

Thanks again.

Robert

 

Yes. I would report as a defect in the defect subforum.

  • Community Expert

Thanks all who helped.

 

I deleted the folder and stopping and starting the array removed the share.

 

Should this possibly be considered a bug.

If unraid is going to automatically create a share for a top level folder should it be verifying that it is not a reserved name?

 

Thanks again.

Robert

 

Yes. I would report as a defect in the defect subforum.

Have to wonder about the solution for this "defect" though. It's one thing to prevent the user from creating a user share in the webGUI, quite another to prevent something else from creating a top level folder that is then automatically "promoted" to a user share. Seems like this could get pretty deep into the unRAID user share implementation.

 

And what should be done with top level folders that are not considered user shares? I can see them accumulating to perhaps even outnumber the top level folders that are user shares.

 

Every time unRAID needed to deal with user shares, it would have to consult a list (possibly long) to decide which top level folders were user shares and which were not.

 

And what about the assumption that unRAID will create your user shares for you by looking at the top level folders on all drives? Probably many have shares that they have never explicitly configured.

 

I have also seen cases where users have misconfigured an application, and so wound up with 2 user shares that have the same name except for case, and SMB/Windows not knowing how to deal with it.

 

Not saying something shouldn't be done, or can't be done. Just pointing out some of the implications.

  • Community Expert

Thanks all who helped.

 

I deleted the folder and stopping and starting the array removed the share.

 

Should this possibly be considered a bug.

If unraid is going to automatically create a share for a top level folder should it be verifying that it is not a reserved name?

 

Thanks again.

Robert

I think t does if you do it through the GUI.    However you bypassed that process by creating the folder manually.  Not sure if it should refuse to create an automatic share for a folder with a reserved name - that might be sensible.
...

UPDATE: Here is one way to complete step 8 (see later post in this thread) (thanks to danioj):

 

From a screen session, run this command:

  rsync -nrcv /mnt/[source] /mnt[dest]/t >/boot/verify.txt

 

This will put the output of the comparison in a file on the flash disk. It will likely have little or no output, but this will preserve all output in case it is lengthy and would scroll off the screen.

 

You can view the output with this command in another session:

  cat /boot/verify.txt

 

9 - If there are any comparison failures, stop here and ask for help...

I just followed the guide and copied every file on disk3 to a folder t on disk14.

 

And ran the command: rsync -nrcv /mnt/disk3 /mnt/disk14/t >/boot/verify_disk14.txt

 

I ended up with a verify_disk14.txt file on my usb stick that contained every file on disk3, did I do something wrong?

 

sending incremental file list

disk3/
...
...
...
sent 403,033 bytes  received 21,439 bytes  10.69 bytes/sec

total size is 3,928,060,848,066  speedup is 9,253,992.84 (DRY RUN)

So does anyone know why the command: "rsync -nrcv /mnt/disk3 /mnt/disk14/t >/boot/verify_disk14.txt" doesn't work for me?

:o

So does anyone know why the command: "rsync -nrcv /mnt/disk3 /mnt/disk14/t >/boot/verify_disk14.txt" doesn't work for me?

:o

 

I don't know for sure, but I do know that trailing / are important to rsync. Perhaps it's a missmatch issue, where you did /mnt/disk3/ the first time and /mnt/disk3 the second time.

 

I'd run it again like

rsync -nrcv /mnt/disk3/ /mnt/disk14/t >/boot/verify_disk14.txt

see if that comes back with an empty list (since the files are already in disk14/t)

 

 

So does anyone know why the command: "rsync -nrcv /mnt/disk3 /mnt/disk14/t >/boot/verify_disk14.txt" doesn't work for me?

:o

 

I don't know for sure, but I do know that trailing / are important to rsync. Perhaps it's a missmatch issue, where you did /mnt/disk3/ the first time and /mnt/disk3 the second time.

 

I'd run it again like

rsync -nrcv /mnt/disk3/ /mnt/disk14/t >/boot/verify_disk14.txt

see if that comes back with an empty list (since the files are already in disk14/t)

Thanks, I will try that.  :)

 

EDIT:It worked, the file ended up containing:

sending incremental file list

sent 382,411 bytes  received 813 bytes  6.83 bytes/sec
total size is 3,928,060,848,066  speedup is 10,250,038.75 (DRY RUN)

So does anyone know why the command: "rsync -nrcv /mnt/disk3 /mnt/disk14/t >/boot/verify_disk14.txt" doesn't work for me?

:o

 

I don't know for sure, but I do know that trailing / are important to rsync. Perhaps it's a missmatch issue, where you did /mnt/disk3/ the first time and /mnt/disk3 the second time.

 

I'd run it again like

rsync -nrcv /mnt/disk3/ /mnt/disk14/t >/boot/verify_disk14.txt

see if that comes back with an empty list (since the files are already in disk14/t)

Thanks, I will try that.  :)

 

EDIT:It worked, the file ended up containing:

sending incremental file list

sent 382,411 bytes  received 813 bytes  6.83 bytes/sec
total size is 3,928,060,848,066  speedup is 10,250,038.75 (DRY RUN)

 

That is great news. Glad to hear it!

So, for step 8, you could use ...

  rsync -nrcv /mnt/[source] /mnt[dest]/t >/boot/verify.txt

 

It should be done from a screen session or it will time out and stop.

 

This will put the output in a file on the flash disk. It will likely have little or no output, but this will preserve it in case it is lengthy and would scroll off the screen.

 

You can view the output with this command in another session:

  cat /boot/verify.txt

 

As I need to copy data back to empty disk, I took the time to convert some of them to xfs and found this post as the guide. Prior to reading about this rsync method, I was running diff -r on the two drives and was not finding any differences, but when I followed this rsync method, I quite a long list of files in the verify.txt dump.

 

I was quite surprised and I compared some of the files with diff but it didn't show any difference.  What did I do wrong?

 

I'm on 6b15, the files were copied with mc, and I did compare the file permission and ownership and they look the same.

 

Of note, I'm running the rsync while also copying files (to/from completely unrelated disks/paths); but they shouldn't interfere with one another, right.

 

Edit: Fingers crossed, it was a trailing slash issue.

 

Edit2: It WAS a trailing slash issue. Thank goodness.

  • 2 weeks later...

Gave a real quick try before bed. Found two drives. Was going to move all the data off the one drive into a folder named "mike" using Midnight Commander. Within 2 minutes it would fail and tell me file cannot be created. Something about read only file system again. I use to move loads of files via MC all the time and never came across this, so this may be something new. Maybe when they are created they automatically turn into read only. And of course I'm signed in as root in the terminal. Just have to figure out why it is doing that, because I can copy the data off a drive pretty quickly and get this XFS going pretty quick. Then I couldn't even delete the files that were copied. Only way I could do that was reboot the system, which made them NOT read only. Must be a flag somewhere telling unraid to make newly created files within the shell to a readonly or something related to that. I'm seeing doubles now. Maybe not such a good idea to keep tinkering.

 

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.