View Single Post
Old 03 January 2020, 18:09   #50
rufusonfire
Registered User
 
Join Date: Jan 2020
Location: MO, USA
Posts: 3
Quote:
Originally Posted by bbond007 View Post
You can move files (without physically removing the SD card) in several ways:

Mounting HDFs on the loopback fileSys and just FTP files directly in. Here are some example scripts I use to do this from the main menu:

I use this for large files such as 100MB+ HAM videos.

The important thing to remember is to umount before mounting (on Minimig) or resetting otherwise you will likely corrupt your HDF. I recommend using a dedicated transfer drive (maybe 1GB or so) and not something like "Work:"

[Amiga_Mount_Trans.sh]
Code:
#!/bin/sh
TRANS_DIR="/mnt/trans"
TRANS_ADF="/media/fat/AMIGA/TRANS.HDF"
if [ -d "$TRANS_DIR" ]; then
  echo "Found TRANS directory"
else
  echo "Creating TRANS directory"
  mkdir $TRANS_DIR
fi
echo "Please Wait..."
mount -o loop -t affs $TRANS_ADF $TRANS_DIR
echo "TRANS MOUNTED:"
echo $TRANS_DIR
echo "Done..."
[Amiga_Umount_Trans.sh]
Code:
#!/bin/sh
TRANS_DIR="/mnt/trans"
echo "Please Wait..."
echo "DO NOT cancel or reboot!"
umount $TRANS_DIR
echo "TRANS UNMOUNTED:"
echo $TRANS_DIR
echo "Done..."
Hey so I'm trying to make this work on my MiSTer.

I've got my Amiga hard drive all set up and working but need to transfer files to it (I'd prefer downloading from Aminet on my PC and just FTP-ing to the MiSTer). I've create the Mount and Unmount scripts and have sent them to my MiSTer. When I try to run the mount script I get this error:

Code:
mkdir: cannot create directory /mnt/trans : Read-only file system
followed by this message:

Code:
mount: mount point /mnt/trans does not exist
And as expected, the mount point is not created. Has something changed in MiSTer since you wrote this script? Sorry, I'm not well versed in Bash scripting so any help would be awesome...thanks!
rufusonfire is offline  
 
Page generated in 0.04684 seconds with 11 queries