How do I symbollically link 2 directories between 2 SD cards?


Yes I did exactly what you've instructed.  I saw all the scripts in the proper directories but just no "all_roms" folder created anywhere.

My psd1 is max out so I don't know whether this is the problem as the 3 games on psd2 are totalled up more than 2GB.  Could this be the reason why "all_roms" couldn't get created on psd1?
If your SDcard really is that full then you should make some space by deleting/moving some files.


Try running the mount script manually in a terminal window, i.e.


# sudo su
# /home/root/mount_aufs.sh

Are there any error messages ?


What's the output of


# mount
after running the script ?
 
Here's the output:

# /home/root/mount_aufs.sh
sh: /home/root/mount_aufs.sh: Permission denied

# mount
rootfs on / type rootfs (rw)
ubi0:rootfs on / type ubifs (rw,relatime,bulk_read)
devtmpfs on /dev type devtmpfs (rw,relatime,size=221900k,nr_inodes=55475,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /mnt/.splash type tmpfs (rw,relatime,size=40k)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
tmpfs on /var/volatile type tmpfs (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /media/ram type tmpfs (rw,relatime)
ubi1:boot on /boot type ubifs (rw,relatime)
/dev/mmcblk1p1 on /media/psd2 type ext4 (rw,dirsync,noatime,user_xattr,barrier=1,data=ordered)
/dev/mmcblk0p1 on /media/psd1 type ext4 (rw,dirsync,noatime,user_xattr,barrier=1,data=ordered)

Looks like a permission issue.
 
Yep, that's what I thought. You somehow managed to mess up the permissions of that shell script -- it's not executable anymore, hence the 'Permission denied' message.

Let me guess.. You edited the file as non-root user (e.g. using mousepad), couldn't overwrite the original file so you saved it under a different name, deleted the original file and renamed your modified script.

To fix this, you will have to restore the original permissions.

First of all, take a look at the original permissions:


pandora2:/# tar tvfz /sd1/mmc_insert_script-17Nov2013.tar.gz
-rw-r--r-- root/root       215 2013-11-17 20:47 etc/udev/rules.d/mmc_script.rules
-rwxr-xr-x root/root       106 2013-11-17 21:13 home/root/mmc_insert.sh
-rwxr-xr-x root/root       479 2013-11-17 21:21 home/root/mount_aufs.sh
pandora2:/#
(you'll have to adjust the path to the .tar.gz, of course)

Now take a look at how your current permissions look like:


pandora2:~$ sudo su
Password:
pandora2:/home/bsp# cd /
pandora2:/# ls -ld `tar tfz /sd1/mmc_insert_script-17Nov2013.tar.gz `
-rw-r--r-- 1 root root 215 Nov 17 20:47 etc/udev/rules.d/mmc_script.rules
-rwxr-xr-x 1 root root 106 Nov 17 21:13 home/root/mmc_insert.sh
-rwxr-xr-x 1 root root 594 Nov 19 14:16 home/root/mount_aufs.sh
pandora2:/#

(most likely different than this!)


Now fix the permissions of the mount_aufs.sh script:


pandora2:/# chmod 755 /home/root/mount_aufs.sh
and make sure that they are correct now:

Code:
pandora2:/# ls -ld /home/root/mount_aufs.sh
-rwxr-xr-x 1 root root 594 Nov 19 14:16 /home/root/mount_aufs.sh
 
Last edited by a moderator:
PD9qygf.gif


This fixed it!

Thank you very much for your help as well as patience!

The Pandora is my first encounter with Linux world so please forgive me as I have no clue what you did there but it worked!  :)
 
Last edited by a moderator:
Back
Top