Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    How to change read/write properties in directories?

    Reply
    doonit | # 1 | 2010-09-13, 08:28 | Report

    I tried to copy music files from my 8gig memory card into the music directory in the phone using the standard file browser. At first it went ok, although VERY slowly. then the phone froze and I had to remove the battery. after thatit would no longer copy anything and comes up with a "copy failed" error message.
    I thought it might be a bug within the file browser and so I installed CuteExplorer to see if that would work. CuteExplorer also would not copy the files and tells me that the destination directory is "read only".
    I'm afraid I have no idea how to change the read/write properties in Linux. can anyone give me a hand...I would greatly appreciate it!
    [Edit]
    I also tried:
    cp /media/mmc1/Music /home/user/MyDocs/Music
    in the terminal. this is where it told me that the destination cannot be written to.
    So far all attempts at copy have caused the phone to run at 100% CPU and to become completely unuseable

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by doonit; 2010-09-13 at 08:36.

     
    pwm | # 2 | 2010-09-13, 09:38 | Report

    Sounds like it's time to check the file system - it may have been damaged when the phone locked up the first time.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    doonit | # 3 | 2010-09-14, 08:09 | Report

    That sounds good. I'm new to Linux. Any hints on how to about doing that?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    SavageD | # 4 | 2010-09-14, 14:37 | Report

    Sounds like you need to install rootsh. Install the program 'rootsh'. After you have done that, type:

    root

    In the terminal window to gain root access to all your files and directories (meaning you can copy or paste anywhere). Also you may want to check out the 'chmod' command. Example of chmod command:

    chmod 755 filename.txt

    This makes you gain all privilages to a file or directory.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by SavageD; 2010-09-14 at 14:44.

     
    kureyon | # 5 | 2010-09-14, 15:58 | Report

    Do what SavageD said and obtain root - search forum for "N900 gainroot" or wiki(?)

    However you shouldn't mess with chmod until you have more info on what could be wrong.

    Once you are root in an X terminal run the mount command, you should see something like this:

    Code:
    Nokia-N900:~# mount
    rootfs on / type rootfs (rw)
    ubi0:rootfs on / type ubifs (rw,bulk_read,no_chk_data_crc)
    proc on /proc type proc (rw)
    ...
    /dev/mmcblk0p1 on /home/user/MyDocs type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir)
    /dev/mmcblk1p1 on /media/mmc1 type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir)
    The line of interest is /dev/mmcblk0p1 ...

    Still in X terminal run:
    Code:
    umount /dev/mmcblk0p1
    If you get some error about files being in use then close all other running programs (except for X terminal of course!) and run command again.

    Next run some non-destructive tests on that partition (this is similar to chkdsk in DOS):

    Code:
    fsck.vfat -n /dev/mmcblk0p1
    and
    Code:
    fsck.vfat -V /dev/mmcblk0p1
    If those 2 commands show any errors, paste them here.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to kureyon For This Useful Post:
    Mentalist Traceur

     
vBulletin® Version 3.8.8
Normal Logout