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

Thread: Change file permission for external drive?

  1. #1
    Join Date
    Jul 2006
    Beans
    Hidden!

    Change file permission for external drive?

    Change file permission for external drive?

    I have a USB "stick" I use to move files from machine to machine, which has decided this evening it is "read-only file system".

    How can I force this back into a writeable stick?

    The locked files are one thing, and curiously they are all .rec files and are like ghosts of files deleted months and months ago.

    The real problem is the entire disk is "read-only" so I can look at these strange ghost files (and copy them), but I can't add new files to the stick.

    Any help appreciated!

    -zami

  2. #2
    Join Date
    Jul 2006
    Beans
    Hidden!

    Re: Change file permission for external drive?

    What I've tried so far - all failures

    Idea One : fail!
    sudo chmod 777 /media/LEXAR
    gives
    "chmod: changing permissions of `/media/LEXAR': Read-only file system"

    Idea Two : fail!
    gksudo nautilus LEXAR>properties>permissions tab and settings
    gives
    "Sorry, could not change the permissions of "LEXAR": Error setting permissions: Read-only file system"

    Idea Three : ?
    I haven't yet tried "safely remove hardware" via Windows, because I haven't used this disk on a Windows system in a rather long while, and feel I should be able to solve this without borrowing someone else's computer.

    Idea Four : fail!
    I tried formatting the dang thing via gparted. No go. I can see it, but all I can do is look at it, or unmount it. Argh!

    -zami
    Last edited by zami; February 11th, 2009 at 06:17 AM. Reason: added idea four

  3. #3
    Join Date
    Aug 2006
    Location
    Canada
    Beans
    389
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Change file permission for external drive?

    Your USB disk is probably corrupted so it was mounted as read only. You can try to repair using the following steps.

    1. With the USB drive mounted, use the command:

    Code:
    mount
    to figure out which device it is. (for example, /dev/sdd1 on my computer... it will probably be different on your computer.

    2. Unmount the USB device using:

    Code:
    sudo umount /dev/sdd1
    3. Check and repaire the errors on the USB device:

    Code:
    sudo fsck -r /dev/sdd1
    4. Then unplug it and plug it back in and see if it mounts correctly as read/write.

  4. #4
    Join Date
    Jul 2006
    Beans
    Hidden!

    Re: Change file permission for external drive?

    Holy smokes! There were just a ton of errors on that thing!

    "differences between boot sector and its backup"
    "FATs differ but appear to be intact."
    lots of "....contains a free cluster....." fragments to delete

    Amazing.

    It's working perfectly now though. amac777? Thank you so much!!

    -zami

  5. #5
    Join Date
    Mar 2009
    Location
    Lutsk, Ukraine
    Beans
    41
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Change file permission for external drive?

    worked for me as well - thanQ !!

  6. #6
    Join Date
    Apr 2010
    Beans
    2

    Re: Change file permission for external drive?

    Worked for me too - what's the issue with these thumbdrives - is it necessary to manually umount them befor pulling them out?

  7. #7
    Join Date
    Aug 2007
    Location
    Cape Town, South Africa
    Beans
    7
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Talking Re: Change file permission for external drive?

    Thanks amac777. You saved the day!

  8. #8
    Join Date
    Aug 2009
    Beans
    12

    Re: Change file permission for external drive?

    I also had a same problem with USB stick, but fsck did not work - because it's not ext2 fs or something... My stick is fat32. Finaly I scaned it with WXP and fixed...

    Is it possible to do fsck for fat32 in Ubuntu?

  9. #9
    Join Date
    Jan 2011
    Beans
    40

    Re: Change file permission for external drive?

    Excellent solution - thanks so much. I've been trawling the boards all morning - I should have guessed it was something so simple! I guess it happened when I removed the drive from a windows machine without ejecting properly.

  10. #10
    Join Date
    Sep 2009
    Location
    Lund, Sweden
    Beans
    3
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Change file permission for external drive?

    Perfect solution. Worked like a charm. Found 600 error on the drive. Last time Im letting windows format a drive for me.

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
  •