You are not logged in.

#1 2013-06-20 03:37:36

coolcashews
Member
Registered: 2013-06-17
Posts: 10

[SOLVED] Operation not permitted error - even as root!

To give you some background info, I just switched to Arch from Mint about 2 weeks ago.  I have an 128GB SSD dual booted between Arch and Win8 (I only log into Win8 for gaming).  I also have a 2TB internal storage drive that I use for all files other than my OS (music/virtual comp hd's/game files/etc).  The issue I'm having is performing simple tasks on this drive, even logged in as the root user.  For example,

[root@Arch Storage]# mkdir Test
mkdir: cannot create directory 'Test': Operation not permitted

I'm guessing there's possible ownership issues from Win8 that aren't letting me do what I need to, but I didn't have this problem when I was using Mint.

I've tried

chown root /filepath -R

and

chmod 777 /filepath -R

to try to give ownership to root (also tried with username) and permissions to all users, but still no luck.

[root@Arch Storage]# ls -la
total 500
drwxrwxrwx 1 root root      0 Feb 22 14:58 $RECYCLE.BIN
drwxrwxrwx 1 root root   4096 Jun  7 22:54 .
drwxr-xr-x 3 root root     60 Jun 19 21:21 ..
drwxrwxrwx 1 root root      0 May  7 21:03 Config.Msi
drwxrwxrwx 1 root root   4096 Jun 19 21:19 Games
drwxrwxrwx 1 root root   4096 Jun  9 16:11 Linux Distros
drwxrwxrwx 1 root root  12288 Feb 22 15:18 Music
drwxrwxrwx 1 root root      0 Feb 22 15:15 System Volume Information
drwxrwxrwx 1 root root   4096 Jun  9 18:25 Virtual Computer 

If anyone has any suggestions, I'd be grateful.

Last edited by coolcashews (2013-06-21 00:59:31)

Offline

#2 2013-06-20 03:40:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: [SOLVED] Operation not permitted error - even as root!

What is the filesystem, and how is it mounted?  Is it in your fstab, if so can you post that?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2013-06-20 03:45:39

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] Operation not permitted error - even as root!

If the file system is ntfs, do you have ntfs-3g installed?

Offline

#4 2013-06-20 03:45:54

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Operation not permitted error - even as root!

Trilby wrote:

What is the filesystem, and how is it mounted?  Is it in your fstab, if so can you post that?

I am going to bet that it is NTFS.  Which makes me wonder if Mint actually ships with ntfs-3g pre-installed?

Offline

#5 2013-06-20 03:52:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: [SOLVED] Operation not permitted error - even as root!

I'm pretty sure it does - Maya allegedly includes all of Precise's packages plus some minty specific stuff, and Precise includes ntfs-3g.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2013-06-20 05:05:29

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: [SOLVED] Operation not permitted error - even as root!

ntfs-3g defaults,uid=1000,fmask=0077,dmask=0077,noatime,noexec 0 0

This might not be the cleanest solution, but it works very well. First ofcourse specify type and mountpoint.. I'm not sure if noatime is an option usable for ntfs-drives btw

You should read on f,d mask

Offline

#7 2013-06-20 05:28:57

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Operation not permitted error - even as root!

@jocheem67, it has not even been established that ntfs is indeed the OP's problem.  Trilby and I were just speculating about what we think the problem might be.

Offline

#8 2013-06-20 11:16:24

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Operation not permitted error - even as root!

WonderWoofy wrote:

@jocheem67, it has not even been established that ntfs is indeed the OP's problem.  Trilby and I were just speculating about what we think the problem might be.

Also most people do not want noexec.

Not to mention that the default permission when you use ntfs-3g is root:root 777, so if he use ntfs-3g he should have rw access anyway.

Last edited by Mr.Elendig (2013-06-20 11:18:26)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2013-06-21 00:58:24

coolcashews
Member
Registered: 2013-06-17
Posts: 10

Re: [SOLVED] Operation not permitted error - even as root!

Thanks for all the replies!  The drive is indeed NTFS.  I then checked for ntfs-3g, and sure enough it wasn't installed.  After doing the install, I got the same error messages.  I checked my fstab

 nano /etc/fstab

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sda3
UUID=fb18902a-2916-4011-aca6-0466581fe247       /               ext4            rw,relatime,dat$

# /dev/sda4
UUID=a6430dd8-c470-438d-baa4-326e2474b67f       /home           ext4            rw,relatime,dat$

and sure enough the drive (/dev/sdb1) isn't listed there either.  I decided to reboot before adding it to my fstab, and sure enough, the drive works perfectly fine, even as a normal user.  I did not have to add it to my fstab, change ownership or permissions, only install ntfs-3g and reboot.

Thanks again for all your help!

Last edited by coolcashews (2013-06-21 01:00:39)

Offline

Board footer

Powered by FluxBB