View Single Post
Old 01-15-2017, 12:04 PM   #23
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Analogus View Post
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.
knc1 is offline   Reply With Quote