Find the answer to your Linux question:
Results 1 to 9 of 9
Hi,,, I am mounting my fat drive to /media/fat ... I want to have full ownership of the drive .. I have rw set up but I want ownership to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Twinkle's Avatar
    Join Date
    Aug 2006
    Posts
    61

    Changing folder/drive ownership..


    Hi,,,


    I am mounting my fat drive to /media/fat ... I want to have full ownership of the drive .. I have rw set up but I want ownership to be able of changing files/folders properties and such so ...


    I tried chown user /dev/hdc1 and chown user /media/fat ... didn't work ? I get operation not permitted error....

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    in fstab file, umask value should be 0...

    /dev/<partition> /media/fat vfat defaults,rw,umask=0 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
    Just Joined! Twinkle's Avatar
    Join Date
    Aug 2006
    Posts
    61
    Hi,,,


    My fstab look like this :
    HTML Code:
    /dev/hdc1        /media/fat     vfat    rw,defaults,umask=0000 0 0
    It has 4 zeros .. should I remove them ...

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    change it and see if you get permission to write......



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

  5. #5
    Just Joined! Twinkle's Avatar
    Join Date
    Aug 2006
    Posts
    61
    Hi..

    Still can't change files/folders ownership !!

    I get :
    HTML Code:
    home:/media/fat# chown devil /media/fat
    chown: changing ownership of `/media/fat': Operation not permitted
    And nothing if I run chown devil /dev/hdc1 !!!

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi !!

    you can't change ownership of a drive.... default owner is superuser/root only.
    superuser can enable/disable read or write access to users. why you need to change ownership of a drive?





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

  7. #7
    Just Joined! Twinkle's Avatar
    Join Date
    Aug 2006
    Posts
    61
    I needed to change the ownership to be able of using unison to sync a few folders between my vfat drive and ext3 drive..
    It was giving me the "no permission error"

    After alot of searching I added this to my fstab:

    HTML Code:
    /dev/hdc1        /media/fat     vfat    rw,auto,umask=0,uid=1000,gid=1000 0 0
    And then chown it to change user and it worked YaY

    Now I can sync folders with no problem between vfat and ext3...

    Thanx for ur help

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi !!

    i should say thanks to you.
    you solved this problem yourself and taught me tooooo.....
    thanx !




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

  9. #9
    Just Joined! Twinkle's Avatar
    Join Date
    Aug 2006
    Posts
    61
    Quote Originally Posted by devils_casper
    Hi !!

    i should say thanks to you.
    you solved this problem yourself and taught me tooooo.....
    thanx !




    .... casper ....

    Happy to learn and thank u for being so helpful

    Cheers ..

Posting Permissions

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