Results 1 to 5 of 5

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Need info on file/dir links. this may be a stupid question.

  1. #1
    Green Apple
    Join Date
    Aug 2008
    Location
    Phila, PA & Tokyo, Japan.
    Posts
    40
    Thanks
    14
    Thanked 7 Times in 5 Posts

    Question Need info on file/dir links. (NES ROMs Folder links to wrong place)
    I installed NES on iPhone 2G and i have a question conserning the links to NES ROMs.


    When I open up iFunBox:

    in folder view i see NES ROMS and when i add some to it they get copied to:

    /private/var/root/Media/ROM's/NES/


    but i want that to point to: (because this is where the NES app looks for roms at)

    /private/var/mobile/Media/ROMs/NES/


    How can I change that link so it points to the correct dir?


    In iFunBox i copied the whole filesystem to see if i can find the link and change it, but so far i have not found anything.

    I do not want to manualy go into the dir up add files, its anoying. But if i can correct that link to make it copy to the corrrect dir would be great.


    EDIT:
    I just attempted to change the NES file so it would look for the ROMs in the other dir and chmod to 755 (the game never started, so i reinstalled)
    Back to playing with the DIR links.


    Just a thought:
    Can iFunBox see that the game is installed and it already has the link programmed in. wich makes me look for it in the phone itself a waist of time.
    Last edited by wolvorine4424; 08-21-2008 at 02:24 PM. Reason: Updated

  2. #2
    what is annoying about copying it in manually? should be the same afford as anything else.

    anyways, you can create symlinks with the "ln" (link) command. use it like this:
    ln -s target source
    so that would be
    ln -s /private/var/mobile/Media/ROMs /private/var/root/Media/ROMs
    which would make /root/Media/ROMs link to /mobile/Media/ROMs

    regards

  3. The Following User Says Thank You to BlackWolf For This Useful Post:

    wolvorine4424 (08-21-2008)

  4. #3
    Green Apple
    Join Date
    Aug 2008
    Location
    Phila, PA & Tokyo, Japan.
    Posts
    40
    Thanks
    14
    Thanked 7 Times in 5 Posts

    interesting.

    ln: accessing '/private/var/root/Media/ROMs': Permission denied


    sudo ln -s /private/var/mobile/Media/ROMs /private/var/root/Media/ROMs
    This did not work. I think it copies it directly to NES. will try to add NES at the end and see.


    EDIT:
    sudo ln -s /private/var/mobile/Media/ROMs/NES /private/var/root/Media/ROMs/NES
    Did not work eather


    Thank you. I forgot about the link commands.


    EDIT2:
    Do the DIR in root folder sepose to exist (because I have them in both mobile and in root)
    NES still tells me that there are no ROMs.

    I did the ln command and then rebooted the phone, after that i tried copying the ROMS and they still go to the root folder not the mobile folder.


    EDIT3:
    Is the ROOT password blank?

    because a assumed it is because when i just hit return when it asked me for the password it did not error out.
    Last edited by wolvorine4424; 08-21-2008 at 03:06 PM.

  5. #4
    the password for root is "alpine", just as it is for mobile.
    and when you executed ln there is no root folder anymore, if you move into the root folder you get redirected to the mobile folder, that's why there are ROMs in the root folder.

    remember to delete the root folder before you execute the ln command, otherwise you will get a "file already exists" error.

    oh, and if it still doesn't work, please tell me the error message it gives you. because "doesn't work" is really hard to analyse

    regards

  6. The Following User Says Thank You to BlackWolf For This Useful Post:

    wolvorine4424 (08-21-2008)

  7. #5
    Green Apple
    Join Date
    Aug 2008
    Location
    Phila, PA & Tokyo, Japan.
    Posts
    40
    Thanks
    14
    Thanked 7 Times in 5 Posts

    There is no root folder???

    I have it and I have files in it.





    Um, I'm confused. If there is not sepose to be a root folder, then all the files in /private/var/root should be in /private/var/mobile

    Or am i wrong again.


    EDIT:
    I do not get any errors, it just goes back to the prompt.


    EDIT2:
    OK, I just screwed something up. again.

    with icommander: when i try to enter the mobile dir it crashes. or try to select the @User dir crashes again

    Back to reflashing. man, I can do this in my sleep now.


    Ok, a little more simpler. I hope.
    Is there a way to LINK 2 DIR's for example.

    when NES tries to look for ROMs in the /private/var/mobile/Media/ROMs/NES dir, i want it to see the /private/var/root/Media/ROMs/NES dir. and list the ROMs that are in it.

    But only the /ROMs/NES dir nothing else. Is this possible?
    Last edited by wolvorine4424; 08-21-2008 at 03:55 PM.

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •