Virtual SD Card Guide: Difference between revisions

Jump to navigation Jump to search
Add alternative link to file as Mediafire is super sketchy now
No edit summary
(Add alternative link to file as Mediafire is super sketchy now)
(16 intermediate revisions by 10 users not shown)
Line 4: Line 4:


== Creating a Virtual SD Card ==
== Creating a Virtual SD Card ==
It is recommend to create one with size at least 1GB for large homebrew apps, for example, Project M, and no more than 2GB for best compatibility as there are compatibility issues with some homebrew apps trying to run under an SDHC card on the real hardware.


It is recommend to create one with size at least 1GB for large homebrew apps, for example, Project M, and no more than 2GB for best compatibility as there are compatibility issues with some homebrew apps trying to run under an SDHC card on the real hardware. Not only that, Dolphin also having an issue with SDHC card support, regardless of homebrew apps that already support SDHC. See {{issue|8823}}.
=== Command Line and Executable Files ===
Download ''[http://www.mediafire.com/download/cfr9q8542e9lsos/Virtual+SD+Card+Maker.zip Virtual SD Card Maker]'', unzip it, and open the appropriate folder for your system  (Linux / OS X / Windows). The tool is run with a command like:
<pre>mksdcard 2048M sd.raw</pre>
 
# Open the Command Prompt or Terminal then (Note: Vista fails to support drag and drop, and will require manual input.):
# Drag and drop '''mksdcard''' file into the command window for the full directory pointing to mkscard.
# Type <kbd>2048M</kbd> for 2GB, or if desired, an alternate size like <kbd>512M</kbd> (512MB), <kbd>1024M</kbd> (1GB), etc.
# Drag and drop an existing '''sd.raw''' file into the command window, or use a different directory/filename to create a new one.
# Assuming a default [[Controlling the Global User Directory|Global User Directory]] the virtual SD card should be placed at:
::'''Linux''': <var>~/.dolphin-emu/Wii/sd.raw</var> OR <var> ~/.local/share/dolphin-emu/Wii/sd.raw</var>
::'''OS X''': <var>~/Library/Application\ Support/Dolphin/Wii/sd.raw</var>
::'''Windows''': <var>"%userprofile%\Documents\Dolphin Emulator\Wii\sd.raw"</var> (quotation marks are necessary when copying it to Command Prompt)


=== Command Line and Executable Files ===
Alternatively, a non-Mediafire download link can be found by visiting https://developer.android.com/studio/#command-tools and downloading the OS-specific zip there (mksdcard is part of the Android SDK)
Download ''[http://www.mediafire.com/download/cfr9q8542e9lsos/Virtual+SD+Card+Maker.zip Virtual SD Card Maker]'' then unzip it, and open one folder for your system. The file '''mksdcard''' will be used throughout this section. The user created batch file '''mksdcard.bat''' from <var>\Windows\</var> is command-line interface (CLI), intended for users who favor graphical user interface (GUI).


Open the Command Prompt or Terminal then follow the supposed command line:
=== Manual macOS Command Line Creation ===
<pre>mksdcard 2048M sd.raw</pre>
This example creates a 2048 megabyte (2GB) SD card formatted as FAT32:
*Drag and drop '''mksdcard''' file into the command window for the full directory pointing to mkscard.
<pre>
*Type <kbd>2048M</kbd> for 2GB, or if desired, instead it with different size like <kbd>512M</kbd> (512MB), <kbd>1024M</kbd> (1GB), etc.
hdiutil create -megabytes 2048 -fs MS-DOS -o ~/Library/"Application Support"/Dolphin/Wii/sd.raw
*To replace the virtual SD Card, just drag and drop an existing '''sd.raw''' file into the command window, or use a different directory to create new.
mv ~/Library/"Application Support"/Dolphin/Wii/sd.raw.dmg ~/Library/"Application Support"/Dolphin/Wii/sd.raw
</pre>


The virtual SD card is located at (assuming default [[Controlling the Global User Directory|Global User Directory]]):
=== Manual Linux Command Line Creation ===
:'''Linux''': <var>./.dolphin-emu/Wii/sd.raw</var>
If the above tool does not work, one can manually create a FAT32 partition image in Linux provided <kbd>dosfstools</kbd> is installed.
:'''OS X''': <var>~/Library/Application\ Support/Dolphin/Wii/sd.raw</var>
First, pull up a terminal, and then chdir into the Wii folder, which under certain configurations may be located at <var>~/.local/share/dolphin-emu/Wii</var> instead.
:'''Windows''': <var>"%userprofile%\Documents\Dolphin Emulator\Wii\sd.raw"</var> (quotation marks are necessary when copying it to Command Prompt)
<pre>
cd ~/.dolphin-emu/Wii
</pre>
Then, we must create our raw disk image. This example create a 2048 megabyte (2GB) SD card, but one can replace the <kbd>2048</kbd> with an alternate number of megabytes.
<pre>
dd if=/dev/zero bs=1M count=2048 of=sd.raw
</pre>
Finally, we format our image to FAT32.
<pre>
mkfs.fat -F 32 sd.raw
</pre>


== Editing a Virtual SD Card ==
== Editing a Virtual SD Card ==
=== Linux ===
The virtual SD card can be edited by mounting it to a virtual disk. First create a directory:
<pre>sudo mkdir /media/sdcard</pre>
Then mount sd.raw to it:
<pre>sudo mount -o defaults,umask=000 ./.dolphin-emu/Wii/sd.raw /media/sdcard</pre>
When you are done, simply unmount it like this:
<pre>sudo umount /media/sdcard</pre>
=== macOS ===
In Terminal window, type the following to mount the virtual SD card:
<pre>hdiutil attach -imagekey diskimage-class=CRawDiskImage ~/Library/Application\ Support/Dolphin/Wii/sd.raw</pre>
The virtual SD card can then be ejected through Finder when done being edited.
If you get an error (<tt>hdiutil: attach failed - no mountable file systems</tt>), you can use these commands instead:
<pre>hdiutil mount $(hdiutil attach -nomount -imagekey diskimage-class=CRawDiskImage ~/Library/Application\ Support/Dolphin/Wii/sd.raw)</pre>
=== Windows ===
=== Windows ===
The Windows users must use a third party software that can mount the virtual SD card. Speaking of which... ''[http://www.ltr-data.se/opencode.html/#ImDisk ImDisk Virtual Disk Driver]''
The Windows users must use a third party software that can mount the virtual SD card. Speaking of which... ''[http://www.ltr-data.se/opencode.html/#ImDisk ImDisk Virtual Disk Driver]''
Line 33: Line 71:
#When done editing the virtual SD card, simply unmount it by right-click on the "Removable Disk" then click '''"Unmount ImDisk Virtual Disk"''' from the context menu.
#When done editing the virtual SD card, simply unmount it by right-click on the "Removable Disk" then click '''"Unmount ImDisk Virtual Disk"''' from the context menu.
#*The virtual SD card must be dismounted before using with Dolphin.
#*The virtual SD card must be dismounted before using with Dolphin.
=== OS X ===
In Terminal window, type the following to mount the virtual SD card:
<pre>hdiutil attach -imagekey diskimage-class=CRawDiskImage ~/Library/Application\ Support/Dolphin/Wii/sd.raw</pre>
The virtual SD card can then be ejected through Finder when done being edited.
=== Linux ===
The virtual SD card can be edited by mounting it to a virtual disk. First create a directory:
<pre>sudo mkdir /media/sdcard</pre>
Then mount sd.raw to it:
<pre>sudo mount -o defaults,umask=000 ./.dolphin-emu/Wii/sd.raw /media/sdcard</pre>
When you are done, simply unmount it like this:
<pre>sudo umount /media/sdcard</pre>


== Dolphin Setting ==
== Dolphin Setting ==
Line 59: Line 84:


=== For Netplay ===
=== For Netplay ===
Netplay will eventually desync if anything reads the virtual SD card that is not cloned, regardless of the same size it was created, and identical file/folder structures within its root. To prevent that, '''sd.raw''' must be copied from host's computer to joiners' computers before starting netplay. If the virtual SD card was used offline, the MD5 checksum will change ("Date Accessed" of the files are what's different in virtual SD card), but will not cause desync. The SD card got to be coming from elsewhere or subjected to the files modified within to be "different".
Netplay will eventually desync if anything reads the virtual SD card that is not cloned, regardless of the same size it was created, and identical file/folder structures within its root. To prevent that, '''sd.raw''' must be copied from host's computer to joiners' computers before starting netplay. If the virtual SD card was used offline or online with write block disabled, the MD5 checksum will change ("Date Accessed" of the files are what's different in virtual SD card), but will not cause desync. The SD card got to be coming from elsewhere or subjected to the files modified within to be "different".


For the Wii game launcher app, users on both ends must have the same copies of homebrew app and the game in their game list first, then set the game as default ISO, as mentioned in previous section.
For the Wii game launcher app, users on both ends must have the same copies of homebrew app and the game in their game list first, then set the game as default ISO, as mentioned in previous section.


[[Category:Tutorials]]
[[Category:Tutorials]]

Navigation menu