w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to make Gradle stop trying to chmod MANIFEST.MF on an NTFS drive
Gradle is trying to set default permissions for that file, and I can't see a way to stop it from doing that. (You could make it set different permissions, but I guess that won't help.) Under Windows/NTFS this normally works just fine, so it might be a problem with you Linux NTFS driver or configuration.

Categories : Linux

How to get to last NTFS MFT record?
The MFT location isn't always fixed on the volume. You should get the starting MFT offset from the boot sector (sector 0 of the volume, you can find the structure online). The first file in the MFT is the "$MFT" file which is the file record for the entire MFT itself. You can parse the attributes of this file like any other file and get it's data run list. When you know the size of each fragment in clusters, parse the last cluster for each 1024 byte record of the last fragment (although I believe a fragmented MFT is rare). The last record in the MFT is the last record in that particular cluster marked "FILE0", if you encounter a null magic number that would be 1024 bytes too far. Or you can just get the file size from it's attributes and calculate the offset to the end of the MFT based o

Categories : Windows

NTFS vs. File Share
Short answer: No. In Windows each file and directory has an ACL controlling access to it. Each file share also has an ACL controlling access to the share. When you access a remote file through a share you are doing so using the credentials used to login to the local computer. (You can connect using different credentials by entering a username/password when connecting). The remote computer tests the supplied credentials against the ACL on the share. Once you are past that, then every file you attempt to access on the remote machine through this connection will be checked using your credentials against the ACL on the file and the share. This allows a file share to offer more restricted access to some files than if the same user were attempt to access them locally. (So you could share file

Categories : Misc

NTFS - file record size
It's not actually that much of a waste. You should try to look at what happens when the number of attributes stored in the file record exceeds 1 KB. (by adding additional file names, streams, etc.) It is not clear (to me at least) for different versions of NTFS if the additional attributes are stored in the data section of the volume or in another File Record. In previous versions of NTFS the size of a MFT File Record was equal to the size of a cluster (generally 4KB) which was a waste of space since sometimes all the attributes would take less than 1 KB of space. Since NT 5.0 (I may be wrong), after some research, Microsoft decided that all MFT File Records should be 1KB. So, one reason for storing that number may be backwards compatibility. Imagine you found an old hard drive which stil

Categories : File

What is the difference between HDFS and NTFS and FAT32?
... Because NTFS and FAT aren't Distributed. The advantage of HDFS is that it is. See the HDFS Introduction.

Categories : Hadoop

NTFS Journal USN_REASON_HARD_LINK_CHANGE event
As always with the USN, I expect you'll need to go through a bit of trial and error to get it to work right. These observations/guesses may, I hope, be helpful: When the last hard link to a file is deleted, the file is deleted; so if the last hard link has been removed you should see USN_REASON_FILE_DELETE instead of USN_REASON_HARD_LINK_CHANGE. I believe that each reference number refers to a file (or directory, but NTFS doesn't support multiple hard links to directories AFAIK) rather than to a hard link. So immediately after the event is recorded, at least, the file reference number should still be valid, and point to another name for the file. If the file still exists, you can look it up by reference number and use FindFirstFileNameW and friends to find the current links. Comparin

Categories : Windows

Viewing Ciphertext of Encrypted File on NTFS (EFS)
The way you open an encrypted file in order to read its raw encrypted contents (e.g. for a backup/restore application) is to use the: OpenEncryptedFileRaw, ReadEncryptedFileRaw, WriteEncryptedFileRaw, and CloseEncryptedFileRaw api functions. Writing the code on the fly, in a hypothetical hybrid language: void ExportEncryptedFileToStream(String filename, Stream targetStream) { Pointer context; res = OpenEncryptedFileRaw("C:UsersIanwallet.dat", 0, ref context); if (res <> ERROR_SUCCESS) RaiseWin32Error(res); try { res = ReadEncryptedFileRaw(exportCallback, null, context); if (res != ERROR_SUCCESS) RaiseWin32Error(res); } finally { CloseEncryptedFileRaw(context) } } function ExportCallback(pbData: PBYTE, pvCallbackCo

Categories : Windows

How does NTFS handle the conflict of short file names?
NTFS won't create two short names like that. The first will be THISIS~1.txt and the second will be THISIS~2.txt. For example, open a command prompt and from the root of C: drive type C:>dir prog* /x /ad<Enter> On a Windows 7 64-bit system you will see output similar to this 03/28/2013 12:24 PM <DIR> PROGRA~1 Program Files 07/31/2013 11:09 AM <DIR> PROGRA~2 Program Files (x86) 12/10/2012 05:30 PM <DIR> PROGRA~3 ProgramData

Categories : Windows

access to ntfs stream for a very long filename fails
As the very helpful page on CreateFile says referring to the lpFileName parameter which specifies the filename: In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "?" to the path. Since you are contemplating BackupRead obviously you are wanting to access this stream programatically. If so, test things programatically. Trying all these operations from the command prompt is a crap-shoot and will not establish anything more than the ability to perform such operations from the command prompt. With that in mind, let's try this simple program - boilerplate code removed: #include "stdafx.h" int APIENTRY _tWinMain(HINSTANCE, HINSTAN

Categories : Windows

NTFS sparse file data runs ($UsnJrnl)
No, it means that $UsnJrnl occupies 2576 clusters on disk. Sparse clusters don't occupy any space on disk, if you'd try to read sparse cluster, e.g. cluster 10 in your example, NTFS just returns zeros. Generally, you can't determine start and end cluster of the file, since files can be fragmented - your example says that first 1408 clusters are not allocated on disk at all, then 128 clusters of that file occupy disk clusters 510119 - 510247, then 2448 clusters of the file occupy disk clusters 256 - 2704; so in this case you can't say that file begins by cluster X (on disk) and ends by cluster Y (on disk) - it's possible only if file is not fragmented (when it uses only one cluster run).

Categories : Windows

Google drive: Get (root) file and folders with javascript api (get only deleted files on drive)
Same situation as following question: google drive api, javascript list files returns nothing I needed to add to the scope the path 'drive' at authorizing, I had only drive.file which is intent to create/edit files only. The weird thing is that the API returns deleted files when you don't have permissions to view files, I think it's a bug in the API (a serious one). Post this bug on google drive: https://productforums.google.com/forum/#!searchin/drive/security$20issue$20permission$20view/drive/pupjKxTz9FU/cUarGIl_Ah0J

Categories : Javascript

google drive api - copyfile working only with permission for accessing all files in drive (but jst need to copy)
According to the documentation, Files.copy() requires at least one of the following three permissions: https://www.googleapis.com/auth/drive: "View and manage the files and documents in your Google Drive" which is the one you want to avoid https://www.googleapis.com/auth/drive.file: "View and manage Google Drive files that you have opened or created with this app." Which means you can freely create any file but only open the files your app created. You can only copy a file you created, but you cannot copy any other files even if it is public. https://www.googleapis.com/auth/drive.appdata: "View and manage its own configuration data in your Google Drive" Which only lets you control your application-specific Appdata folder which is probably not what you want. You can only copy a file with

Categories : Javascript

Error while Retriving files from google drive using drive API. “Calling this from your main thread can lead to deadlock
You should do any code that could take a long time such as I/O or network activity on a different thread. In your situation your file retrieval would be best done within an ASyncTask. The reason for this warning is because when your code is being executed to retrieve the file from Drive, the code will block until the file retrieval has completed, this means that nothing else within the program will be able to respond, i.e. GUI will not update and input from the user trying to do stuff with the GUI will not be registered. After a few seconds, if the file retrieval still isn't complete, then the user will be presented with an ANR (Application Not Responding) message. This will either give the user the choice of waiting, if their patient, or most likely force closing your app.

Categories : Android

Google Drive Javascript API: Detect drive changes - return changes only
Start with zero on your first call. Within the response is the current largest change id, which you need to store and use on the next request. In your code, it will materialise as "resp.largestChangeId".

Categories : Javascript

Monitoring changes in Google Drive files for whole domain using Drive API
Domain-wide delegation simplifies the authentication portion for your app but you'll still need to auth as each user to get their files and changes. It may be possible for your app to "grab" all files and make itself (or a special user) the owner, then you just have one user account to scan but the "grab" process would still need to run at regular intervals to find new files created or uploaded by end users. I believe most apps that need to scan content at this level do it via cron jobs or AppEngine task queues which make it easy to chunk up the scans throughout the day. Generally they expect to scan each user account once every 24 hours or so.

Categories : Google App Engine

Create a symbolic link (or other NTFS reparse point) in Windows Driver
There isn't direct API to create reparse points. You need to use ZwFsControlFileZwFsControlFile() to send FSCTL_SET_REPARSE_POINT ioctl with appropriate input buffers and parameters. Don't have example though!

Categories : Windows

Windows: How to symlink drive to another drive?
No, mklink isn't going to do it for you. What you need to do is to create a virtual hard drive (VHD) and copy the client's data to it. (Or modify the export script, which is the best thing to do.) I used Windows 7 to test my instructions below. Start-> run-> diskmgmt.msc (accept all defaults... I'm not doing anything special below) From the menu bar select Action -> Create VHD Choose the location and name the file (which will be the vhd) and specify the size and click OK. Right click on the Disk # (underneath will be Unknown and the size and "Not Initialized"). Select "Initialize Disk" & click OK Right click on the black bar of the unallocated disk space and select "new simple volume". A wizard opens up an on the second page it lets you assign the drive letter. Complete the wizar

Categories : Windows

How do I create & edit a spreadsheet file on google drive using Google Drive APIs only from my Android app?
You should take a look at Google Spreadsheet API 3.0. It supports JAVA which you can use in your Android application.

Categories : Java

Google Drive sdk for android, Getting error 400 Bad Request when uploading file to Google Drive
You seem to be setting the mime type in the File object, but you need to set it in the FileContent object. When you create your file content, you can try passing in the type in the constructor new FileContent("image/jpeg", localFile); or using the method setType("image/jpeg"); but in your mediaContent instance, not in your body instance.

Categories : Android

Using Subclipse with share drive specifically an office-like share drive
You should start with the SVN book, chapter 1: http://svnbook.red-bean.com/en/1.7/svn.basic.html You need a SVN server and repository. That is what you will "share" with. All users that want to collaborate on the versions of a file will need to use a SVN client so that they can checkout and edit files stored in your repository and commit their changes back.

Categories : Eclipse

How to mount a snapshot from boto?
The attach_volume method takes an instance_id and a volume_id but you are passing objects. Try this: c.attach_volume(volume.id, instance.id, "/dev/sdh") The device_name should be a reasonable device name for the OS you are using. You can find more about what that value should be here. boto uses standard Python logging so you can configure it to log as much or as little as you want. This gist shows a shortcut approach to get full debug logging. However, boto can only log what it has access to and it's possible the response from EC2 just doesn't provide much information.

Categories : Amazon

Oracle 11g startup and mount
fix it: Connect to DB: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> shutdown immediate; Database aready shutdown. Aready uninstall database. ORACLE instance aready close. SQL> startup nomount; ORA-12514: TNS: listner process can't recognize current service of connection describe string监听程序 SQL> startup nomount; ORA-24324: service handle not initialized ORA-01041: internal error, hostdef extension name not exists SQL> conn sys/sys as sysdba; Aready connect to idle instance SQL> startup; ORACLE instance started。 Total System Global Area 535662592 bytes Fixed Size 1334380 bytes Variable Size 234881940 bytes Data

Categories : Oracle

Mount other users hive with C# .net
You can call the RegLoadKey API method using platform invoke. [DllImport("advapi32.dll", SetLastError = true)] static extern Int32 RegLoadKey(IntPtr hKey, string lpSubKey, string lpFile);

Categories : C#

mount unmount without sudo
You must add /nfs entry to /etc/fstab on the server host. In the list of options of the entry must be option user or users (depends on that if you want that user could unmount the filesystem or not). Example: xx.xx.xx.xx:/ /nfs nfs rsize=4096,wsize=4096,user 0 0

Categories : Linux

How to mount an attached EC2 volume in CLI?
I'm not sure if this is a good answer, try running: lsblk /dev/sdi And it may list partitions that exists on that drive like this: sdi |--sdi1 |--sdi2 |--sdi3 If you have something like sdi1 you can try to mount it: mount /dev/sdi1 /your/folder/here Hope it helps.

Categories : Linux

mount: nfs access denied by server
Is there a config file on the NAS where to put allowances for clients? E.g. in debian based OS the config file is "/etc/exports" and you would put there "/volume2/Asterisk_Recordings 192.168.1.1(rw,sync)" and activate this with "exportfs -a" (your NAS may do this automatically if you update the config via a web interface, I guess.) Check also Mounting NFS results in access denied by server.

Categories : Misc

LSF - Mount a cgroups.cpuset for jobs
Support for cpuset was released in LSF 9.1.1.1 (GA July 31, 2013). The feature adds a new parameter to lsf.conf LSB_RESOURCE_ENFORCE. You can set it to cpu, memory or both. You need to enable the cpu and memory affinity feature of LSF to use cpuset.

Categories : Linux

Mount to local directory without Fuse.
In short, no. If your host wont enable FUSE or any other kernel module that allows you to mount filesystems in user space, then there's nothing you can run yourself. Your best bet is to check if your VPS has a module installed specifically for FTP filesystems, or get the host to install one, or get the host to enable FUSE.. or just move on to a different host.

Categories : Linux

Icecast dont see mount point
Hey it looks like you made an error configuring Nicecast. You might want to read the following guide. Please note that Nicecast has an built-in Icecast server, make sure you are not using this one. As well not that Nicecast for some reason will kill any running Icecast server on the same machine where Nicecast is started. So you have to first start Nicecast and only afterwards start your Icecast Server. (This should not happen anymore after you have disable the built-in server though) Another issue I experience with some versions of Nicecast is that the Settings or at least some (like the Mountpoint Name) only take effect after restarting Nicecast. Additionally make sure your Mountpoint name is not /, as this is an impossible mountpoint name (it conflicts with the web interface).

Categories : Misc

Attempt to mount remote nfs only when it is accessed
You can use automount for this. https://help.ubuntu.com/community/Autofs The example there shows how to automount an NFS share.

Categories : Misc

how to determine if the mount successful in QT code
You can check last error of a QProcess by using error and state functions (Documentation for "error" Documentation for "state"). "What if there is an error that is not in my condition." You can add something like this in your code: else if(connectSamba.state() == QProcess::NotRunning && connectSamba.error() >= 0) { LogWrite("Unknown error", Qt::red); return false; } Or, if you want to give more specific information, you can create a condition for each error code separately. Here's a list of codes. Alternatively, don't add the above block to the error checking code. Instead, create a slot to which you connect the error signal of connectSamba class: // add this line below "QProcess connectSamba;" line in mwDm::mountFolder connect(&connectSamba, SIGNAL(error(QPro

Categories : Qt

Mount Windows shared filder to AIX
Two options 1) The easiest would be to install the bos.cifs fileset and use smit to mount the share as a filesystem: http://www-01.ibm.com/support/docview.wss?uid=isg1fileset-1244257370 2) I would not recommend this for "newbies", but you may have better luck getting this to work by installing samba: www.samba.org

Categories : Unix

Scripted truecrypt mount, without using /dev/ or UUID
Use Disk ID instead: #!/bin/bash # Run this script as root to avoid entering the root password twice secret=0xa52f2c38 # Generate tempfile tempfile=fdisk.tmp sudo fdisk -l > $tempfile # -------------------------------------------------------------------------- # Locate secret drive and mount it # -------------------------------------------------------------------------- num=$[ $(grep -n "^Disk identifier: $secret" $tempfile | cut -f1 -d:) - 5 ] if [ $num > 0 ] # num will be greater than 0 if drive exists then # Get line containing /dev # ---------------------------------------------------------------------- dev=$(sed -n "${num}p" $tempfile | cut -f2 -d' ' | sed 's/://') truecrypt $dev /media/secret # Check (Create .truecrypt on the mounted volumen beforehand) # -----------

Categories : Misc

Android - Mount a Samba share in code
Probably smbfs/cifs are currently not supported by your kernel. As Delyan said, ensure your kernel can mount these filesystem : $ cat /proc/filesystems nodev sysfs nodev rootfs nodev bdev nodev proc nodev cgroup nodev tmpfs nodev debugfs nodev sockfs nodev usbfs .... If they are not listed, you should try to do a modprobing (sometimes the module you want just have to be activated), get root access then : # modprobe <modulename(without.ko)> e.g. : # modprobe cifs If it doesn't work you will have to change or recompile your kernel (including appropriate modules).

Categories : Android

C - How do I move a file from a cifs mount to local hdd
In all likelihood, if you interrogate errno after rename fails, you will find that it is set to EXDEV. May I suggest that you add that information or confirm that it is EXDEV. If you are getting EXDEV, then it is because of the Linux limitation that rename() only works if oldpath and newpath are on the same mounted file system. From rename(2) EXDEV oldpath and newpath are not on the same mounted file system. (Linux permits a file system to be mounted at multiple points, but rename() does not work across different mount points, even if the same file system is mounted on both.)

Categories : C

mount remote windows share from centos
The mount.cifs file is provided by the samba-client package. This can be installed from the standard CentOS yum repository by running the following command: yum install samba samba-client Once installed, you can mount a Windows SMB share on your CentOS server by running the following command: Syntax: mount.cifs //SERVER_ADDRESS/SHARE_NAME MOUNT_POINT -o user=USERNAME SERVER_ADDRESS: Windows system’s IP address or hostname SHARE_NAME: The name of the shared folder configured on the Windows system USERNAME: Windows user that has access to this share MOUNT_POINT: The local mount point on your CentOS server I am mounting to a share from \10.11.10.26snaps Make a directory under mount for your reference mkdir /mnt/mymount Now I am mounting the snaps folder from indiafps02, User

Categories : Linux

Listing of all folders of Google Drive through IOS Google Drive SDK
Assuming this code works, there is a problem in the query. Multiple queries should be combined by and. query.q = @"mimeType='application/vnd.google-apps.folder' and trashed=false"; For more examples of sample queries, take a look at Search for Files in official documentation. Also, in case this code doesn't work, you want to use Files.list() with query above. Check the link and there is a sample code for Object-c you might want to use.

Categories : Objective C

Serving static files with CherryPy ignores mount point?
This is how I solved it: [/] tools.staticdir.root: os.path.abspath("public/") tools.encode.on: False tools.gzip.on: True tools.gzip.mime_types: ['text/html', 'text/plain', 'application/json', 'text/javascript', 'application/javascript'] [/static] tools.etags.on: True tools.staticdir.on: True tools.staticdir.dir: "public" [/js] tools.staticdir.on: True tools.staticdir.dir: 'js' [/css] tools.staticdir.on: True tools.staticdir.dir: 'css' [/images] tools.staticdir.on: True tools.staticdir.dir: 'images'

Categories : Python

How to rename a MOUNT (mounted shared folder from Windows named mnt)
Follow these steps: Unmount: umount /mnt Create another folder /my_new_mount Mount again: mount -t cifs -o username=myusername,password=mypassword //10.80.50.50/Share /my_new_mount Update in /etc/fstab

Categories : Linux

fusermount call similar to mount --bind for local directories?
Well, came back to this question, Googled, saw the FUSE manual, this post, then bindfs which does exactly what I had wanted. This usage worked for me: bindfs -n ~+/src ~+/dest Without -n, --no-allow-other, then FUSE gave me an error: fusermount: failed to open /etc/fuse.conf: Permission denied fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf Odd that it wants to allow other users by default. It's available in Ubuntu 12.04, sudo apt-get install bindfs

Categories : Misc



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.