Results 1 to 10 of 10

Thread: Error opening file '/media/disk/': Permission denied

  1. #1
    Join Date
    Jan 2006
    Beans
    149

    Error opening file '/media/disk/': Permission denied

    Hello,

    I have installed a new 120 gig Hard Drive and and tried to mount it using Partition Editor as advise on other thread i made.

    Steps i took:

    1. Selected the drive that was showing that was not mounted.
    2.click on partition => format to ext2
    3. reboot as per request
    4. it now shows that its mounted

    After this i tried to store some file and it gave this error:
    Error opening file '/media/disk/cards.jpg': Permission denied

    Seems like i dont have access on read and write.

    Could i get some help on this please? Now, just to let you know i am very new to linux and i am still trying to learn this via GUI so if there is a coomand i have to run please give it to me on granpa noobie format

    thanx for your advance help

  2. #2
    Join Date
    Jan 2006
    Beans
    149

    Re: Error opening file '/media/disk/': Permission denied

    Oe more thing i forgot to mention the hard drive i installed in my machine is SATA

  3. #3
    Join Date
    Mar 2007
    Location
    Carnesville, Ga, US
    Beans
    148
    Distro
    Ubuntu Development Release

    Re: Error opening file '/media/disk/': Permission denied

    press alt + F2
    Code:
    gksudo nautilus
    gives you root filemanager you can access the files now

  4. #4
    Join Date
    Nov 2007
    Location
    Bloomington, IN
    Beans
    119
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Error opening file '/media/disk/': Permission denied

    You probably have a permissions problem. Therefore we are going to take ownership of the mounted filesystem.

    Where 'user' is your username:

    Code:
    sudo chown user:user /media/disk/

  5. #5
    Join Date
    Nov 2007
    Location
    Bloomington, IN
    Beans
    119
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Error opening file '/media/disk/': Permission denied

    Quote Originally Posted by om1 View Post
    press alt + F2
    Code:
    gksudo nautilus
    gives you root filemanager you can access the files now
    This will also work, and it may be more secure. If you aren't as concerned about security, and want more general write access to the filesystem, use chown.

  6. #6
    Join Date
    Jan 2006
    Beans
    149

    Re: Error opening file '/media/disk/': Permission denied

    THANK YOU SOO MUCH!!! you are the best.

    1 last question. I have another HDD that i want to add in my machine but im afraid that if UBUNTU dont detect it again and i use partition editor i might loose the files. is there a way to mount it without loosing any files?

  7. #7
    Join Date
    Nov 2007
    Location
    Bloomington, IN
    Beans
    119
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Error opening file '/media/disk/': Permission denied

    Quote Originally Posted by appoloin View Post
    THANK YOU SOO MUCH!!! you are the best.

    1 last question. I have another HDD that i want to add in my machine but im afraid that if UBUNTU dont detect it again and i use partition editor i might loose the files. is there a way to mount it without loosing any files?
    You always run a risk of losing data whenever you edit partitions. The only defense to this is to securely back up your data before using gparted.

  8. #8
    Join Date
    May 2010
    Beans
    12

    Wink Re: Error opening file '/media/disk/': Permission denied

    Quote Originally Posted by malathion View Post
    You probably have a permissions problem. Therefore we are going to take ownership of the mounted filesystem.

    Where 'user' is your username:

    Code:
    sudo chown user:user /media/disk/
    This made my day XD

  9. #9
    Join Date
    Jun 2010
    Location
    Scottsdale, Arizona
    Beans
    1
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Error opening file '/media/disk/': Permission denied

    sudo chown user:user /media/disk/
    This did not work for me and I dont know why. It gave me back this message.

    chown: changing ownership of `/media/sdc1': Operation not permitted


    But the gksudo nautilus worked.

    I just don't want to do it every time I want to add something onto my external hard drive. It is severely annoying.



  10. #10
    Join Date
    Jan 2009
    Location
    Illinois, near Chicago
    Beans
    1
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Error opening file '/media/disk/': Permission denied

    i have ubuntu installed on my laptop's internal hard drive, and xubuntu installed on a flash drive, i would be doing this rom the xubuntu flash drive to access the internal ubuntu hard drive:

    if i do that (what you were talking about above, re-establishing ownership), would it mess up anything on the internal hard drive? i wouldn't have any issues with the internal hard drive were i to boot up on it then would i?

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
  •