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/22 16:32] – johnsanc | merging_drives [2022/07/22 17:49] – [Optional: Create a batch script to mount remotes and start RomVault] johnsanc | ||
---|---|---|---|
Line 25: | Line 25: | ||
Next, you need to configure rclone using a special type of remote called a " | 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 selecting "Command Prompt" | + | - Open a command prompt by typing ``cmd`` into the Windows search bar and select **Command Prompt** |
- | - Navigate to the rclone directory, in this case: ``cd C: | + | - Navigate to the rclone directory, in this case: ``cd C: |
- | - Launch rclone by typing ``rclone config`` and press Enter. A configuration wizard will display. | + | - Launch rclone by typing ``rclone config`` and press **Enter**. A configuration wizard will display. |
- | - Choose the option for "New remote" | + | - 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 " | + | - 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" | + | - 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: ``" | + | - Type or drag and drop the paths you want to include separated by a space, for example: ``" |
- | - Choose | + | - The setup wizard will walk you through various settings for this remote: |
- | - Choose | + | * **action_policy**: |
- | - Choose | + | * **create_policy**: |
- | - Choose | + | * **search_policy**: |
- | - When prompted to edit the advanced config, choose | + | * **cache_time**: |
- | - When prompted to keep the remote, choose | + | - When prompted to edit the advanced config, choose |
- | - Choose to quit the configuration wizard by typing ``q`` and press Enter. | + | - When prompted to keep the remote, choose |
+ | - Quit the configuration wizard by typing ``q`` and press **Enter**. | ||
Line 45: | Line 46: | ||
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. | 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]: | + | - 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]: |
- | - After pressing Enter, a message should display indicating that the rclone service has started. | + | - 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 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. | - 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. | | |**💡 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. | ||
\\ | \\ |
merging_drives.txt · Last modified: 2023/03/06 12:45 by johnsanc