LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-14-2011, 05:56 PM   #1
anon092
LQ Newbie
 
Registered: May 2011
Posts: 4

Rep: Reputation: 0
linux only allowing a limited number of directories??


Hey guys, this is my first post here, but I did not see a more appropriate category for this question. Here goes..

I have a drive NTFS formatted drive mounted in Debian and a script set to make directories via a linux script and cron job. This was running flawlessly till recently, when I started getting 'mkdir: cannot create directory 'dirname': Operation not supported'.

I have been unable to find any help with this issue online. I assume it is a NTFS mount issue. I know it isn't about file size, as the drive it 1TB.

Here is my fstab for reference:

Code:
/dev/sdb1       /mnt/backupLocation      ntfs-3g rw      0       0
Do you know what the issue is here? Like I said, up until recently I have been able to create seeming unlimited directories here, but it now stops after about 7 - 10 directories have been created?

Thanks!
 
Old 05-14-2011, 06:35 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi Josh,

Well it appears to me the same i.e. NTFS mount issue. The error message you mentioned here says that the operation not supported which means that the device is not mounting with an option that is required to perform a particular operation.

For example same will happen if you try to configure ACL on a directory when the device is not mounted with acl option.

Is there any recent changes made to your /etc/fstab directory?

I doubt that it is even creating 7-10 directories because if that is the case then something is wrong between mount and post script run. To verify we can try the following command:

mount | grep /dev/sdb1 (This will tell us the options with which /dev/sdb1 is getting mounted initially

Run the same command and see if there is a change in ouput.

Another thing that I noticed is that there is no , (comma) between ntfs-3g and rw, was it like that from before? Check if you have a previous backup of /etc/fstab.
 
Old 05-14-2011, 06:41 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by T3RM1NVT0R View Post
Another thing that I noticed is that there is no , (comma) between ntfs-3g and rw
There must not be a a comma between ntfs-3g and rw. ntfs-3g is the file-system descriptor, rw is a mount option.
 
1 members found this post helpful.
Old 05-14-2011, 06:47 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi TobiSGD,

Yes you are right... I was on different track I guess when I wrote ;-) thinking about acl and default option with a comma in between. When you pointed out I realized that there is no comma between file system and the mount options same as ext4 defaults :-)

Last edited by T3RM1NVT0R; 05-14-2011 at 06:49 PM.
 
Old 05-14-2011, 07:49 PM   #5
anon092
LQ Newbie
 
Registered: May 2011
Posts: 4

Original Poster
Rep: Reputation: 0
ok, I ran 'mount | grep /dev/sdb1' and I get:

/dev/sdb1 on /mnt/backupLocation type fuseblk (rw,allow_other,blksize=4096)

So you are saying that having a comma there could make a difference? I did check one of my fstab backups and it did not have a comma either - that was when it was working.

Thanks for your help!
 
Old 05-14-2011, 08:08 PM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Well no need to put a comma, just check out my conversation with TobiSGD there shouldn't be a comma.

The output of mount | grep /dev/sdb1 looks ok to me. Did you check the space on your NTFS drive? It might be possible that your NTFS drive is full or may be having less space to perform this operation.

I tried the same command for my external NTFS formatted disk and the output is as follows:

/dev/sdb1 on /media/LOCAL DISK type fuseblk (rw,nosuid,allow_other,blksize=4096,default_permissions)

You can try putting these options in /etc/fstab but I don't think so it will make a difference as the output you mentioned looks fine.
 
Old 05-14-2011, 10:07 PM   #7
anon092
LQ Newbie
 
Registered: May 2011
Posts: 4

Original Poster
Rep: Reputation: 0
ok, well I just ran a 'df -h' on the drive and I have over 900GB of available space, so it should not be a space issue. The odd thing, is that if I restart the server (which i just did), it allows me to create a directory there again. Do you have any other ideas what the problem could be?

Thanks!
 
Old 05-15-2011, 12:29 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
The dirname to me suggest that you are trying to create a non-supported name, or other similar task.


Operation not supported.

The operation, though supported in general, is not supported for the requested object or the requested arguments.
 
Old 05-15-2011, 02:34 PM   #9
anon092
LQ Newbie
 
Registered: May 2011
Posts: 4

Original Poster
Rep: Reputation: 0
But that wouldn't explain why it would work after a reboot?
 
Old 05-15-2011, 03:37 PM   #10
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Well let me clear it first it is all based on assumptions. Can't say for sure because I haven't see any logs.

You mentioned in your first post that it was going on fine for quite a while but when you ran the script (using cron) today it error out saying operation not supported. So it appears that the system was up from quite a while and might be having some memory issues which you were not aware of. When cron ran the script this time it asked for more memory from the server also initiated an excessive I/O request which might have caused a quick dismount and remount of the device as read only because that is the default action take by a system to avoid any harm to the file system.

This is the only scenario that I can think of that a reboot can fix.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Identify and explain the major number, minor number, and revision number in Linux... turbomen Linux - Newbie 1 11-16-2010 02:48 AM
How do increase the number of PTS sessions allowed? I am currently limited to 34. kazman1969 Linux - Newbie 3 06-24-2008 06:29 PM
Allowing user to start app on port number 443 Harlin Linux - Security 2 02-02-2007 05:22 PM
open_basedir - how do I provide limited access to other directories? benbroad Linux - Software 4 12-08-2004 06:07 AM
Havin trouble allowing FTP users to access files and directories bripage Linux - Networking 9 04-15-2002 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration