Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Exclamation Nautilus changes my permissions for external drive


    I just installed Ubuntu 6.06, and everything has been working great.

    I have a USB/Firewire (currently use the firewire) external drive that is formatted in FAT32. When I plug it in, it's immediately detected and mounted. My problem is that when I open nautilus to browse the drive, it notes all files and directories as locked. when I try to delete/create new file/create new folder, I get a drive is read only error.

    After scouring permissions and editing fstab to
    /dev/sda1 /home/jpites/external vfat noauto,exec,rw,users,sync,uid=jpites 0 0
    and creating such folder with full permissions for myself, I manually mounted the drive, no problem.
    When I navigate to the drive with the terminal, I can delete, make new directories, etc. Once I try to browse with Nautilus, the same problem returns, no deleting files. After this, I return to the terminal, and it also yields a drive is read-only error.

    When I click the drive folder or any files on the drive, and look at the permissions with Nautilus or the terminal, no problem, the permissions are what they should be, but still the problem persists!

    Is Nautilus changing my permissions?

  2. #2
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,776
    /dev/sda1 /home/jpites/external vfat noauto,exec,rw,users,sync,uid=jpites 0 0
    change this code....
    Code:
    /dev/sda1 /home/jpites/external vfat rw,sync,defaults,umask=0,gid=jpites,uid=jpites 0 0




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    After changing the line, I umounted then mounted again. Then did the folowing:
    cd external
    jpites@Comp:~/external$ mkdir test1
    Now, I double click my icon on the desktop to browse to it and try back in the terminal:
    jpites@Comp:~/external$ mkdir test2
    mkdir: cannot create directory `test2': Read-only file system

    This only happed when I merely opened the Nautilus browser.

  4. $spacer_open
    $spacer_close
  5. #4
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,776
    remove 'sync' from the code...




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Ok, I just tried that, but nothing changed.

  7. #6
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,776
    i have to check it on my drive... one thing came into my mind... why did you mount it in your Home folder?
    change mount point. you can create SymLink in Home folder later on.

    Code:
    mkdir /mnt/external
    /dev/sda1 /mnt/external vfat rw,defaults,umask=0,gid=jpites,uid=jpites 0 0



    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #7
    I ran dmesg to see if there was any dump there....Nothing when I mount but when I open with nautilus, I ahve the folllowing output:
    [17185275.232000] attempt to access beyond end of device
    [17185275.232000] sda1: rw=0, want=121682660812, limit=625137282
    [17185275.236000] FAT: Filesystem panic (dev sda1)
    [17185275.236000] invalid access to FAT (entry 0xb5b80081)
    Repeated many times. Does this indicate that there is a problem with the Fat table? There is no problem through the terminal or through windows...

  9. #8
    Actually, I was mounting it before in the default location /media/external/, but I thought there might be a permissions problem, so I mounted it into my home directory.

  10. #9
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,776
    [17185275.232000] attempt to access beyond end of device
    [17185275.232000] sda1: rw=0, want=121682660812, limit=625137282
    [17185275.236000] FAT: Filesystem panic (dev sda1)
    [17185275.236000] invalid access to FAT (entry 0xb5b80081)

    Does this indicate that there is a problem with the Fat table?
    yes ! either something wrong in Partition Table OR Linux is not mounting it correctly.

    try this code.....
    Code:
    /dev/sda1  /mnt/external   vfat  rw,auto,umask=0,uid=1000,gid=1000 0 0
    check dmesg again.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  11. #10
    same problem, actually. I created the dir as root and mounted/unmounted as root, the same messages appeared in dmesg

Posting Permissions

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