Author Topic: Seeing doubles of files when only single copies exsist  (Read 2347 times)

janlmv

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • http://
Seeing doubles of files when only single copies exsist
« on: June 21, 2004, 01:47:14 pm »
Greetings:


I Just flashed to OZ 3.2 and upgraded Opie to 1.0.3, decided to move some stuff over to my SD  card with the following script (listed below) before installing any other software, all seemed to go well with the script so I went ahead and installed some applications such as opie-showimg_1.0.3_arm.ipk, and opie-mediaplayer_1.0.3_arm.ipk, that seemed to go well also.

Fired up the applications to try them out and I see doubles of the JPEG\'s and MP3\'s listed even though only a single copy of each file actually exists!

Could somebody please check out this script and see if I am linking somewhere I should not be or not linking somewhere I should be.

Thanks - Jim

-> snip <-

#!/bin/sh
 
clear
echo \"Executing MovetoSD.sh . . .\"
 
/bin/umount /dev/mmcda1 > /dev/null 2>&1
/sbin/mke2fs /dev/mmcda1 > /dev/null 2>&1
/bin/mount /dev/mmcda1 /mnt/card > /dev/null 2>&1
 
cp -a /home /mnt/card/home > /dev/null 2>&1
cp -a /opt /mnt/card/opt > /dev/null 2>&1
cp -a /root /mnt/card/root > /dev/null 2>&1
 
rm -rf /home /opt /root > /dev/null 2>&1
 
ln -sf /mnt/card/home /home > /dev/null 2>&1
ln -sf /mnt/card/opt /opt > /dev/null 2>&1
ln -sf /mnt/card/root /root > /dev/null 2>&1
 
echo \"Script Complete . . .\"
sleep 1.5
clear
 
/sbin/init 6
 
exit 0

-> snip <-

Teletubbie

  • Sr. Member
  • ****
  • Posts: 252
    • View Profile
    • http://
Seeing doubles of files when only single copies exsist
« Reply #1 on: June 21, 2004, 02:18:37 pm »
I have the same Problem
SL-5500G
OZ 3.3.6-pre1
Opie 1.1.4

edbarrett

  • Newbie
  • *
  • Posts: 4
    • View Profile
Seeing doubles of files when only single copies exsist
« Reply #2 on: June 21, 2004, 04:52:37 pm »
It\'s not a problem with your script, it\'s a problem with the Launcher.  The medium mount application scans all directories on the machine, and is dumb about symlinks.  So /root being a symlink to /mnt/card/root makes anything in /root show up twice.  AFAIK, there\'s no workaround other than to turn off the Documents tab.

Optogeek

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://optogeek.homelinux.net
Seeing doubles of files when only single copies exsist
« Reply #3 on: June 21, 2004, 06:26:09 pm »
You can make the copies on your sd card hidden (i.e /mnt/card/.home) and point your links to the hidden files.  The Launcher should now only see the symlinks and not the files.  When you use one of the files the symlink should be followed ok.

Be warned I have only tried this with sharp roms and with less important directories than root!
SL-C860 running Cacko 1.23
SL-5500UK with 3.13 Sharp ROM + Cacko Kernel
Origo WLAN and BlueMonkey BT CFs
1GB Crucial SD
1GB Crucial CF