Find the answer to your Linux question:
Results 1 to 5 of 5
Hej everybody I got a strange problem with my usb-stick. First it looked like an obvious problem (vfat), like ubuntu set it standard to read-only. So I changed the fstab ...
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    3

    vfat-problems

    Hej everybody

    I got a strange problem with my usb-stick. First it looked like an obvious problem (vfat), like ubuntu set it standard to read-only. So I changed the fstab to this.

    /dev/sdb1 /media/usb auto user,noauto,umask=002,uid=1000,gid=1000 0 0

    When I then mounted my usb-stick all permissions were fine, 'ls -l' gave this
    drwxrwxr-x 4 jef jef 4096 1970-01-01 01:00 usb

    But I still wasn't able to do anything(changing, deleting and adding files), when i tried to make a directory (as example). I got this error message:
    Error creating directory: Read-only file system

    Anybody an idea how to tackle this problem? Thanx

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    Linux mounts corrupted or damaged filesystems read only. Mount command will show current mount options. You may need to run fsck on it.

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    3
    Thanx mate

    It suddenly became crystal clear. Where, what and when it went wrong. I found the damaged files and run fsck on it but fsck just said after i said coorect it, filesystem unchanged. So is there a another way to delete those bad files?

    Thanx again

  4. #4
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Does it help anything if you change this
    Code:
    /dev/sdb1 /media/usb auto user,noauto,umask=002,uid=1000,gid=1000 0 0
    To this
    Code:
    /dev/sdb1 /media/usb auto user,noauto,umask=0   0 0
    You might try Parted Magic, it has many system and disc tools available.
    News
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  5. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    3
    It was like Segfault said. Some corrupted files. Now I was able to delete them and problems solved. And I needed the uid and gid for so I'm the owner that's more easy to work with and umask=0 and umask=002 doesn't make a lot of difference only other groups have writing rights. I'll check out the Parted magic and see wath it can do for further problems

Posting Permissions

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