Find the answer to your Linux question:
Results 1 to 8 of 8
Code: amnesia@amnesia:/lib/live/mount/rootfs/filesystem.squashfs/usr/lib/purple-2$ stat /lib/live/mount/rootfs/filesystem.squashfs/usr/lib/purple-2 File: `/lib/live/mount/rootfs/filesystem.squashfs/usr/lib/purple-2' Size: 575 Blocks: 0 IO Block: 1024 directory Device: 700h/1792d Inode: 2651 Links: 3 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie postcd's Avatar
    Join Date
    Apr 2011
    Posts
    224

    How to change permissions of read-only file system


    Code:
    amnesia@amnesia:/lib/live/mount/rootfs/filesystem.squashfs/usr/lib/purple-2$ stat /lib/live/mount/rootfs/filesystem.squashfs/usr/lib/purple-2
      File: `/lib/live/mount/rootfs/filesystem.squashfs/usr/lib/purple-2'
      Size: 575       	Blocks: 0          IO Block: 1024   directory
    Device: 700h/1792d	Inode: 2651        Links: 3
    Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2013-12-09 22:28:24.000000000 +0000
    Modify: 2013-12-09 22:28:24.000000000 +0000
    Change: 2013-12-09 22:28:24.000000000 +0000
    when i try to wget some file into this dir, it says:
    Code:
    Cannot write to “libskype.so” (Read-only file system).
    part of df -h
    Code:
    /dev/sda1             2.5G  1.2G  1.4G  46% /lib/live/mount/medium
    /dev/loop0            892M  892M     0 100% /lib/live/mount/rootfs/filesystem.squashfs
    /dev/loop1            205M  205M     0 100% /lib/live/mount/rootfs/0.22.1.squashfs
    tmpfs                1013M     0 1013M   0% /lib/live/mount/overlay
    Can anyone please advice way to input some file into that directory?

    i have amnesia and root rights too (and im noob)
    "Avoid the Gates of Hell. Use affordable Linux VPS."

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,105
    You can't change permissions on a read-only filesystem nor can you change the owner/group nor can you write to it. That's what read-only means. Perhaps if you would explain what your end goal, someone could suggest a method to do it. If you want to modify a Live CD or flash drive, you can copy it to somewhere on your hard drive and modify and remaster it, creating another iso file. Which distribution of Linux are you using?

  3. #3
    Linux Newbie postcd's Avatar
    Join Date
    Apr 2011
    Posts
    224
    Linux Tails. Tails support linked me to help page where i can learn about debian permissions, but im not successfull.

    There is no way to unmount that volume and mount it different way (write access) on the run? (having root access).
    "Avoid the Gates of Hell. Use affordable Linux VPS."

  4. #4
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,105
    Having root access doesn't change the fact that it is a read-only file system. If you want to change it, you would first mount it then create another directory and copy all the directories/files to the newly created drectory where you can change permissions and do whatever you want to it. You haven't explained what your end goal is?

  5. #5
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    438
    Is this a live CD? If so, you can never change it to allow writing, you can't write directly to a CD. You haven't provided enough information about the filesystem to allow intelligent responses. If it's really a writable medium, such as a USB flash drive or a HDD, then you can remount it as rw, but from the little information you've provided, it looks like a CD, and that's hopeless for writing to. In any case, permissions are not the problem. The volume has to be mounted as rw, meaning read/write, before you can write to it.

  6. #6
    Linux Newbie postcd's Avatar
    Join Date
    Apr 2011
    Posts
    224
    Quote Originally Posted by sgosnell View Post
    If it's really a writable medium, such as a USB flash drive or a HDD, then you can remount it as rw. In any case, permissions are not the problem. The volume has to be mounted as rw, meaning read/write, before you can write to it.
    Yes, its standard USB where i copied the OS, Tails installation... Tails is not able to help me remount it as writable, how can it be done please?
    "Avoid the Gates of Hell. Use affordable Linux VPS."

  7. #7
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    438
    Try
    Code:
    man mount
    The man pages will almost always help.

    However, that distro is apparently not designed for writing. From a brief look at the website, it looks like it's designed to be run from memory, and is purposely set to be read-only. If you want to save files from it, the easiest way would probably be by using a different drive. I really don't have the ambition to investigate much further. You would probably do better to try to get support from the Tails developers. This web page should give you the information you need for saving files on it, if you bother to read it.

  8. #8
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,105
    If you read the page at the link below to Tails, near the bottom of the page you will see a section named 'Installing onto a USB stick or SD card'. On the third line, click on thee 'persistence' link and it takes you to a page explaining how you can have persistence with it. This will allow you to make changes and save them on a flash drive.

    https://tails.boum.org/download/index.en.html

Posting Permissions

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