LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2011, 10:32 AM   #1
alirezaimi
Member
 
Registered: Sep 2011
Posts: 39

Rep: Reputation: Disabled
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
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-11-2011, 10:42 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
change permissions as root or do it as root.
 
0 members found this post helpful.
Old 09-11-2011, 11:27 AM   #3
alirezaimi
Member
 
Registered: Sep 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by amani View Post
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?
 
Old 09-11-2011, 11:37 AM   #4
vickyk
Member
 
Registered: Dec 2009
Posts: 38

Rep: Reputation: 6
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
 
Old 09-11-2011, 11:39 AM   #5
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
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
 
Old 09-11-2011, 11:47 AM   #6
alirezaimi
Member
 
Registered: Sep 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by amani View Post
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot1.png
Views:	66
Size:	84.4 KB
ID:	7971  
 
Old 09-11-2011, 11:52 AM   #7
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
From that terminal do

#cd /media/1E*
#mkdir ./xyz
 
0 members found this post helpful.
Old 09-11-2011, 12:01 PM   #8
alirezaimi
Member
 
Registered: Sep 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by amani View Post
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.
 
Old 09-11-2011, 05:22 PM   #9
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
./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.
 
Old 09-11-2011, 06:50 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Sounds like read only device. Try
Code:
cat /etc/fstab

cat /etc/mnttab
 
Old 09-11-2011, 09:55 PM   #11
alirezaimi
Member
 
Registered: Sep 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
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.
 
Old 09-12-2011, 01:03 AM   #12
es0teric
Member
 
Registered: Apr 2007
Distribution: Ubuntu
Posts: 105

Rep: Reputation: 19
I don't see anything in your /etc/fstab file that mounts /media/1E2AB0A82ECB5AF8 automatically. Did you manually mount this volume? If so, how?
 
Old 09-12-2011, 02:08 AM   #13
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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
 
Old 09-12-2011, 02:08 AM   #14
alirezaimi
Member
 
Registered: Sep 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by es0teric View Post
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.

Last edited by alirezaimi; 09-12-2011 at 02:11 AM.
 
Old 09-12-2011, 11:26 AM   #15
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,961

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
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.

Last edited by rknichols; 09-12-2011 at 11:27 AM. Reason: Delete broken link
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] chroot error "cannot change root directory to /jail: Operation not permitted" Soji Antony Linux - Newbie 8 05-23-2011 09:29 PM
FAT32 error operation not permitted Maverick1182 Mandriva 5 06-23-2006 03:09 AM
How to delete directory/file (operation not permitted)? lvgamer1 Linux - Newbie 4 12-28-2004 11:53 AM
mknod gives Operation Not Permitted error choobad Linux - Software 2 07-13-2004 07:46 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration