Virtual SD Card Guide: Difference between revisions

Jump to navigation Jump to search
Add alternative link to file as Mediafire is super sketchy now
(add new linux path / modify old path ~~~~)
(Add alternative link to file as Mediafire is super sketchy now)
(12 intermediate revisions by 9 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 ===
=== Command Line and Executable Files ===
Line 16: Line 15:
# Drag and drop an existing '''sd.raw''' file into the command window, or use a different directory/filename to create a new one.
# 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:
# 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>
::'''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>
::'''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)
::'''Windows''': <var>"%userprofile%\Documents\Dolphin Emulator\Wii\sd.raw"</var> (quotation marks are necessary when copying it to Command Prompt)
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)
=== Manual macOS Command Line Creation ===
This example creates a 2048 megabyte (2GB) SD card formatted as FAT32:
<pre>
hdiutil create -megabytes 2048 -fs MS-DOS -o ~/Library/"Application Support"/Dolphin/Wii/sd.raw
mv ~/Library/"Application Support"/Dolphin/Wii/sd.raw.dmg ~/Library/"Application Support"/Dolphin/Wii/sd.raw
</pre>
=== Manual Linux Command Line Creation ===
If the above tool does not work, one can manually create a FAT32 partition image in Linux provided <kbd>dosfstools</kbd> is installed.
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.
<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 ==
Line 29: Line 52:
<pre>sudo umount /media/sdcard</pre>
<pre>sudo umount /media/sdcard</pre>


=== OS X ===
=== macOS ===
In Terminal window, type the following to mount the virtual SD card:
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>
<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.
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 ===

Navigation menu