hard-drive

It's possible to make a Batch program that backup a folder files from my external hd to pc hdd, anytime I add or change a file?

我与影子孤独终老i 提交于 2019-12-12 00:16:21
问题 I'm a graphic designer and I use my external hd frequently to move psd/jpeg/png/tiff files from my laptop at home to my Work PC and vice versa. But as a precaution before modifying or adding a file I copy it to a folder. It's possible to make it automatically? And it's easy to make on Batch? Thanks for help! 回答1: Robocopy is your friend google it and have a look. It's a very powerful program by sysinternals (owned by Microsoft). Or if you want a nice GUI to go with it use SyncToy (https://www

how to get hard disk serial number with action script

自古美人都是妖i 提交于 2019-12-11 08:47:33
问题 I'm using action script 3.0 compiling the code to flash 10 how to get hard disk serial number with action script? I want to get this info without any security requirement. Is there a way to do it? 回答1: You could get all the physical media for a device from a C# console application and output each physical medium and its properties as an xml. Then in an Air application using the NativeApplication API you can get said physical medium and its properties, namely the serial number for a hard disk

Best storage engine for constantly changing data

爷,独闯天下 提交于 2019-12-11 08:26:26
问题 I currently have an application that is using 130 MySQL table all with MyISAM storage engine. Every table has multiple queries every second including select/insert/update/delete queries so the data and the indexes are constantly changing. The problem I am facing is that the hard drive is unable to cope, with waiting times up to 6+ seconds for I/O access with so many read/writes being done by MySQL. I was thinking of changing to just 1 table and making it memory based. I've never used a memory

Can excessive hard disk usage degrade hard drives?

半城伤御伤魂 提交于 2019-12-11 06:35:04
问题 Can excessive hard disk usage degrade hard drives? Background: Some code I have reads a particular file more often than it needs to. Reducing the frequency of it reading the file isn't justified by speed concerns, but if it does long-term damage to the hard drive it runs on (it only runs on one computer), then changing it would be justified. 回答1: Can it? Yes. Will it? It really depends, but unless you're writing a defragmenter that runs 24/7, it's likely that (1) the system will cache a lot

Portable way to determine sector size in Linux

て烟熏妆下的殇ゞ 提交于 2019-12-11 05:52:43
问题 I want to write a small program in C which can determine the sector size of a hard disk. I wanted to read the file located in /sys/block/sd[X]/queue/hw_sector_size , and it worked in CentOS 6/7. However when I tested in CentOS 5.11, the file hw_sector_size is missing, and I have only found max_hw_sectors_kb and max_sectors_kb . Thus, I'd like to know how can I determine (APIs) the sector size in CentOS 5, or is there an other better way to do so. Thanks. 回答1: The fdisk utility displays this

Is it a good idea to read multiple files at the same time?

荒凉一梦 提交于 2019-12-11 03:37:10
问题 One of our company's server has 32 CPUs, and we have 1000+ very large files to be processed. I'm not sure if it is a good idea to read 32 files at the same time so all cores can perform independent calculations at the same time too. Could anyone briefly explain how hard disk works? If I read 32 files at the same time, would that slow down the reading speed? Thanks! 回答1: The hard disk is traditionally a mechanical data storage device. I'm assuming the server uses mechanical ones, and not the

Using “statfs” on Mac OS X?

我是研究僧i 提交于 2019-12-11 03:29:04
问题 I need to retrieve information about a hard disk and am using the statfs function to do so. When your computer displays free space on the HD, does it use "free blocks" or "free blocks available to unpriveleged user"? Does statfs work with SSDs? How would the "path" to the main hard drive be stored? On windows it's generally C:, but I am new to OSX. The man pages don't seem to provide a very comprehensive look of how statfs works. Mac OSX Snowleopard using C/Objective-C. Xcode 3.2.6 回答1: 1)

Win32 API P-Invoke to bring a disk online, offline, and set unique ID

风格不统一 提交于 2019-12-10 23:40:16
问题 I am currently using Diskpart to accomplish these functions, but i would like to be able to use P-Invoke and not have to shell out to an external process in my C# app. The example Diskpart scripts are: //Online a disk Select disk 7 disk online // Reset GPT Identifier select disk 7 UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee I tried searching pinvoke.net but could only find functions that dealt with volumes, not disks. Any idea on how to accomplish these diskpart commands using

Detect if hard disk is being accessed or not

冷暖自知 提交于 2019-12-10 23:30:19
问题 I am trying to make a very simple hard disk access monitor to work like those embedded LEDs that blink according to drive usage . That LED REALLY helps me, but the laptop I am using does not have it. =[ So, I've made a simple tray icon application, but I don't know how to determine that variable of disk access. I've searched for it and found something like System.Diagnostics.PerformanceCounter , but I have no idea on using it for my task. If there is another solution, I'd also appreciate! =]

How to get unallocated space info in a physical disk

六月ゝ 毕业季﹏ 提交于 2019-12-10 17:54:59
问题 Can anybody help, how to get unallocated space information in a disk using C# ? 回答1: If you want to know the total free space for a volume, you can use DriveInfo.AvailableFreeSpace . http://msdn.microsoft.com/en-us/library/system.io.driveinfo.aspx You can also use WMI to fetch information about partitions on the disk, using Win32_DiskPartition and Win32_DiskDrive : Win32_DiskPartition: http://msdn.microsoft.com/en-us/library/aa394135%28VS.85%29.aspx Win32_DiskDrive: http://msdn.microsoft.com