Author Topic: whoops ... now how do i fix this?  (Read 3427 times)

jason123

  • Full Member
  • ***
  • Posts: 170
    • View Profile
whoops ... now how do i fix this?
« 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!
SL-5500
Hentges 3.5.4.1
Kingmax 1gb SD
Lexar 1gb CF
Belkin IR Keyboard
Socket 56k Modem CF
Linksys 802.11b CF

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
whoops ... now how do i fix this?
« Reply #1 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

jason123

  • Full Member
  • ***
  • Posts: 170
    • View Profile
whoops ... now how do i fix this?
« Reply #2 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?
SL-5500
Hentges 3.5.4.1
Kingmax 1gb SD
Lexar 1gb CF
Belkin IR Keyboard
Socket 56k Modem CF
Linksys 802.11b CF

chyang

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
    • http://mail.ustc.edu.cn/~chyang/
whoops ... now how do i fix this?
« Reply #3 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
SL-C3200+Symbol CF WIFI+Corsair 2GB SD
SL-5500+Sharp-3.13 ROM+Viking 512MB CF+Kinston 256MB SD
[img]http://sunsetyang.googlepages.com/c3200.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://sunsetyang.googlepages.com/5500.gif\" border=\"0\" class=\"linked-sig-image\" /]
Socket CF Bluetooth + EagleTec CF Lan Card + EagleTec CF Modem
Histroy:
[SL-C3000 Cacko 1.23 Beta 1] Sold on 2006/07/27
MA701 CF WIFI + EagleTec CF Bluetooth + D-Link DCF-660W WIFI
[SL5500+Sharp-3.13 ROM+SimpleTech 64MB CF+Hagiwara 128MB SD] Lost on 18,March,04

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
whoops ... now how do i fix this?
« Reply #4 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
whoops ... now how do i fix this?
« Reply #5 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

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
whoops ... now how do i fix this?
« Reply #6 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

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
whoops ... now how do i fix this?
« Reply #7 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.

jason123

  • Full Member
  • ***
  • Posts: 170
    • View Profile
whoops ... now how do i fix this?
« Reply #8 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.
SL-5500
Hentges 3.5.4.1
Kingmax 1gb SD
Lexar 1gb CF
Belkin IR Keyboard
Socket 56k Modem CF
Linksys 802.11b CF

jason123

  • Full Member
  • ***
  • Posts: 170
    • View Profile
whoops ... now how do i fix this?
« Reply #9 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....
SL-5500
Hentges 3.5.4.1
Kingmax 1gb SD
Lexar 1gb CF
Belkin IR Keyboard
Socket 56k Modem CF
Linksys 802.11b CF

jason123

  • Full Member
  • ***
  • Posts: 170
    • View Profile
whoops ... now how do i fix this?
« Reply #10 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?
SL-5500
Hentges 3.5.4.1
Kingmax 1gb SD
Lexar 1gb CF
Belkin IR Keyboard
Socket 56k Modem CF
Linksys 802.11b CF