Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: SDCard now showing as Read Only and unable to change permissions

  1. #11
    Join Date
    Mar 2010
    Location
    London, UK
    Beans
    461
    Distro
    Ubuntu Studio 18.04 Bionic Beaver

    Re: SDCard now showing as Read Only and unable to change permissions

    Quote Originally Posted by sudodus View Post
    If the root partition '/' (the system disk) is almost full, it will struggle. Remove unnecessary files (for example old kernels), all old documents, downloaded iso files, whatever fills your hard disk drive. It may help you identify where to look for unnecessary files, if you run

    Code:
    baobab /
    and use the whole screen for the pie diagram.
    That's a new tool to me, thanks.

    I don't use my root/home that much, I have a separate partition for all my data, and very rarely let / go below 15GB free space or so. Currently at 22.7GB free on root.

    I do know that the slow down often (or rather used to only) occurs when my Rubbish Bin starts getting full and Data drive starts getting full. An empty of the Rubbish Bin used to bring it back up to good speeds pretty much without fail but it's lately started to be slow even after a cleanup (as I say mostly noticeable if reading and writing which is why I suspect the hdd. If I would have to guess I would say it's the seek time when moving the head where it struggles.)

    Quote Originally Posted by tgalati4 View Post
    Examine your RAM use during episodes of slowdown:

    Code:
    free
    Both firefox and google-chrome use a lot of RAM with a lot of tabs open. When you hit swap, your system will slow down to a crawl.
    Yeah I use free quite regularly. I have only ever seen my system using Swap once and typically have around 1.5GB of my 4GB free when I check... (Taking the minus buffers/cache number.)

  2. #12
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: SDCard now showing as Read Only and unable to change permissions

    You can check the S.M.A.R.T. status of the hard disk drive. It is usually shown in a UEFI/BIOS menu, and also in the programs 'gnome-disks' in 14.04 LTS or newer or 'palimpsest' in 12.04 LTS. You get a more advanced tool, if you install smartmontools and run
    Code:
    sudo smartctl
    Problems with the file system might be fixed with e2fsck (for linux ext file systems)
    Code:
    sudo e2fsck -f
    and if you want to engage the badblocks program to mark bad blocks (to avoid searching them)
    Code:
    sudo e2fsck -cf
    But I recommend that you replace the disk if the number of bad blocks is increasing.

  3. #13
    Join Date
    Mar 2010
    Location
    London, UK
    Beans
    461
    Distro
    Ubuntu Studio 18.04 Bionic Beaver

    Re: SDCard now showing as Read Only and unable to change permissions

    Ran the SMART included with the Lenovo Win7 install on the other partition I never wiped. Seemed very basic but came up clean.

    Downloaded gnome-disk-utility and ran Extended SMART self-test from gnome-disks. Both seemed to pass OK. (I have to say the Gnome utility gives a lot more useful information than the Lenovo one!)

    I have heard bad stories about badblocks and fsck if you don't know exactly what you are doing, ie recommendations to make sure to only run in analyse mode as they often do more damage than good if you try and repair with them. I will have a further look though, thanks.

  4. #14
    Join Date
    Mar 2010
    Location
    London, UK
    Beans
    461
    Distro
    Ubuntu Studio 18.04 Bionic Beaver

    Re: SDCard now showing as Read Only and unable to change permissions

    Although SMART entry 1.

    Read Error Rate. Norm:113 Threshold:34 Worst:99 Status:OK
    From that you would think it needs to go below 34 to hit the threshold and hit the alarm (which seems a weird way to work with error rate!)
    But then a tooltip says "Frequency of errors while reading raw data from the disk. A non-zero value indicates a problem with either disk surface or read/write heads."
    So why is that showing as OK?


    EDIT1.

    $ sudo e2fsck -fn /dev/sda5
    e2fsck 1.42.9 (4-Feb-2014)
    Warning! /dev/sda5 is mounted.
    Warning: skipping journal recovery because doing a read-only filesystem check.
    Pass 1: Checking inodes, blocks, and sizes
    Deleted inode 131077 has zero dtime. Fix? no

    Inodes that were part of a corrupted orphan linked list found. Fix? no

    Inode 1449859 was part of the orphaned inode list. IGNORED.
    Inode 1573005 was part of the orphaned inode list. IGNORED.
    Inode 3017924 was part of the orphaned inode list. IGNORED.
    Inode 3018038 was part of the orphaned inode list. IGNORED.
    Inode 3019645 was part of the orphaned inode list. IGNORED.
    Inode 3034648 was part of the orphaned inode list. IGNORED.
    Inode 3145933 was part of the orphaned inode list. IGNORED.
    Inode 3146750 was part of the orphaned inode list. IGNORED.
    Inode 3147505 was part of the orphaned inode list. IGNORED.
    Inode 3147695 was part of the orphaned inode list. IGNORED.
    Inode 3147798 was part of the orphaned inode list. IGNORED.
    Inode 3172627 was part of the orphaned inode list. IGNORED.
    Pass 2: Checking directory structure
    Pass 3: Checking directory connectivity
    Pass 4: Checking reference counts
    Pass 5: Checking group summary information
    Block bitmap differences: -(10946560--10948607) -(10948704--10948725) -(10952704--10958034) -(10960896--10964991) -(12298998--12299000) -12616260 -(12710535--12710537) -12805129 -(12806145--12806146) -12822531 -(12827442--12827453) -12827657 -(12827951--12827959)
    Fix? no

    Free blocks count wrong (6335135, counted=6321955).
    Fix? no

    Inode bitmap differences: -131077 -1449859 -1573005 -3017924 -3018038 -3019645 -3034648 -3145933 -3146750 -3147505 -3147695 -3147798 -3172627
    Fix? no

    Free inodes count wrong (3478302, counted=3477059).
    Fix? no


    /dev/sda5: ********** WARNING: Filesystem still has errors **********

    /dev/sda5: 429282/3907584 files (0.7% non-contiguous), 9289376/15624511 blocks




    Should I boot from a USB key so I can run it properly, rather than run it with the -n option? It cant be run on a mounted filesystem so obviously can't run it on root while using the computer...
    Last edited by kazakore; June 3rd, 2015 at 10:55 AM.

  5. #15
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: SDCard now showing as Read Only and unable to change permissions

    Yes, you should boot from another drive.

    If the data on the current drive are very important, you should back it up before repairing. In that case I suggest that you use ddrescue, that comes with the package gddrescue. The info page is very well written and helps understanding how to use ddrescue. I suggest that you try according to Examples 1 and 2. ddrescue can often read failing sectors (by re-reading rather than giving up as other tools do). So it is better than standard backup tools for failing drives (or in general, for drives with bad blocks).

    Code:
    info ddrescue
    My experience is that e2fsck works well if the damage is not too big, but take care if there are important data.

  6. #16
    Join Date
    May 2015
    Beans
    3

    Re: SDCard now showing as Read Only and unable to change permissions

    I only skimmed through the thread, but in my experience your symptoms are indicative of the nearing death of your card. I could be wrong, but I'd recommend backing up all content and buying a replacement. You don't need to use it immediately, but I'd keep it close at hand.

    How long have you had it for? Have you been using it regularly?
    Last edited by james138; June 3rd, 2015 at 06:19 PM.

  7. #17
    Join Date
    Mar 2010
    Location
    London, UK
    Beans
    461
    Distro
    Ubuntu Studio 18.04 Bionic Beaver

    Re: SDCard now showing as Read Only and unable to change permissions

    Quote Originally Posted by sudodus View Post
    Yes, you should boot from another drive.
    Sorry my question was more whether the errors in the above message look serious enough for it to be worth doing. My external is too full for me to easily back up everything I would want from my computer now. I think my plan of action is going to be to get a new 2TB drive, put then in my external caddy and replace my 300GB drive in the laptop with the 500GB one I am currently using as external storage. Once I find the time and money anyway...


    Quote Originally Posted by james138 View Post
    I only skimmed through the thread, but in my experience your symptoms are indicative of the nearing death of your card. I could be wrong, but I'd recommend backing up all content and buying a replacement. You don't need to use it immediately, but I'd keep it close at hand.

    How long have you had it for? Have you been using it regularly?
    Sorry we went rather off topic at some point, actually the same time as I marked the thread as Solved as the card started working as it should do. The card is less than a year old and has only been used in my camera and has never been completely filled (although I do delete from it when I move to the computer.) I have also been in Asia for the entire time, so heat, humidity and altitudes outside of what many would consider normal operation range. Still I think the card is OK but something odd was going on with my card reader in the laptop, which seems to have cured itself (possibly after an upgrade.) The reason I suspect this is "Unable to change permission" or similar messages when rsyncing to a MicroSD in adapter in the same slot previously. As I say seems to be working again now...

    But I agree with you that I suspect my hdd is on its last legs! Which is what much of the thread ended up being about. Sorry for the side-track, I was contemplating starting a new thread but when people replied here to what was meant more as an off-hand comment I kept it going as it seemed to be nicely flowing. I know it's bad form but it's the most helpful replies I've had in a long time (Thanks everybody.)
    Last edited by kazakore; June 3rd, 2015 at 07:55 PM.

  8. #18
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: SDCard now showing as Read Only and unable to change permissions

    That is a good plan. Be prepared that your HDD is getting tired. I think you should at least back up your most important files (if you haven't done it already). And when you have time and money, get a new big HDD ...

    Anyway, you are welcome back to this thread, when you have hew questions to ask or new experiences to share

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

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