Fedora :: CIFS Bad Performance On File Creation?
Sep 28, 2010
I am experiencing poor performance when using cifs share.Such poor performance occur only in the creation of files on the share but not in the rewrite.This is what i do:
Code:
#mount -t cifs -o guest,user=<user> //153.9.200.2/winshare /mnt/winshare/
# time dd if=/dev/zero of=/mnt/winshare/b.avi bs=1024 count=10000
[code]....
View 6 Replies
ADVERTISEMENT
Jul 15, 2009
I want to automatically allow all users read execute or write permissions on everything created by a specific user, is this possible? For example user Wendy creates an office doc, saves it on a shared folder. Then another user (usually windows log into this folder and wants to edit this file and cannot. I know I can edit the permissions on this particular doc to allow all users, but I want this to happen by default so I don.t have to keep changing permission on each doc....
View 5 Replies
View Related
Apr 13, 2010
I need evaluate the ext3 file system performance; i need define:
- services provided
- parameters and
- the performance with different parameter values; for example, changin the value of the "data" parameter (journal, ordered, writeback).
I do not know what services ext3 provides. Well, i know intuitively that it provides services to read, write and erase files. But, there are anything more?. Where can i find the API?. Is the ext3 file system POSIX compliant?
View 7 Replies
View Related
Jan 14, 2011
I am using python as a cgi for a simple game that i'm planning to run on a website. It requires the user to enter his name and age. This is saved in a file newly created in his/her name. However, I'm getting this error The above is a description of an error in a Python program, formatted
63 for a Web browser because the 'cgitb' module was enabled. In case you
64 are not reading this in a Web browser, here is the original traceback:
65
66 Traceback (most recent call last):
67 File "/var/www/webprog.cgi", line 51, in <module>
68 main()
69 File "/var/www/webprog.cgi", line 44, in main
[Code]...
View 4 Replies
View Related
Nov 17, 2010
I've been running 10.04 since September on my new MSi i3 notebook and about two weeks ago I noticed that when I login after system boot, propagation of icons on my desktop and the content of my Panel have become slower and slower.If I logout and login again the propagations are not slow.
View 1 Replies
View Related
Dec 2, 2010
Am using apache and php to build a web application and am trying to create the file outside my working directory but its not creating Anybody knows what is the solution for this
View 4 Replies
View Related
May 2, 2010
I have a Western Digital "My Book" on my network which I have mounted with cifs.
If I go into it and vi a file, all is fine. I can write and save and close. When I open the file and add to it and then try to write it again, I get the message:
"thefilename" E212: Can't open file for writing
The file is owned by me still and the permissions are -rw-rw-r--
I don't understand why it works the first time and not the second. Also this same effect is observable when I save from another program to there. The first save is fine, the second can not be saved.
View 5 Replies
View Related
Apr 5, 2011
I keep creating practice perl scripts in a linux directory using vi <filename> and need to chmod 751 <filename> before I can run it as I wish to. I'm sure there is a simple way to default my permissions or config them at creation, but I'm not familiar with it ayuda me por favor.
View 2 Replies
View Related
Feb 8, 2011
Is ACL the best way to ensure the permissions of newly created files? Basically I have a directory: /data/department
I've done chmod g+s on it so the group is correct on new files but I want new files to also have 775 permissions so the rest of the group can access these files fully. Currently they are created with the default 755 (which I want still every where out side of /data/department ).
View 9 Replies
View Related
Nov 23, 2010
I want to extract the file creation time. How to get it. I am using fedora core 4
View 3 Replies
View Related
Apr 7, 2010
I want to add some starting information in a file while creation. like if I type vi test.sh
then
#!/bin/bash
will be added automatically.
Somebosy suggest me how to do this ??
View 22 Replies
View Related
Aug 4, 2010
Is there a trick to allowing a TFTP connection to create a file? I can successfully tftfp (from a cisco router) if I touch the file first, but otherwise, (/tftpboot has been chmoded to 777) I get [TFTP: error code 2 received - 20334]
View 7 Replies
View Related
Nov 19, 2010
How I can tell tar to assign a new creation date to extracted files? Let's say I have an archive filled with old files of varying ages. Upon extraction I want all files to have the same time stamp (that of the time of the extraction).
View 1 Replies
View Related
Aug 8, 2010
I'm trying to install Ubuntu alongside windows 7 on my machine, and currently I am having difficulty doing so.Upon initial boot of the LiveCD,it says the installer has encountered an unrecognized error and just goes straight to desktop environment. From there, I can restart the installer just fine but here is where the trouble starts.
Currently, I have a 2TB RAID 0 array utilizing 4 500GB Seagate barracuda SATA II drives. The controller is an nForce 780a NVRaid. I currently have two NTFS partitions for windows. One 150GB primary partition for C:, and another 781GB D: for the storage of games, music and movies.When I try to manually setup the partitions in the Ubuntu installer, I do it like this.
- 200MB ext2 primary partition for /boot
- 150GB xfs logical partition for /
- approx 750GB xfs logical partition for /home (You've probably figured out I'm following the same C: and D: scheme as in windows)
- 8192 MB partition for swap
I then proceed with the install. I see the progress bar complete for the boot partition, but then at about 7% for / it stops and gives a message saying partition creation has failed. I even tried using different filesystems like ReiserFS and Ext4. Same thing every time. I am running a 64bit quadcore system BTW if that is of any importance.
View 9 Replies
View Related
Feb 17, 2011
My problem is that I want newly created files to be 775 but they are 644 according to ls -l tho user that created can still write to file while other user in same group can't.
Current umask is 002.
Can't findout how to get newly created files to be 775. What should i do make all new files created by a user to be 775?
View 5 Replies
View Related
Jun 16, 2011
net book had some issues with windows, so i had to format its hard drive. i put in the ubuntu live image (usb) (yes i md5summed it, its fine) and i tried installing it using the guided partition (using the whole disk) and i tried setting it up manually, but regardless of what i try, when it attempts to format it to the necessary filesystem, it fails at 5% without fail. even IF i use GParted.
View 4 Replies
View Related
Sep 17, 2010
I have some basic experiencing creating simple scripts/making directories/changing permissions/etc. but I'm stumped on this one.
I have two linux boxes. I have a script set up on box 'A' to SCP into box 'B', grab a copy of a database backup and store it on box 'A'. It looks like this:
scp root@X.X.X.X:/blah/blah/blah/dump.23.gz /home/blah/DB_Backups/
I have generated a public key on box 'A' and placed it into the authorized_keys file on box 'B', so a password is not required and the file copies over successfully when the script is run. On to my problem...
I need to know what date the 'dump.23.gz' file was originally created when I'm viewing it after it's been copied to box 'A'. If I ls -l on box 'A' it only shows me the date it was created on box 'A' when it was copied.
What would I need to add to my script to append the backup's original creation date on box 'B' to the filename so that when it gets copied to box 'A' I know when the backup was created on box 'B'. I'm sure this is probably confusing. I've done lots of searching and can only find information on how to append the current date and time to a file name. I need to append it's original creation timestamp to the filename when it copies over.
View 10 Replies
View Related
Aug 2, 2010
I was wondering if there is a command to show a real-time creation of files. I basically executed a command that will created thousands of files and takes a long time. I want to check if it is still creating additional files or if ti got frozen.
View 3 Replies
View Related
Feb 16, 2011
I'm just starting out with shell-scripting, but having a problem with making new text files with the touch or cat > commands.
What I've been doing is touch testfile1.txt
Also, I've tried cat > testfile1.txt (text)
Console reports "bash: text1.txt: No such file or directory. Consfusingly, it works fine in the home-directory. But if I move the file to where I want it, I can no longer view, edit, etc. it.
View 1 Replies
View Related
Jan 14, 2010
We recently had an issue with "cat /proc/mount" telling us that a CIFS file system was mounted, even though the mount was not working correctly. So we're not sure if we can trust linux to report malfunctioning mounts, so we're planning on adding a specific file on the mounted file system, and verify the mount by reading this file from the client side (linux). If linux fails to read it, we know that the mount have failed. But before we go ahead doing this I thought I'd just hear how others are doing this sort of thing - how do you make sure that mount points are up and working?
- kenneho
EDIT: I just saw that I've posted in the security area, not in the server area. How do I move it?
View 6 Replies
View Related
Jun 14, 2010
I know newer filesystems support crtime values, even to nanoseconds granularity. Ext4 does it, and NTFS mounted via ntfs-3g should expose it. Still, what is the command to get these values??
getfattr -d <some file>
gives me zero results, and as far as I know ls does not have means to access creation time.
getfattr -n ntfs_crtime /mnt/<some ntfs fs> gives me "Operation not opermitted"..?
I know about the difference between ctime=inode change time and crtime=creation time/file birth time. I want to migrate a NTFS partition to Ext4 without losing the creation dates...
View 10 Replies
View Related
Jan 29, 2011
why sadc (a front end for sar data collection) would append a "?" to the output file when run from cron? And more particularly, how should I correct it? I have a RHEL 5.4 system which is doing this.e.g./usr/lib64/sa/sadc -d 10 6 /tmp/test produces output file /tmp/test when run from the command line but when run from cron the file produced is called "/tmp/test?"
Normal system logging with sysstat, which uses the same sadc command (with a couple of other options, and none of the options -d, -F, -L affect this behaviour), produces output files /var/log/sa/sadd where "dd" is the day of the month. There does not seem to be any control over this within the sysstat start-up scripts, other than use of option "-" to generate standard output files, so I expect that the dd is being done within the code. Is this associated with the "?" ?.Whatever is going on, the appended query seems to get added to everything as it still happens if I make the output file /tmp/test_$(/bin/date +\%d).Is this a bug or am I missing something fundamental about cron?
View 1 Replies
View Related
Aug 3, 2010
I have been running a server for 3-4 years now, and my shares have been mounting just fine. Well, the network admin looked at a backup and seen that the last date backed up was june. I got to looking around and seen that the share is not mounting. I can mount it with sudo mount -a, which tells me my syntax is correct. I get an error about IPv4 socket not opened and it is aborting the operation when I run dmesg | tail, since I can use the above command to mount later, it sounds to me like it is trying to mount before the network connection is ready.
I have done some looking over some init scripts and found that in the /etc/rc.d/init.r/netfs script it has a line that states that it is checking to see if the network is up before it starts to mount the filesystems and the such. This is set to no, my question is, can I change this option to yes and get my desired results, waiting for the network to be up before it mounts the filesystems.
View 6 Replies
View Related
Mar 12, 2010
I would like to be able to test that a network mounted cifs(samba) share is actually mounted in a script file to do backups. I want to do this so that when my automatic backups run they actually go to the remote location or fail. Currently, if there is a network problem that prevents the network share from mounting, the files simply get copied to the folder (e.g. /media/backupmount) and end up filling up my small local hard drive.
View 3 Replies
View Related
Mar 13, 2011
I'm trying to resume copying from a mounted CIFS device to my local hdd with cURL. I tried
Code:
$ curl -C - -O file://myfile
and also
Code:
$ curl -C <manual offset> -O file://myfile
(looked up the manual offset using "$ wc -c")
This resumes copying if I cancel it eg with ^C.
But it does not work if I unmount and remount the CIFS device. cURL then ignores my given offset and continues again from start as if nothing were there without saying a word. With "-C -" the same effect.
View 2 Replies
View Related
Aug 11, 2010
There are a number of shares on the destination system; for the purposes of this thread I used D$ and F$ (corresponding to those partitions). These shares are mounted permanently via CIFS (entries in fstab) on the source system.Today I copied an ISO image of some 3.5 GB from source (S) to destination (D). md5sum on S gave a different checksum for the source ISO than that calculated by HashCheck Shell Extension for the destination ISO. I know some would argue that I shoud use the same md5sum programm for both images.
To circumvent that I 7zipped the ISO, verified it's integrity and copied that archive from S to D. Verification of the acrchive by the Win version of 7z failed.To see if it's a protocol problem I copied both ISO and archive of ISO to another D this time using sshfs (it's an Ubuntu server). Flawless copies.Then I copied both files to another Win-based server on the same network. Flawless copies.Mystified, I checked the partition's file system integrity (NTFS) where the errors occured. Minor inconsistencies (no errors according to chkdsk). So I copied both files again, once to another partition (D:) of the original D, once to that partition causing the error in the first place (F:).
(D:): archive corrupt, checksum okay
(F:): this time around both okay.
What the hell can I do to nail down the problem?! I don't even know whether it's a problem of the source system or the destination.
View 1 Replies
View Related
Feb 11, 2011
I have a Dell Mini 9 netbook. The SSD took a dump, so I ordered a Super Talent 16gb replacement. I put it in yesterday, tried to install 10.10 and constantly get errors. The first error, which I haven't had since, was [ERROR 30] Read-only File System. The install obviously failed. Wondering if perhaps the file got messed up in translation, I redownloaded 10.10, reformatted the flash drive (sandisk cruizer 4gb), put 10.10 back on via the program on the Ubuntu site. No luck, but no longer the [error 30]. Tried again using Unetbootin, no luck. Rinse repeat a few times, no errors just a working cursor spinning and spinning and spinning and spinning and.. you get it.
Tried to put WinXP on it just because I was that frustrated, no luck.
Now I'm back to Ubuntu (because let's face it, who wants to deal with Windows, christ they make it so complicated). I'm currently using 10.04 because I was hoping (praying) it might just be a 10.10 thing.
No such luck, now it goes to step 7/7, starts, and 5% of the way thry "creating ext4 file system" it says "the ext4 file system creation in partition #1 (0,0,0)(sda) failed." I have checked the SSD in the Disk Utility, SMART tests are clean. I have gone to terminal and run fdisk and had a smarter person than me look at the copypasta, no errors, I have deleted all existing partitions in gparted and started fresh. I have tried the auto partitioning, I have tried manual, I am going insane. Literally insane. My preschooler thinks I've leaped off the deep end.
Could it be my flash drive? Could the SSD be defective despite the tests coming back clean? What do I need to type into terminal? Is there a way to entirely entirely entirely wipe the SSD to make it fresh-out-the-box clean? I will happily provide whatever you need if it means I can get my husband off my back about this stupid netbook with its stupid tiny keyboard.
View 1 Replies
View Related
Jun 24, 2010
I'm using cifs to mount windows share.I have created one credentials file and given the path in fstab to mount at boot time. Now i want to encrypt the credentials file and place that in the fstab file.But it is not accepting.. how to use encrypted file to use in fstab,so that normal users can not watch the credentials inside the file.
View 3 Replies
View Related
May 14, 2010
I have mounted a iomega file system on a cetos os machine using
mount.cifs //filserver-ip/directory /home/my-home/mounted-file -o
user=username
(** mounted as root) The mounting works fine.
The problem arises when I try to create a sub-directory inside the mounted directory. All the newly created sub directories become write protected.
I am accessing this file system from R software and it needs to write/create directories in side this mounted directory.
how can newly created sub-directories will become automatically writable, so that R can create new sub-directories and write data inside those directories.
View 2 Replies
View Related
Aug 12, 2014
Install cifs-utils on wheezy armhf
apt-get install cifs-utils --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
[Code] ....
View 7 Replies
View Related