[Bjonnh.net]# _

Article / Backup an Akai MPC One over SSH >

categories music hack tags akai mpc

The Akai MPC One is a nice device, but it is a pain to backup if you have to get the SDCard out everytime. Using the SSH mod discovered by TheKikGen, it is easy to connect over ssh and get whatever you need.

The SSH mod

This is for Linux users that already know how to use the command line and are not worried about breaking things.


Get mpcimg.

Then make that script which is an adaptation from their instructions:

#!/usr/bin/env bash

# Name this patch.sh

if [ $# -eq 0 ]
    echo "No arguments supplied, give me the image you want to patch"
    exit 1

if [ ! -f $1 ]
    echo "File not found!"
    exit 1

sudo umount rootfs_here || echo "Nothing was mounted, great"
rm rootfs_here.img
./mpcimg extract $1 here
mkdir -p rootfs_here
sudo mount -o loop rootfs_here.img rootfs_here
cd rootfs_here
sudo sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/g' etc/ssh/sshd_config
# I don't think those are needed
#sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' etc/ssh/sshd_config
#sudo sed -i 's/\#PermitEmptyPasswords no/PermitEmptyPasswords yes/g' etc/ssh/sshd_config
sudo ln -s /usr/lib/systemd/system/sshd.service etc/systemd/system/multi-user.target.wants
sudo tee -a root/.ssh/authorized_keys < ~/.ssh/id_rsa_mpc.pub
# This file contains:
# www.google-analytics.com
# google-analytics.com
# because the device keeps spying on you through that
sudo cp ../hosts etc/hosts
cd ..

echo "If you want to foul around, the rootfs is still mounted at rootfs_here"
echo "Then run upload.sh when you are happy"

You use that script by calling it with the image you want to patch as an argument.

./patch.sh mpc-2.13.2-update.img

And to upload, use that script when the MPC is in upload mode:

#!/usr/bin/env bash
# Name this upload.sh
sudo fastboot oem inmusic-unlock-magic-7de5fbc22b8c524e
sudo fastboot flash rootfs rootfs_here.img && sudo fastboot reboot

You can then unmount.

The MPC is now available by SSH!


I use that to backup not only the SDCard but also my Tascam Model 12 mixer that has a recorder in it. I put the Tascam in USB Storage mode, and it gets mounted in the MPC.

Then I backup with (change the hostname to the ip or whatever way you access it):

echo "Remember to mount the Tascam by activating storage mode"
read a
sshfs root@mpc-one.lan:/ mount
rsync -ravh mount/* back/