LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error creating directory: Operation not permitted (https://www.linuxquestions.org/questions/linux-newbie-8/error-creating-directory-operation-not-permitted-902440/)

alirezaimi 09-11-2011 09:32 AM

Error creating directory: Operation not permitted
 
Hi
I installed debian squeeze 6.0.2 from cd, and when i want to write to any partitions that mounted , i have this error :

Code:

Error while creating directory untitled folder.
There was an error creating the directory in /media/1E2AB0A82ECB5AF8.
Error creating directory: Operation not permitted


amani 09-11-2011 09:42 AM

change permissions as root or do it as root.

alirezaimi 09-11-2011 10:27 AM

Quote:

Originally Posted by amani (Post 4468890)
change permissions as root or do it as root.

Thanks.
I try to create directory or write any things on partitions with root nautiluse or root terminal, but not work and happend error that i can't permission.!
why?

vickyk 09-11-2011 10:37 AM

Are you trying to write to a CD ?

Just check the permission of the path in which you are trying to write to.

Use:
ls al /path/here

amani 09-11-2011 10:39 AM

What is /media/1E2AB0A82ECB5AF8?

USB/ CD drive ?


Usually user will be able to write to /home/user only.


To change permissions of say /xyz

#su
<passwd>
#chown --recursive <username> /xyz

alirezaimi 09-11-2011 10:47 AM

1 Attachment(s)
Quote:

Originally Posted by amani (Post 4468916)
What is /media/1E2AB0A82ECB5AF8?

USB/ CD drive ?


Usually user will be able to write to /home/user only.


To change permissions of say /xyz

#su
<passwd>
#chown --recursive <username> /xyz

this is a partition of my hard, but i don't know why can't write on my partitions, for example :

Code:

root@debian:/home/alid# ls -la  /media/1E2AB0A82ECB5AF8/
total 268
drwx------ 1 alid alid  8192 Sep 11 09:28 .
drwxr-xr-x 5 root root  4096 Sep 11 19:15 ..
drwx------ 1 alid alid  4096 Aug  8 13:32 BackUp
-rw------- 1 alid alid  8192 Oct 30  2010 backup partition table.dat
-rw------- 1 alid alid  28717 Aug 15  2010 crossover-cable.jpg
-rw------- 1 alid alid 102530 Aug 15  2010 Crossover.jpg
drwx------ 1 alid alid  8192 Sep  8 14:42 Images
drwx------ 1 alid alid      0 Jul  1 02:56 Learning
drwx------ 1 alid alid      0 Sep 11 09:30 lmde archive
drwx------ 1 alid alid  4096 Aug 28 06:42 Music & Vid
drwx------ 1 alid alid  77824 Jul 17 07:00 Pictures
drwx------ 1 alid alid      0 Jul  2 01:53 Private
drwx------ 1 alid alid  8192 Jul  5 23:24 SOFT
drwx------ 1 alid alid      0 Jul  2 01:52 Temp
drwx------ 1 alid alid  4096 Jul 22 02:34 Transfers Data

and attachment file is a picture of this error.

Thanks.

amani 09-11-2011 10:52 AM

From that terminal do

#cd /media/1E*
#mkdir ./xyz

alirezaimi 09-11-2011 11:01 AM

Quote:

Originally Posted by amani (Post 4468927)
From that terminal do

#cd /media/1E*
#mkdir ./xyz

Code:

root@debian:~# cd /media/1E2AB0A82ECB5AF8/
root@debian:/media/1E2AB0A82ECB5AF8# mkdir ./xyz
mkdir: cannot create directory `./xyz': Operation not permitted

Thanks for your support.

Fred Caro 09-11-2011 04:22 PM

./xyz
 
I'm not sure what ./xyz means. Once in the dir concerned you might try mkdir -m 775 heapmuchtrouble but I would read the results of 'man mkdir' first.

Fred.

chrism01 09-11-2011 05:50 PM

Sounds like read only device. Try
Code:

cat /etc/fstab

cat /etc/mnttab


alirezaimi 09-11-2011 08:55 PM

Quote:

Originally Posted by chrism01 (Post 4469188)
Sounds like read only device. Try
Code:

cat /etc/fstab

cat /etc/mnttab


Code:

alid@debian:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
# / was on /dev/sda8 during installation
UUID=100a1842-dc83-456e-836f-f5ff0e4a9616 /              ext4    errors=remount-ro 0      1
# /home was on /dev/sda5 during installation
UUID=28679b7c-bd5a-4fc2-84d5-e795450cb72b /home          ext4    defaults        0      2
# swap was on /dev/sda7 during installation
UUID=23350e2b-34b3-4f6e-aec2-ea160074b235 none            swap    sw              0      0
/dev/sdb1      /media/cdrom0  udf,iso9660 user,noauto    0      0
/dev/scd0      /media/cdrom1  udf,iso9660 user,noauto    0      0


Code:

alid@debian:~$ cat /etc/mnttab
cat: /etc/mnttab: No such file or directory

Thanks.

es0teric 09-12-2011 12:03 AM

I don't see anything in your /etc/fstab file that mounts /media/1E2AB0A82ECB5AF8 automatically. Did you manually mount this volume? If so, how?

chrism01 09-12-2011 01:08 AM

For /etc/mnttab, you may need to be root.
Should show an alternative version of the output from 'mount'
Also, according to this https://www.linuxquestions.org/quest...mnttab-855387/ it could be /etc/mtab, depending on distro

alirezaimi 09-12-2011 01:08 AM

Quote:

Originally Posted by es0teric (Post 4469391)
I don't see anything in your /etc/fstab file that mounts /media/1E2AB0A82ECB5AF8 automatically. Did you manually mount this volume? If so, how?

Yes, I mount a partition manually by click on name of partition in naultilus window-manager.
why this problem occured for me?

This output for mttab :
Code:

alid@debian:~$ cat /etc/mtab
/dev/sda8 / ext4 rw,errors=remount-ro,commit=0 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,size=5242880,mode=755,size=5242880,mode=755 0 0
tmpfs /run tmpfs rw,noexec,nosuid,size=10%,mode=755,size=10%,mode=755 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
udev /dev tmpfs rw,mode=0755 0 0
tmpfs /run/shm tmpfs rw,nosuid,nodev,size=20%,mode=1777,size=20%,mode=1777 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620,gid=5,mode=620 0 0
/dev/sda5 /home ext4 rw,commit=0 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
/dev/sda4 /media/1E2AB0A82ECB5AF8 ntfs rw,nosuid,nodev,uid=1000,gid=1000,dmask=0077,fmask=0177,uhelper=udisks 0 0
/dev/sda6 /media/e8d056a1-28d6-44d9-b5a9-ea317b617ce9 ext4 rw,nosuid,nodev,commit=0,commit=0,commit=0,uhelper=udisks 0 0

Thanks.

rknichols 09-12-2011 10:26 AM

What you have is an NTFS file system mounted with the kernel's built-in rudimentary NTFS module. That module does not support writing. What you need to do is find and install the "ntfs-3g" package for your (unspecified) Linux distribution. That package contains a userspace implementation of the NTFS file system.


All times are GMT -5. The time now is 10:10 AM.