Quantcast
Channel: PirateBox Forum - Raspberry Pi(rate)Box
Viewing all articles
Browse latest Browse all 1863

Re: redirecting issues

$
0
0
For the first issue, please post the output of the following commands:
ls -l /opt/piratebox/www/content
ls -l /opt/piratebox/www
This issue can be a side effect of your trouble using another USB stick.

The second issue with the different USB stick is based how we link the Pi together with the USB stick. The USB stick is referred using its UUID. .
You need to login via SSH, find out the old and new UUID and exchange it. Keep the new USB stick in the Pi while processing the commands.

OLD_UUID=$( grep /mnt/usbshare | cut -d ' ' -f 1 )
UUIDS=$(blkid | grep "/dev/sd*.*TYPE=\"vfat\"" | egrep -o " UUID=\"([a-zA-Z0-9-])*\"" | sed 's/ //g')
NEW_UUID=$(echo "${UUIDS}" | cut -f2 -d" " | sed s/"\""/""/g)

echo "Changing UUID from ${OLD_UUID} to ${NEW_UUID} "
sudo sed -i -e "s|${OLD_UUID}|${NEW_UUID}|" /etc/fstab

best regards
Matthias

Viewing all articles
Browse latest Browse all 1863

Trending Articles