LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't create files in windows partition. (https://www.linuxquestions.org/questions/linux-newbie-8/cant-create-files-in-windows-partition-784788/)

korbes 01-27-2010 12:55 AM

Ok thank you all guys for your reply. I think it is a permission problem too cause as root I am able to write to /windows/E.

Quote:

Originally Posted by ongte (Post 3841003)
Not familiar with Suse, so I'm not sure what default_permissions means. But this definitely is a permission problem. Can you show us your fstab?

You might need to specify a umask here.

Also might help showing us the permission in the Windows partition.

this is the outcome of my fstab:
Code:

korbes@linux-b8pz:~> cat /etc/fstab
/dev/disk/by-id/ata-MAXTOR_STMkorbes@linux-b8pz:~> cat /etc/fstab
/dev/disk/by-id/ata-MAXTOR_STM380215AS_5QZ65BWL-part5 swap                swap      defaults              0 0
/dev/disk/by-id/ata-MAXTOR_STM380215AS_5QZ65BWL-part6 /                    ext4      acl,user_xattr        1 1
/dev/disk/by-id/ata-MAXTOR_STM380215AS_5QZ65BWL-part7 /home                ext4      acl,user_xattr        1 2
/dev/disk/by-id/ata-MAXTOR_STM380215AS_5QZ65BWL-part1 /windows/C          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-MAXTOR_STM380215AS_5QZ65BWL-part2 /windows/D          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-Hitachi_HDP725050GLA360_GEA534RJ02RLDA-part1 /windows/E          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0
korbes@linux-b8pz:~>
380215AS_5QZ65BWL-part5 swap                swap      defaults              0 0
/dev/disk/by-id/ata-MAXTOR_STM380215AS_5QZ65BWL-part6 /                    ext4      acl,user_xattr        1 1
/dev/disk/by-id/ata-MAXTOR_STM380215AS_5QZ65BWL-part7 /home                ext4      acl,user_xattr        1 2
/dev/disk/by-id/ata-MAXTOR_STM380215AS_5QZ65BWL-part1 /windows/C          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-MAXTOR_STM380215AS_5QZ65BWL-part2 /windows/D          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-Hitachi_HDP725050GLA360_GEA534RJ02RLDA-part1 /windows/E          ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0
korbes@linux-b8pz:~>

and this is the outcome of the permissions for windows/E:

Code:

korbes@linux-b8pz:~> ls -l /windows/E
total 112
drwxr-xr-x 1 root users  4096 2009-10-27 09:04 Backup PSP!!!
drwxr-xr-x 1 root users  4096 2010-01-18 05:37 Docs
drwxr-xr-x 1 root users 12288 2010-01-09 11:53 Films
-rw-r--r-- 1 root users    0 2010-01-27 07:41 foo
drwxr-xr-x 1 root users  4096 2009-11-17 10:54 Foto's
drwxr-xr-x 1 root users  4096 2009-11-26 10:13 Games
drwxr-xr-x 1 root users    0 2009-11-22 15:58 Linux
drwxr-xr-x 1 root users    0 2009-10-18 13:49 MSOCache
drwxr-xr-x 1 root users 65536 2010-01-09 11:16 Muziek
drwxr-xr-x 1 root users  8192 2009-12-26 11:20 Progjes
drwxr-xr-x 1 root users  4096 2010-01-18 15:18 $RECYCLE.BIN
drwxr-xr-x 1 root users    0 2009-03-10 15:11 Recycled
drwxr-xr-x 1 root users    0 2009-03-10 15:11 RECYCLER
drwxr-xr-x 1 root users  4096 2009-03-10 15:15 System Volume Information
drwxr-xr-x 1 root users  4096 2010-01-11 00:50 TEMP
korbes@linux-b8pz:~>

And remember guys I'm a newbie so I don't really understand uid and gid:
So please tell me what to do from here on?

jschiwal 01-27-2010 09:01 AM

You can either add a "uid=<your_username>" option to change the owner of the mounted filesystem allowing you full access. Or you can change the value of the 2nd digit in the fmask and dmask options.
"fmask=113,dmask=002"

vrmartin2 01-27-2010 10:39 AM

Masking
 
Here are some places you can get more info about "masking" (umask, fmask, etc):

http://www.cyberciti.biz/tips/unders...lue-usage.html

http://bodhizazen.net/Tutorials/Understandingfstab.pdf


All times are GMT -5. The time now is 04:25 PM.