linux only allowing a limited number of directories??
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
/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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.