Skip to content

Instantly share code, notes, and snippets.

@DanTheMan827
Last active August 21, 2018 09:16
Show Gist options
  • Save DanTheMan827/191199d7135dbcabbcdfd9754bc5197a to your computer and use it in GitHub Desktop.
Save DanTheMan827/191199d7135dbcabbcdfd9754bc5197a to your computer and use it in GitHub Desktop.
extrafs.hmod
=== ExtraFS Mod ===
This is a mod for the SNES Classic which will mount an unused nand partition at /var/lib/hakchi/extrafs
Do not install this if you have any kind of extra_space mod installed!
This partition is 64MB, you can use it however you like
local ext_device="/dev/nande"
local ext_path="$installpath/extrafs"
mkdir -p $ext_path
if ! mount -o rw,nosuid,nodev,noatime "$ext_device" "$ext_path" ; then
echo creating fs on $ext_device
$rootfs/bin/mkfs.ext2 "$ext_device" || return 1
mount -o rw,nosuid,nodev,noatime "$ext_device" "$ext_path" || return 1
fi
copy "$transferpath/p7060_extrafs" "$preinitpath/p7060_extrafs"
chmod +x "$preinitpath/p7060_extrafs"
return 1
local ext_device="/dev/nande"
local ext_path="$installpath/extrafs"
mkdir -p "$ext_path"
echo mounting $ext_path
mount -o rw,nosuid,nodev,noatime "$ext_device" "$ext_path"
local ext_device="/dev/nande"
local ext_path="$installpath/extrafs"
umount "$ext_path"
rm "$preinitpath/p7060_extrafs"
rm -rf "$ext_path"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment