Announcement

Collapse
No announcement yet.

Can't create directory on mount FAT drive

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't create directory on mount FAT drive

    I have my music player (100GB) mounted. I can copy files to it, but I can't create a directory. The line in /etc/fstab is:

    /dev/sda1 /media/pmp0642 vfat user 0 0

    I have tried everything I can think of and can't see to figure it out. What am I doing wrong? I have been fooling with this off and on for two weeks. Thanks.

    #2
    Re: Can't create directory on mount FAT drive

    Try adding the options "uid=1000,gid=1000". Maybe "defaults" would help, too.
    For external use only.

    Comment


      #3
      Re: Can't create directory on mount FAT drive

      How to fstab
      http://ubuntuforums.org/showthread.php?t=283131

      Unofficial Ubuntu 7.04 (Feisty Fawn) Starter Guide
      http://ubuntuguide.org/wiki/Ubuntu:Feisty
      => How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write

      HOWTO Mount Windows partitions (DOS, FAT, NTFS)
      http://gentoo-wiki.com/HOWTO_Mount_MS_Windows_partitions_(FAT,NTFS)


      From my fstab (feisty):
      /dev/hda6 /media/hda6 vfat defaults,utf8,umask=007,gid=46 0 0
      Same line from dapper:
      /dev/hda6 /media/fat/e vfat umask=000,uid=0,gid=0,auto,rw,nouser 0 0
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: Can't create directory on mount FAT drive

        Yep, change the permissions and find r, w, x:
        /dev/sda5 /Data vfat umask=000,uid=0,gid=0,auto,rw,nouser 0 0
        rog, why are you alway here first?

        This is a knoppix line and I still do not understand why *ubuntu does not emply it for fat partitions by defualt
        HP Pavilion dv6 core i7 (Main)
        4 GB Ram
        Kubuntu 18.10

        Comment


          #5
          Re: Can't create directory on mount FAT drive

          Originally posted by Rog131
          Had already tried it. Not helpful.

          Originally posted by Rog131
          Unofficial Ubuntu 7.04 (Feisty Fawn) Starter Guide
          http://ubuntuguide.org/wiki/Ubuntu:Feisty
          => How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write
          Had tried the information under samba, but not this so I tried it. Still no joy.

          Originally posted by Rog131
          HOWTO Mount Windows partitions (DOS, FAT, NTFS)
          http://gentoo-wiki.com/HOWTO_Mount_MS_Windows_partitions_(FAT,NTFS)
          This is a blank page, I assume you pulled it off google without checking it?

          Originally posted by Rog131
          From my fstab (feisty):
          /dev/hda6 /media/hda6 vfat defaults,utf8,umask=007,gid=46 0 0
          Same line from dapper:
          /dev/hda6 /media/fat/e vfat umask=000,uid=0,gid=0,auto,rw,nouser 0 0
          I am running Feisty so I tried that. No joy. Still access denied. Checking ownership, all directories and files show root. I can create directories with the su command, but not as a user. Thanks.

          Comment


            #6
            Re: Can't create directory on mount FAT drive

            Originally posted by Fintan
            Yep, change the permissions and find r, w, x:
            /dev/sda5 /Data vfat umask=000,uid=0,gid=0,auto,rw,nouser 0 0
            rog, why are you alway here first?

            This is a knoppix line and I still do not understand why *ubuntu does not emply it for fat partitions by defualt
            OK, here is the line from my fstab:

            /dev/sda1 /media/pmp0642 vfat umask=000,uid=0,gid=0,auto,rw,nouser 0 0

            Still can't create a directory as a user.

            Comment


              #7
              Re: Can't create directory on mount FAT drive

              Try "/dev/sda1 /media/pmp0642 vfat umask=770,uid=1000,gid=1000,auto,rw,user 0 0".
              For external use only.

              Comment


                #8
                Re: Can't create directory on mount FAT drive

                Originally posted by SheeEttin
                Try "/dev/sda1 /media/pmp0642 vfat umask=770,uid=1000,gid=1000,auto,rw,user 0 0".
                Nope, still get:

                mkdir: cannot create directory `temp': Permission denied

                Comment


                  #9
                  Re: Can't create directory on mount FAT drive

                  Maybe this will work.

                  http://www.psychocats.net/ubuntu/mountwindows

                  eriefisher
                  ~$sudo make me a sandwich

                  Comment


                    #10
                    Re: Can't create directory on mount FAT drive

                    You UID is 1000, right?
                    For external use only.

                    Comment


                      #11
                      Re: Can't create directory on mount FAT drive

                      Originally posted by SheeEttin
                      You UID is 1000, right?
                      How can I check?

                      Comment


                        #12
                        Re: Can't create directory on mount FAT drive

                        "id -u".
                        For external use only.

                        Comment


                          #13
                          Re: Can't create directory on mount FAT drive

                          This is a blank page, I assume you pulled it off google without checking it?
                          Nope (now it is dead )

                          From HOWTO Mount Windows partitions (DOS, FAT, NTFS)
                          You can find the page by using google cache

                          uid,gid: mount as (user,group)
                          On all three filesystems (MS-DOS, VFAT, NTFS), mount lets you pass the uid and gid options, which let you set the user and group IDs of who the files are shown to when the filesystem is mounted.
                          To find out the values for uid and gid, run id <user>.
                          $ id larry
                          uid=1000(larry) gid=100(users)

                          So if you wanted everything owned as larry:users on /mnt/ntfs, this is what you would use in /etc/fstab:

                          File: /etc/fstab
                          /dev/hda1 /mnt/ntfs ntfs uid=1000,gid=100 0 0
                          and the umask part
                          umask: octal file permissions

                          You can change permissions using the parameter umask. But be aware that it must be the bitmask of permissions that are not present for the mountpoint. It is an octal number, formed like this:

                          * character '0': Indicates that this is an octal number, not decimal.
                          * first digit: owner user permissions
                          * second digit: owner group permissions
                          * third digit: world permissions (every other user on the system)

                          The modes are as follows (the first column is the mode octal number):

                          M | R W X
                          -------------
                          0 | * * *
                          1 | * * -
                          2 | * - *
                          3 | * - -
                          4 | - * *
                          5 | - * -
                          6 | - - *
                          7 | - - -

                          Note: These octal number codes are different that the octal number codes used by chmod.


                          File: /etc/fstab

                          For example, if you want everybody to be able to read, write, and execute every file in your /mnt/c, you should specify the mask 0000:

                          /dev/hda1 /mnt/vfat vfat umask=0000 0 0

                          If you want only users from group 610 to be able to read, write, and execute:

                          /dev/hda1 /mnt/vfat vfat gid=610,umask=0707 0 0

                          If you want only users from group 610 to be able to read, and execute (not write):

                          /dev/hda1 /mnt/vfat vfat gid=610,umask=0727 0 0


                          To create a simple and full access to a partition for all users you need for instance:

                          /dev/hda2 /mnt/WINXP ntfs auto,umask=0000 0 0
                          /dev/hda7 /mnt/WINME vfat auto,umask=0000 0 0
                          /dev/hdb5 /mnt/EXT ext3 defaults,users 0 0
                          Before you edit, BACKUP !

                          Why there are dead links ?
                          1. Thread: Please explain how to access old kubuntu forum posts
                          2. Thread: Lost Information

                          Comment


                            #14
                            Re: Can't create directory on mount FAT drive

                            Originally posted by SheeEttin
                            "id -u".
                            Yes it is 1000

                            I tried both the suggested lines in the post above as well, but no joy.

                            Comment


                              #15
                              Re: Can't create directory on mount FAT drive

                              Note: These octal number codes are different that the octal number codes used by chmod.
                              Argh! I hate it when people do this!
                              At least it explains why umasks of 0000 work for people...

                              Anyway, I'm out of ideas. Anyone else?
                              For external use only.

                              Comment

                              Working...
                              X