merging_drives
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
merging_drives [2022/07/17 11:53] – johnsanc | merging_drives [2022/07/22 17:28] – johnsanc | ||
---|---|---|---|
Line 8: | Line 8: | ||
First, you will need to download and install WinFsp which is used for mounting virtual filesystems. | First, you will need to download and install WinFsp which is used for mounting virtual filesystems. | ||
- | - Go to the [[https:// | + | - Go to the [[https:// |
- Download the latest version for your operating system. For this example we will use the standard WinFsp Installer. | - Download the latest version for your operating system. For this example we will use the standard WinFsp Installer. | ||
- Open the WinFsp installer by double clicking on the ``.msi`` file that was downloaded. If prompted with a security warning, choose the " | - Open the WinFsp installer by double clicking on the ``.msi`` file that was downloaded. If prompted with a security warning, choose the " | ||
- Install the application by following the prompts. The default settings should be sufficient. | - Install the application by following the prompts. The default settings should be sufficient. | ||
- | |||
\\ | \\ | ||
===== Setup rclone ===== | ===== Setup rclone ===== | ||
- | Work in progress | + | Next, you will need to download and setup rclone which is used for mounting various remote sources so they can be accessed through Windows Explorer. This may not seem intuitive at first if your drives are all connected locally with different drive letters. In this example we will be using rclone just for its merging capabilities, |
+ | |||
+ | - Go to the [[https:// | ||
+ | - Download the latest version for your operating system. For this example we will use the " | ||
+ | - Extract the contents of the ``.zip`` file to a location of your choosing. Note that rclone is like RomVault and does not have an installer. For this example we will extract the contents to ``C: | ||
+ | |||
+ | \\ | ||
+ | ===== Configure an rclone Union remote ===== | ||
+ | Next, you need to configure rclone using a special type of remote called a " | ||
+ | |||
+ | - Open a command prompt by typing ``cmd`` into the Windows search bar and select **Command Prompt** | ||
+ | - Navigate to the rclone directory, | ||
+ | - Launch rclone by typing ``rclone config`` and press **Enter**. A configuration wizard will display. | ||
+ | - Choose the option for "New remote" | ||
+ | - Give your remote a friendly name so you know what it is. For this example we will be merging two drives that contain a PlayStation 2 collection, so we will call this remote " | ||
+ | - Choose the **union** option by typing the number or the word ``union`` and press **Enter**. The config wizard will ask for a list of upstreams, or paths to merge. | ||
+ | - Type or drag and drop the paths you want to include separated by a space, for example: ``" | ||
+ | - The setup wizard will walk you through various settings for this remote: | ||
+ | * **action_policy**: | ||
+ | * **create_policy**: | ||
+ | * **search_policy**: | ||
+ | * **cache_time**: | ||
+ | - When prompted to edit the advanced config, choose **no**. | ||
+ | - When prompted to keep the remote, choose **yes**. You will be taken back to the main menu of the remote configuration wizard. | ||
+ | - Quit the configuration wizard by typing ``q`` and press **Enter**. | ||
+ | |||
+ | |||
+ | \\ | ||
+ | ===== Mount the Union remote ===== | ||
+ | Now that you have a union remote configured, the next step is to mount the remote to access the files. This will effectively be a shortcut to access your files through the unified view. | ||
+ | |||
+ | - From the command prompt in the rclone directory, launch rclone using the mount option and choose to mount the remote to a new location using the following syntax: ``rclone mount [remote_name]: | ||
+ | - If everything was successful, a message should display indicating that the rclone service has started. | ||
+ | - Check that the mount exists by navigating to your mount path using Windows Explorer. The mount point will appear with a shortcut icon. | ||
+ | - Check that the contents of your drives are accessible through the remote. You should see the contents of both of your drives merged. | ||
+ | |||
+ | |**ⓘ NOTE:** \\ RomVault requires write access to the remote for fix operations. Use the ``--vfs-cache-mode writes`` option while mounting the remote to enable write access.| | ||
+ | |||
+ | |**💡 TIP:** \\ rclone must be running for the virtual files to be populated in your mount point. You may want to create a simple batch file to launch rclone and mount your union remote so you do not need to use the command line every time. | | ||
+ | |||
+ | \\ | ||
+ | ===== Optional: Create a batch script to mount remotes and start RomVault ===== | ||
+ | If you would like to mount your remotes when you launch RomVault, you can create a simple batch script as follows: | ||
+ | |||
+ | - Navigate to the directory of your RomVault executable | ||
+ | - Right click in blank space in Windows Explorer and select **New > Text Document** | ||
+ | - Rename the file something friendly with a ``.bat`` extension, like ``MountStartRV.bat`` | ||
+ | - Open your .bat file in Notepad by right clicking and choosing **Edit** | ||
+ | - Enter the contents of your batch script. You can use the following as an example:< | ||
+ | start " | ||
+ | - Make sure RomVault and rclone are both closed, then test your script by double clicking on your *.bat file. | ||
+ | - If everything was successful, rclone will launch and mount your remote and RomVault will also launch. | ||
+ | |||
+ | Congratulations! You can now mount your remotes and launch RomVault by clicking your batch script file. Note that closing RomVault will not stop your rclone mount. If you would like to unmount your remote and shut down the rclone, then close the rclone command prompt window. | ||
\\ | \\ | ||
===== Configure directory rules ===== | ===== Configure directory rules ===== | ||
- | Work in progress | + | Finally, the last step is to update your directory rule in RomVault to use your new mount point as the directory for your ROMs. In this case we will just be updating the directory rule for our PlayStation 2 collection. |
merging_drives.txt · Last modified: 2023/03/06 12:45 by johnsanc