[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ttylinux:324] Running ttylinux-flash on a non ttylinux Linux host



On 02/28/13 20:27, galapogos wrote:
Hi,

Thanks for the reply. I don't mean to be pushy, and I'm sorry about your infection, hope you get well soon.
In any case, I tried using /mnt/flash instead of /mnt/flash/ but I'm
getting the exact same error message.
Just to recap, I've tried the following commands:
sudo ./ttylinux-flash -l /mnt/cdrom/ /mnt/flash/ /dev/sdd/
sudo ./ttylinux-flash -l /mnt/cdrom/ /mnt/flash /dev/sdd/

Both give the same error message.

Again, I appreciate all the help given so far. I just don't know what I'm missing.
Hmm, I was afraid of that, because nothing is ever easy; everything
is always hard. bummer.

How are you at shell programming? Take a look at the ttylinux-flash
file in an editor, this file is just a shell script. Go to line 176. You should
see this:


FLASH_PARTITION=${deviceNode}
deviceNode=${deviceNode%[1-8]}
if [[ "${deviceNode}" = ${FLASH_DEV} ]]; then
        echo "OK"
else
        fileError=1
        echo "ERROR"
echo "E> Flash disk ${FLASH_DISK} is not mounted on ${FLASH_DEV}" >&2
        echo "=> Did you use a rooted path starting with \"/\" ?" >&2
fi


I want to know what are the values of ${deviceNode} and ${FLASH_DEV}, so
add lines before the if-statement as shown below (copy/paste from this email
to be sure to get it right):


FLASH_PARTITION=${deviceNode}
deviceNode=${deviceNode%[1-8]}
echo "FLASH_PARTITION = \"${FLASH_PARTITION}\"" # debug output
echo "deviceNode = \"${deviceNode}\""           # debug output
if [[ "${deviceNode}" = ${FLASH_DEV} ]]; then
        echo "OK"
else
        fileError=1
        echo "ERROR"
echo "E> Flash disk ${FLASH_DISK} is not mounted on ${FLASH_DEV}" >&2
        echo "=> Did you use a rooted path starting with \"/\" ?" >&2
fi


Run the updated script and let me know what it reports.

--
Douglas Jerome