OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: janlmv 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 <-
-
I have the same Problem
-
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.
-
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!