Jump to content

caynam

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by caynam

  1. I created a Windows 11 VM, using 4 cores 8 threads and 16GB of RAM.

    Inittially, I used Vitual Graphic Card and everything work fine, no problems whatsoever. 

    However, when I passthru my AMD RX560 GPU to the VM, I have problems. I can boot up to Windows, install graphic driver for the GPU and even play some games using Parsec / Windows remote desktop. Problem is, I can not shut down the VM properly. When I shut down the VM, it just freeze and I can no longer access to the VM tab anymore. When I tried to Force Stop the VM, the Unraid Server get frozen too and I have to unplug the server and restart it manually. 

    I guess the AMD GPU has some conflics with other components of the server, but I'm not sure which.

    I tried different configs with the VM, but no avails.

    Here's the system log file for your reference.

     

    Please help! Thanks

    syslog.txt

  2. Hi, so here's the script that I edited based on your script

    Quote

    #!/bin/bash
    #noParity=true
    #arrayStarted=true

    #Remove Spaces from files prior to creating folder
    cd /mnt/user/Media/Movies/SDR/Test
    for f in *\ *; do mv "$f" "${f// /.}"; done

    #Create Folder from name and move to final location. File types editable below
    for FILE in `ls /mnt/user/Media/Movies/SDR/Test | egrep "mkv|mp4|avi|vob|iso|MKV|MP4|AVI|VOB|ISO"`
    do
    DIR=`echo $FILE | rev | cut -f 2- -d '.' | rev`
    mkdir /mnt/user/Media/Movies/SDR/Test/$DIR
    mv /mnt/user/Media/Movies/SDR/Test/$FILE /mnt/user/Media/Movies/SDR/Test/$DIR

     

    And this is the error message I got when trying to run the script

    Quote

    Script location: /tmp/user.scripts/tmpScripts/move_files/script
    Note that closing this window will abort the execution of this script
    mv: cannot stat '* *': No such file or directory
    /tmp/user.scripts/tmpScripts/move_files/script: line 15: syntax error: unexpected end of file

    Any thought?

     

     

     

  3. 42 minutes ago, kizer said:

    This is something I hacked together a while ago. 

     

    Remove spaces does what it sounds like because the second half errors out with spaces. 

     

    The second part creates a folder and moves the file into the folder. its been a long time since I created this and used this so I don't recall if it'll continue to move files since its not in a loop. Hopefully this will at least get you started. 

     

    #!/bin/bash
    #noParity=true
    #arrayStarted=true
    
    #Remove Spaces from files prior to creating folder
    cd /location-of-files
    for f in *\ *; do mv "$f" "${f// /.}"; done
    
    #Create Folder from name and move to final location. File types editable below
    for FILE in `ls /location-of-files | egrep "mkv|mp4|avi|vob|iso|MKV|MP4|AVI|VOB|ISO"`
    do
    DIR=`echo $FILE | rev | cut -f 2- -d '.' | rev`
    mkdir /location-of-files/$DIR
    mv /location-of-files/$FILE /location-of-files/$DIR

     

    Thank you! 

    I'll try this out

  4. Hi,

     

    So I have a bunch of movies stored my Unraid array for Plex Server. Problem is, some of them are in a folder structure (a movie file inside a folder with a same name) and some are just files inside a Movie folder.

    Now, there's a batch file in Windows that allows you to automatically create folders from file names and move that file into that folder. This is an excellence tool to organize your movies/tv collection. 

    I was wondering if we can do the same in Unraid?

     

    Thank you 

×
×
  • Create New...