OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: jason123 on March 12, 2004, 01:59:33 am

Title: whoops ... now how do i fix this?
Post by: jason123 on March 12, 2004, 01:59:33 am
Ok....  So I decieded to free up some space on my Z by moving the png files from /home/QtPalmtop/pics to /mnt/card/QtPalmtop/pics  and then symlinking them.  Only it won\'t let me symlink!!!!!  how do i do it?  I tried ln -s *.png /home/QtPalmtop/pics/ from the sd card\'s dir ... but it wouldn\'t wok -- i then proceeded to start qtopia and run advancedfm as root and symlinking that way ... still a no go.


does anyone have any ideas?  having no icons sucks major uhhmmm  oh you put a word in -- it\'ll do....

thanks!
Title: whoops ... now how do i fix this?
Post by: Stubear on March 12, 2004, 02:28:47 am
try linking a single file, I can\'t see anything directly wrong with your syntax, but it\'s often easier to see errors doing things one at a time.

If a single file works then it\'s probable that the busybox ln doesn\'t do wildcards properly. Also I find it easier to move to the target directory and use
ln -s /mnt/card/QtPalmtop/pics/*.png ./

Stu
Title: whoops ... now how do i fix this?
Post by: jason123 on March 12, 2004, 03:39:43 am
one at a time does work ....  sigh ... if i try to do all at once \"ln -s *.png /home/QtPalmtop/pics/\" it keeps on trying to do the first one ... tells me the file exists and seg faults ... any suggestions?
Title: whoops ... now how do i fix this?
Post by: chyang on March 12, 2004, 04:47:50 am
use bash\'s for support.
for i in *.png; do ln -sf $i /home/QtPalmtop/pics/$i ; done
Title: whoops ... now how do i fix this?
Post by: lardman on March 12, 2004, 05:14:47 am
I think the above is what you were really after but how\'s about:

cd /opt/QtPalmtop
ln -s /mnt/card/QtPalmtop/pics ./pics

Si
Title: whoops ... now how do i fix this?
Post by: CoreyC on March 12, 2004, 06:45:11 am
how bout...

cd /opt/QtPalmtop
mv pics /mnt/card/QtPalmtop/pics
ln -s /mnt/card/QtPalmtop/pics pics
Title: whoops ... now how do i fix this?
Post by: ScottYelich on March 12, 2004, 10:31:10 am
Quote
one at a time does work ....  sigh ... if i try to do all at once \"ln -s *.png /home/QtPalmtop/pics/\" it keeps on trying to do the first one ... tells me the file exists and seg faults ... any suggestions?

the man page seems to indicate that this is a possible usage (linux, redhat) ...
is the ln busybox?  or some other ln that isn\'t compatible?  as others have
pointed out, it\'s fairly easy to iterate over the files with a shell loop using \"for\" etc.

Scott
Title: whoops ... now how do i fix this?
Post by: maslovsky on March 12, 2004, 11:33:27 am
You won\'t save any space by doing that because most files in  /home/QtPalmtop/pics  are alreeady symlinks to  /usr/QtPalmtop.rom/pics, which is in your internal read-only memory.
Title: whoops ... now how do i fix this?
Post by: jason123 on March 12, 2004, 12:10:02 pm
Too late   but I had some custom icons installed there manually -- those I\'ll save space on.
Title: whoops ... now how do i fix this?
Post by: jason123 on March 12, 2004, 12:16:08 pm
WAHOOO!!!!  Thanks!  I used chyang\'s suggestion -- wahooo thank you!hmm now i need to go back and assign icons to Everything...  

(edit)  well... that excitement was a little premature....  i get back into qtopia and open up advancedfm and nope ... there\'s none of the links there....  so trying again....
Title: whoops ... now how do i fix this?
Post by: jason123 on March 12, 2004, 02:03:46 pm
Errm.... is there any way besides \"Tab Manager\" to specify where Qtopia looks for the png\'s at?