[SOLVED] Creating repository on USB harddrive

I'm getting ready to update my work Linux box behind the firewall so am setting up portable repositories on a USB h/d. I've got this script working so far but haven't been able to add a custom medium using the control panel:
When trying to add 'local files' I get this error:
"Unable to add medium, errors reported:
genhdlist2 failed on /run/media/louielouie/Pocketsize1/Mageia4/"
What am I missing?
'tanx
- Code: Select all
#!/usr/bin/sh
#
# Pocketsize1 is ext4
if [ -d /run/media/louielouie/Pocketsize1/Mageia4 ]; then
cd /run/media/louielouie/Pocketsize1/Mageia4
lftp -e 'open mirrors.kernel.org/mageia/distrib/4/x86_64/media &&
mirror core core &&
mirror nonfree nonfree &&
mirror tainted tainted &&
exit'
cd
# Pocketsize2 is ntfs
elif [ -d /run/media/louielouie/Pocketsize2/Mageia4 ]; then
cd /run/media/louielouie/Pocketsize2/Mageia4
lftp -e 'open mirrors.kernel.org/mageia/distrib/4/x86_64/media &&
mirror core core &&
mirror nonfree nonfree &&
mirror tainted tainted &&
exit'
cd
else
echo "Directory does not exist"
fi
When trying to add 'local files' I get this error:
"Unable to add medium, errors reported:
genhdlist2 failed on /run/media/louielouie/Pocketsize1/Mageia4/"
What am I missing?
'tanx