Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Delete a Read Only File

  1. #1
    Join Date
    Oct 2015
    Beans
    473
    Distro
    Ubuntu 16.04 Xenial Xerus

    Delete a Read Only File

    Okay, for reasons of my own I'm trying to get rid of everything Google. I did a search for evrything Google on my hard drive and deleted everything using -
    Code:
    rm -rf -r
    The only problem I have is with deleting 8 files. The 8 files show as "read only" files. I'm of course trying as root, but the computer still won't do it. It says similar to this -
    Code:
    cannot remove 'x-google-video-pointer.xml': Read-only file system
    Is there anything I can do?

  2. #2
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    9,963

    Re: Delete a Read Only File

    That is not a read only file.

    It is a read only file system.

    Big diff.

  3. #3
    Join Date
    Feb 2014
    Location
    Canada
    Beans
    47
    Distro
    Ubuntu

    Re: Delete a Read Only File

    Yes, whole file system.

    He should (as root) trype

    mount

    and list here.
    Ankman

    My blog https://news-commentaries.blogspot.com
    Retro arcade game web page http://www.ankman.de/mame/

  4. #4
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 19.10 Eoan Ermine

    Re: Delete a Read Only File

    You need to mount the partition read/write. What file system is it using?

  5. #5
    Join Date
    Oct 2015
    Beans
    473
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Delete a Read Only File

    I type mount and then the command and get this -
    Code:
    /var/lib/snapd/snaps/large-pcap-analyzer_31.snap on /snap/large-pcap-analyzer/31 type squashfs (ro,nodev,relatime,x-gdu.hide)

  6. #6
    Join Date
    Feb 2014
    Location
    Canada
    Beans
    47
    Distro
    Ubuntu

    Re: Delete a Read Only File

    Quote Originally Posted by shane_faulkinbury2 View Post
    I type mount and then the command and get this -
    Code:
    /var/lib/snapd/snaps/large-pcap-analyzer_31.snap on /snap/large-pcap-analyzer/31 type squashfs (ro,nodev,relatime,x-gdu.hide)
    Yes, it's read-only as the ro says.

    As root type

    mount -o remount,rw /snap/large-pcap-analyzer/3

    If this is successful you don't get any feedback. If so, open the /etc/fstab as root and look for this line. IF it has a ro change that to rw and save it. Then all will be fine on the next and all following reboots.
    Ankman

    My blog https://news-commentaries.blogspot.com
    Retro arcade game web page http://www.ankman.de/mame/

  7. #7
    Join Date
    Dec 2014
    Beans
    1,550

    Re: Delete a Read Only File

    That's a snap. snaps are stored in squashfs. quote from 'man mksquashfs': "Squashfs is a highly compressed read-only filesystem for Linux.". You can't remount a squashfs writeable.

    Holger

  8. #8
    Join Date
    Oct 2015
    Beans
    473
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Delete a Read Only File

    So what can I do? I have to be able to get rid of them somehow!

  9. #9
    Join Date
    Oct 2015
    Beans
    473
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Delete a Read Only File

    ank2, this is what I got -
    Code:
    root@none-HP-Compaq-8200-Elite-SFF-PC:/home/none# 
    root@none-HP-Compaq-8200-Elite-SFF-PC:/home/none# mount -o remount,rw /snap/large-pcap-analyzer/3
    mount: /snap/large-pcap-analyzer/3: mount point does not exist.

  10. #10
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Delete a Read Only File

    Please note that the helpers here have no idea what you've done with your system, what you've installed/changed/customized etc. I don't use snap packages—whereas you obviously do—so am just applying very general guidelines here, but it seems you've installed a snap package called large-pcap-analyzer at some point in the past. I have no idea what this package does. However, to get rid of its footprint, obviously, you would have to remove it.

    As an aside that may have relevance to your decision-making process (since you don't tell us what is motivating you), Google-authored code permeates the Linux-sphere and it is hardly possible to function in the Linux ecosystem without finding oneself using some of it. As general end users of a distro like Ubuntu, it is downright impossible to avoid it. For example, since Google personnel are active contributors to kernel development, some of it is bound into the kernel itself.

Page 1 of 2 12 LastLast

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
  •