-
Just picked up a ZuluSCSI RP2040 and had a simple question which I couldn't find asked here so figured I'd ask: When I have the SD card in my Linux or Windows machine (outside of the ZuluSCSI device), is there any way to mount the .hda/.img files so I can easily copy files into the disk image? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@jbehrends without knowing the filesystem and partition map type contained within the image file, it's not possible to answer that question. Are you using your ZuluSCSI with a classic Mac, or something else? |
Beta Was this translation helpful? Give feedback.
-
I have a script that will do this mounting for simplistic use cases http://www.trinityos.com/HAM/CentosDigitalModes/RPi/usr/local/sbin/mount-disk-image.sh#!/bin/bash 11/18/22 - dranch mounting szbox disk imageIf this doesn't work, run fdisk filename to see if an offset is requiredfdisk -l file-imageLook at the START column and if it does NOT start at zero, record this numberTake that number and multiply by the sector size (say 512)mount -o offset= nps-2010-emails.dd /media/manu/#Optional Offset size - this is assuming 512 byte sectors if [ -z $1 ]; then if [ $UID -ne 0 ]; then if [ ! -d /media/image ]; then if [ -n $OFFSET ]; then echo " " |
Beta Was this translation helpful? Give feedback.
I have a script that will do this mounting for simplistic use cases
http://www.trinityos.com/HAM/CentosDigitalModes/RPi/usr/local/sbin/mount-disk-image.sh
#!/bin/bash
11/18/22 - dranch mounting szbox disk image
If this doesn't work, run fdisk filename to see if an offset is required
fdisk -l file-image
Look at the START column and if it does NOT start at zero, record this number
Take that number and multiply by the sector size (say 512)
mount -o offset= nps-2010-emails.dd /media/manu/
#Optional Offset size - this is assuming 512 byte sectors
OFFSET=$((264*512))
if [ -z $1 ]; then
echo -e "\nDisk image not provided. Aborting\n"
exit 1
fi
if [ $UID -ne 0 ]; then
echo -e "\nYou must be root…