Quote:
Originally Posted by Analogus
Nope - not running.
I do this commands in Kterm - I do not know another way. Lines below are typed by hand ;-)
Directory is visible in Kterm when using CD and LS... It makes no difference wether the reader is on the Mac or not.
[test]# ./fontnew.sh
/dev/loop0
-rwxrwxrwx 1 root root 507 Jan
15 17:43 /mnt/us/test/font.sqsh
-rwxrwxrwx 1 root root 72507392 Jan
15 11:52 /mnt/us/test/font.sqsh
losetup: /mnt/us/test/fonts.sqsh: No such file or directory
...
|
The problem is (indirectly) with the losetup -f (find) command.
It returning the lowest available loop number rather than next highest.
But in the Amazon OS, loop/0 and loop/1 are reserved for special purposes.
list the contents of /dev/loop/*
try using the loop device number one greater than that shown.
(IIRC - Amazon OS is set to create loop devices as requested)
if not, use the
Code:
losetup /dev/loop/Largest_Number
command to step down from the largest to the smallest (greater than 1) number to find one not in use (no path/filename attached).
However you find it, hardcode that loop device number into the script.