usb-flash-drive

How to detect using c# if a pendrive is plugged into a USB port ?

Is there a way to find out when in a LAN anyone plugs in a pendrive to the USB port? Programatically (in C# preferably) or through some tool. Basically I'd imagine a client application sits on each terminal and monitors the USB ports and sends the information to the server. a.) Can I get the details of the file(s) being copied? b.) Is...

What is casper rw loop file and why do I need it to make saving persistant on usb flash drive?

Suppose I've installed linux on my flash drive. Why do I need something like casper loop file to make saving persistant? So files are being erased? Isn't flash drive the same as actual hard drive? I'm linux noob so be patient. Or it is because linux on flash drive is actually live cd on flash drive? Can it be installed just like it is in...

Run Windows XP on a usb drive virtually on Windows XP?

I am sick of not being able to run and install certain applications on my work computer due to admin restrictions (eg: Adobe AIR) . I have heard of smaller versions of Windows running on a usb thumb drive and have looked into it but can't find anything on running windows virtually from a usb drive. I would like to be able to login to th...

Batch backup a harddrive without modifying access times C#

I'm trying to write a simple program that will backup my flash drive. I want it to work automatically and silently in the background, and I also want it to be as quick as possible. The thing is, resetting all the access times is useless to me, and something I want to avoid. I know I can read the access times and set them back, but I bet ...

How to safely remove a USB drive on Windows CE 5.0?

Until today, I assumed that Windows CE was writing everything to disk and I wouldn't end up with a broken FAT16 when I removed the USB stick. Today, I was proven wrong. I use a USB stick to test things on a WinCE 5.0 device. I don't write anything from the app or WinCE to the stick. I just execute my app, and my app reads its settings a...

Differentiating between USB flash drive and USB hard drive on Windows

Hi, I'm trying to differentiate between a USB flash drive and a USB hard drive on Windows using the Win32 API. The GetDriveType() function will return DRIVE_REMOVABLE if the drive is removable, and USB flash drives are of course removable. But I'm thinking that Windows probably considers USB hard drives removable as well (unfortunately ...

Dump of first 512 bytes of a flash drive different, when done via hexdump and fdisk

I first zeroed out the first 512 bytes of the USB flash drive using dd if=/dev/zero of=/dev/sdb bs=512 count=1 Then i saw that the output of hexdump -n 512 /dev/sdb and from within fdisk (the raw dump of the partition table) is different. Specifically, hexdump shows that all bytes are really zeroed out. But, in fdisk I see that th...

Is it possible to cheat thumb drive Serial Number?

I want to distribute my software on flash (thumb) drives. The software protection will check that the product runs from a flash drive with predefined Serial Number thus protecting me from the software unauthorized duplication. My question is if it possible to somehow create another flash drive with the same Serial Number? E.g. if a flas...

Looking for code snippets, library, or toolkit to modify a USB Flash Drive's serial number

I've been writing some tools to interact with a USB Flash Drive (removable drive) for our portable application. We are going to be tying some relevant information directly to the flash drive via the serial number (device serial number, not the volume serial number which is formatting based) I am able to read the device serial number. Wh...

Why can't certain USB Mass Storage Devices be detected by some hardware?

I am trying to modify a mass storage driver using the composite usb framework to allow an embedded mass storage device to be visible on my Xbox 360. I have confirmed that this is not a simple VendorID/ProductID block. I would like to understand what specifically prevents some devices, say the Xbox 360, from seeing certain mass storage ...