Questions tagged [usb-flash-drive]

A USB flash drive is a data storage device that includes flash memory with an integrated Universal Serial Bus (USB) interface.

USB flash drives are typically removable and rewritable, and physically much smaller than a floppy disk. USB flash drives are often used for the same purposes for which floppy disks or CD-ROMs were used, i.e., for storage, back-up and transfer of computer files. They are smaller, faster, have thousands of times more capacity, and are more durable and reliable because they have no moving parts. wikipedia

123 questions
28
votes
3 answers

Running Mercurial on a Flash Drive?

So I do a lot of work on a school computer. We can't install anything but we have most of our tools on our flash drives but I was wondering if there's a way to get Command Prompt to use Mercurial off of my Flash Drive. Let's say in theory that…
NessDan
  • 1,081
  • 1
  • 14
  • 30
25
votes
3 answers

What is a casper rw loop file and why do I need it to make saving persistent on a USB flash drive?

Suppose I've installed Linux on my flash drive. Why do I need something like the casper loop file to make saving persistent? So files are being erased? Isn't the flash drive the same as actual hard disk drive? I'm a Linux noob so be patient. Or it…
l245c4l
  • 3,955
  • 7
  • 32
  • 40
21
votes
1 answer

How to identify UNIQUELY a USB Device?

Is it possible to identify a USB device by a unique identifier like an Operating system has Mac-ID, Harddisk ID, Ethernet card ID has unique identifiers? I know one can easily change the volume serial number of USB partition or it could be changed…
highlander141
  • 1,593
  • 2
  • 21
  • 41
13
votes
4 answers

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…
user20358
  • 12,976
  • 29
  • 106
  • 174
12
votes
4 answers

usb sniffing with wireshark

at the moment I am using usbmon to sniff usb. for better understandability I want to use wireshark. I've used wireshark before for sniffing ethernet packets. But what to capture to sniff USB Packets ? I meant I need to start by selecting which…
Neel Basu
  • 11,848
  • 10
  • 71
  • 138
11
votes
3 answers

How do I determine if a connected USB device is a USB flash drive?

how do you determine what kind of media has been attached to the system? I have Ubuntu, and when I inserted an SD-card, it notices that it is in fact an SD card. Same counts for USB sticks. But how can I determine on low level when a new device is…
Boy
  • 5,006
  • 4
  • 47
  • 60
11
votes
1 answer

UDEV - Run program on USB flash drive insert

I am trying to get a script to run whenever ANY USB flash drive (not just a specific one) is plugged in to the system and I have been pulling my hair out for about 2 weeks now on and off trying to figure it out. Can anybody help me? (running Ubuntu…
smd75jr
  • 127
  • 1
  • 1
  • 6
7
votes
3 answers

How can I get VID/PID from USB Flash drives in C#?

I need to perform a check on all drives and see if any of the VIDs/PID match a specific one, if it does I need to get the drive letter of that flash drive. Thanks to all!
user1172635
  • 277
  • 1
  • 6
  • 11
5
votes
2 answers

Simulate a USB flash drive with PC

I have a peculiar question. The case is that I have a TV that can use as source a USB flash drive for playing movies. Do you think it would be possible to directly connect a PC and the TV USB to USB and using some software interface to determine the…
Adrian
  • 331
  • 1
  • 4
  • 15
5
votes
2 answers

USB blocking using minifilter driver (passThrough)

I am writing a mini-filter code for USB (Flash Drives) for blocking i.e (Access Denied).So, could someone help me out, how to detect or block USB or what methods to use in passThrough WDK sample code for USB detection and USB blocking? I am trying…
suraj_fale
  • 908
  • 2
  • 20
  • 50
5
votes
4 answers

determining if a flash drive exists from a batch file without error messages

I have batch files with the construct: if exist F:\ copy /y Application.exe F:\ at the end of a compile, to copy the executable to a USB key if it is plugged in. It has worked fine with USB keys but when I had a USB multi card reader plugged in…
rossmcm
  • 5,184
  • 7
  • 51
  • 108
5
votes
7 answers

Differentiating between USB flash drive and USB hard drive on Windows

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…
user408962
  • 51
  • 1
  • 2
4
votes
0 answers

Identify USB flash drive in C#

I need an ID that uniquely identifies an USB flash drive. The ID should already exists on the flash drive, so that it is the same ID on every PC I plug it in. It seems that the PNPDeviceID is not unique. Can anyone proof that? And if its not unique,…
L4c0573
  • 333
  • 1
  • 4
  • 21
4
votes
1 answer

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…
Nitzs
  • 41
  • 1
  • 2
4
votes
2 answers

Python off a Flash Drive, how to start IDLE?

I was trying to run Python 3.3 off of my flash drive. I already tried Portable Python, but most of what it had wouldn't open, and it crashed my laptop. So, I deleted it, and installed regular Python. Then, I wanted to start adding my favorite…
evamvid
  • 771
  • 4
  • 15
  • 36
1
2 3
8 9