Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password
    Poll: N900 - Harddrive is in Read Only Mode
    Poll Options
    N900 - Harddrive is in Read Only Mode
    View Poll Results

    N900 - Hardrive is in Read Only Mode

    Reply
    Page 6 of 10 | Prev |   4     5   6   7     8   | Next | Last
    salahuddin | # 51 | 2011-08-07, 08:37 | Report

    Originally Posted by n900 lover View Post
    it happened to me so with the advice from the good folks here, i ran
    sudo gainroot
    fsck -a /dev/mmcblk0p1

    and then i rebooted and everything was cool!

    please correct me if im wrong.

    Peace.
    thanks yar

    this way solved my problem also

    Edit | Forward | Quote | Quick Reply | Thanks

     
    manojkumaru | # 52 | 2012-02-01, 05:55 | Report

    Someone active here can help me??? I have posted this already in The Great NITDroid forum, but this thread seems more relevant too. So re-posting here, sorry for my ignorance.
    Scenario is below:

    I have a got this problem, 'Memory read-only. Cannot write to the device'.

    The problem maybe with I have created partitions, but with wrong block size.

    I have the 8GB appln install space eMMC. With that, my partition table appeared to be
    Device Boot Start End
    /dev/mmcblk0p1 2 688258
    /dev/mmcblk0p2 688258 950401
    /dev/mmcblk0p3 950402 974977

    Instead of usual

    Device Boot Start End
    /dev/mmcblk0p1 2 884865
    /dev/mmcblk0p2 884866 950401
    /dev/mmcblk0p3 950402 974977.


    So I carried out a partitioning like

    n
    p
    1
    First cylinder: 2
    Last cylinder: 600000

    n
    e
    First cylinder: 600001
    Last cylinder: 688258
    n
    First cylinder: 600001
    Last cylinder: 688258
    t

    Is there a problem due to this? And i now cannot copy any files into the eMMc or even move within. Shows memory read only or input/output error- when done from xterm.

    And also when tried to untar the NITDroid archive, it shows bad input. Input/output error. Says the file is not actually of tar.gz type archive when actually it is.

    Code:
    Code:
    root
    umount /dev/mmcblk0p1
    fsck -a /dev/mmcblk0p1
    
    fsck 1.41.3.maemo0 (12-Oct-2008)
    dosfsck 2.11, 12 Mar 2005, FAT32, LFN
    Seek to 22552772096:Invalid argument
    mounting it back again fails too.
    Code:
    Code:
    mount /dev/mmcblk0p1 /home/user/MyDocs/
    mount: mounting /dev/mmcblk0p1 on /home/user/MyDocs failed!
    Device or resource busy
    Anyone has an idea what the problem is?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    biketool | # 53 | 2013-07-11, 21:17 | Report

    I am also having what I thought was the regular read only issue but even when I unmount and remount -o rw I still get permission denied. Unless I try as root, then no problems at all. As this is fat32 there shoudnt be any chown issues...
    It is not a corruption issue fdisk fsck!!(yipes) comes back clean every time.
    Been a long time since I had to deal with unix read/write problems so my magic is weak and google isn't helping.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by biketool; 2013-07-12 at 06:41.

     
    pichlo | # 54 | 2013-07-12, 00:54 | Report

    Originally Posted by biketool View Post
    It is not a corruption issue fdisk comes back clean every time.
    fdisk?
    I don't see how you can still have read-only issues after a correct application of fdisk

    Seriously, try checking the partition in Windows. Or use fsck on your phone, but I'd rather recommend the Windows way.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    biketool | # 55 | 2013-07-12, 06:13 | Report

    pichlo, it is weirder than that, it is not actually read-only since I can write to the partition as root. I tried sudo chmod -R 777 /home/user/MyDocs but it didn't not fix the prob. Being a fat32 partition chown does nothing and fails.
    Last night I ssh'd in to the N900 ran midnight commander as sudo and installed a FTP daemon on my laptop and used this acrobatic method to transfer my wifes music to the phone MyDocs where I normally just mount MyDOcs via wifi/SCP on my laptop.
    (edit)Btw, I was tired and realized I had typed fdisk on my post, fortunately I had used fsck on the N900!

    I know this is something with permissions but it has been ten years at least since I have had a permissions issue like this.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by biketool; 2013-07-12 at 08:54.

     
    pichlo | # 56 | 2013-07-12, 11:12 | Report

    I had the same on my N900, only on my SD card. Read only unless written to as root. Being FAT ruled out permissions, leaving only a file system corruption that root just ignored and burst in with all guns blazing. I had an issue with the USB port preventing me to connect it to a Windows machine so I just reformatted the card on the device. That fixed it.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    biketool | # 57 | 2013-07-12, 11:43 | Report

    pichlo, were you getting errors or clean in fsck?

    For some reason bootmenu wont work so I am stuck with fsck'ing from a running N900. But again fsck comes out clean.

    Code:
    ~ $ sudo umount /dev/mmcblk0p1
    ~ $ sudo fsck -a /dev/mmcblk0p1
    fsck 1.42.5 (29-Jul-2012)
    dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
    /dev/mmcblk0p1: 9120 files, 288375/442377 clusters
    Code:
    ~ $ sudo mount
    rootfs on / type rootfs (rw)
    ubi0:rootfs on / type ubifs (rw,bulk_read,no_chk_data_crc)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    tmpfs on /tmp type tmpfs (rw,noatime,size=1024k)
    tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755)
    none on /dev type tmpfs (rw,noatime,size=10240k,mode=755)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k)
    /dev/mmcblk0p2 on /home type ext3 (defaults)
    /home/opt on /opt type none (bind)
    nodev on /sys/kernel/debug type debugfs (0)
    /opt/pymaemo/usr/lib/python2.5 on /usr/lib/python2.5 type bind (bind)
    /opt/pymaemo/usr/share/pyshared on /usr/share/pyshared type bind (bind)
    /opt/pymaemo/usr/lib/pyshared on /usr/lib/pyshared type bind (bind)
    /opt/pymaemo/usr/share/python-support on /usr/share/python-support type bind (bind)
    /opt/pymaemo/usr/lib/python-support on /usr/lib/python-support type bind (bind)
    /dev/mmcblk0p1 on /home/user/MyDocs type vfat (0)
    just an example I made a directory called hats
    Code:
    ~/MyDocs $ sudo chmod -R 777 /home/user/MyDocs/
    ~/MyDocs $ rm -rf hats/
    rm: cannot remove 'hats': Permission denied
    ~/MyDocs $ sudo rm -rf hats
    ~/MyDocs $

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by biketool; 2013-07-12 at 12:49.

     
    biketool | # 58 | 2013-07-12, 12:52 | Report

    What is the downside on dumping the contents of MyDocs into a directory on my laptop, fdisk'ing /dev/mmcblk0p1, and then pouring the contents back in. I dont think the N900 uses symlinks like the old Zaurus used to.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pichlo | # 59 | 2013-07-12, 13:41 | Report

    Originally Posted by biketool View Post
    pichlo, were you getting errors or clean in fsck?
    Dunno, I didn't bother to check. Just reformatted the blighter.

    Originally Posted by
    For some reason bootmenu wont work so I am stuck with fsck'ing from a running N900. But again fsck comes out clean.
    Have you tried Windows? The N900 fsck is not the best of breed, I'm afraid.

    Originally Posted by biketool View Post
    What is the downside on dumping the contents of MyDocs into a directory on my laptop, fdisk'ing /dev/mmcblk0p1, and then pouring the contents back in.
    Depending on what program you use for the operation, the files' time stamps may get nuked. Otherwise no downside: just the opposite, it might improve performance a bit by fixing any fragmentation.

    Only I would use the stock file manager to do the formatting rather than fsck. It should provide the same results but somehow feels more like the "approved" way.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    biketool | # 60 | 2013-07-12, 14:29 | Report

    pichlo, the USB port was broken and I accidently desoldered a SM component fixing it, too small to replace IMHO; I dont know if running windows in a VM would be able to do the fix though the Ubuntu tool seems to work really well when I have used it with the other N900.
    I will dump the MyDOcs to disk and format next week.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 6 of 10 | Prev |   4     5   6   7     8   | Next | Last
vBulletin® Version 3.8.8
Normal Logout