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

Thread: Read-only filesystem

  1. #1
    Join Date
    Nov 2012
    Beans
    1

    Angry Read-only filesystem

    HI.

    I'm using Ubuntu 11.1 and I'm trying to edit the filesystem to fix the sound but I can't save it as it's read-only. It says that I'm not the owner so I don't have the permission to change the settings. I'm guessing because I'm not the one who created those files so I can't change them . HOW DO I REMOVE THE READ-ONLY FROM THE FILESYSTEM? PLEASE HELP THANK YOU IN ADVANCED.

  2. #2
    Join Date
    Feb 2011
    Location
    Somewhere...
    Beans
    1,543
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Read-only filesystem

    What are you trying to do specifically?

  3. #3
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,299
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Read-only filesystem

    11.10 is EOL - misread table https://wiki.ubuntu.com/Releases
    what file are you trying to edit?
    what kind of sound problem are you having
    Last edited by pqwoerituytrueiwoq; November 11th, 2012 at 11:11 AM.
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  4. #4
    Join Date
    Feb 2011
    Location
    Somewhere...
    Beans
    1,543
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Read-only filesystem

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    11.10 is EOL
    Just for clarification, no it's not. It still has 6 months.

  5. #5
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,299
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Read-only filesystem

    Quote Originally Posted by zombifier25 View Post
    Just for clarification, no it's not. It still has 6 months.
    opps edited last post accordantly, clearly need to clean my glasses, and maybe some sleep/food
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  6. #6
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Read-only filesystem

    The files that you're trying to edit are more than likely owned by root, so you need to become root to edit/save them. It's, by the way, not a read-only file system; unless something is wrong. In a terminal, use
    Code:
    sudo vi file-to-edit
    If you don't know vi, replace vi it with one that you know (like nano). Or if you prefer a GUI based editor
    Code:
    gksudo gedit file-to-edit
    If you don't make backups of your important data, your data is obviously not important to you.

  7. #7
    Join Date
    May 2009
    Location
    Indiana
    Beans
    1,829
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Read-only filesystem

    Yes, I know this might be quibbling, but when you use sudo or gksudo, you are temporarily acquiring superuser privileges, but you are not becoming root. If you became root, then the path shorthand "~" would no longer work, as your home directory would no longer be your home directory.

    Edit: Conceded to be incorrect. See Wim's posts below. More conclusively, this from the sudo manpage:
    Code:
    ...
           -u user     The -u (user) option causes sudo to run the specified
                       command as a user other than root.  ...
    Last edited by newb85; November 11th, 2012 at 09:58 PM.
    Jane, stop this crazy thing!

  8. #8
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Read-only filesystem

    Yes, I know this might be quibbling, but when you use sudo or gksudo, you are temporarily acquiring superuser privileges, but you are not becoming root.
    Code:
    wim@i3-2120:~$ ls -l
    total 120
    drwxrwxr-x 2 wim wim 4096 Nov  4 11:03 1_emailbackup
    drwxrwxr-x 2 wim wim 4096 Oct 14 17:50 conky
    ...
    ...
    wim@i3-2120:~$ sudo vi abc.txt
    [sudo] password for wim: 
    wim@i3-2120:~$ ls -l
    total 124
    drwxrwxr-x 2 wim  wim  4096 Nov  4 11:03 1_emailbackup
    -rw-r--r-- 1 root root    4 Nov 11 16:37 abc.txt
    drwxrwxr-x 2 wim  wim  4096 Oct 14 17:50 conky
    ...
    ...
    Q.E.D.

    If you became root, then the path shorthand "~" would no longer work, as your home directory would no longer be your home directory.
    The difference, to my knowledge is like the difference between su and su -. The former keeps the environment of the user that issued su while the latter uses the environment of the new user.
    Last edited by Wim Sturkenboom; November 11th, 2012 at 03:53 PM.
    If you don't make backups of your important data, your data is obviously not important to you.

  9. #9
    Join Date
    Feb 2010
    Location
    Nr BrandsHatch, S'oaks UK
    Beans
    1,241
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Read-only filesystem

    Hi!, newb85 & Wim Sturkenboom,

    Showing my ignorance, when I use 'sudo', I DO GET TO BE ROOT:
    Code:
    alan@alan-MS-7616:~$ ls -l
    total 80
    drwxr-xr-x 2 alan alan  4096 Oct 18 22:06 Desktop
    drwxr-xr-x 2 alan alan  4096 Nov  1 22:32 Documents
    drwxr-xr-x 3 alan alan  4096 Oct 29 16:26 Downloads
    -rw-r--r-- 1 alan alan  8445 Oct 18 21:58 examples.desktop
    ......
    7 more lines:
    ......
    alan@alan-MS-7616:~$ sudo -i
    [sudo] password for alan: 
    root@alan-MS-7616:~# ls -l
    total 4
    drwxr-xr-x 2 root root 4096 Oct 28 20:44 Desktop
    xxx no more lines xxx
    root@alan-MS-7616:~# exit
    logout
    alan@alan-MS-7616:~$
    How about that ??

    And why are my permissions different from yours ?

    Chao!, bogan.
    "Better Solutions may bring Worsened Problems": After Lao Tse, b. circa 405BC. a contemporary of Confucius, who died circa 600BC.
    They did things differently in those days, apparently!!

  10. #10
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Read-only filesystem

    We're going way off topic

    sudo -i makes you root (it has nearly the same environment as sudo su - would give you), just like sudo somecommand, nothing special about that (and exactly what I indicated for sudo). To make it clear, I was proving newb85's statement to be incorrect.

    I'm using 12.04; maybe default umask has changed from 12.04 to 12.10 and hence the difference in permissions.
    Last edited by Wim Sturkenboom; November 11th, 2012 at 07:10 PM.
    If you don't make backups of your important data, your data is obviously not important to you.

Page 1 of 2 12 LastLast

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
  •