General :: Reading The Manufacturer Data / Device ID On A USB Drive?

Jun 28, 2011

I wish to read the Manufacturer data and other details such as Device ID, Serial number on a USB drive.

1. Could anyone help me out with information on the memory structure of a USB drive? (which location is the mnfr data stored?)

2. Are there are any commands in Linux that will help in reading/accessing this data?

View 3 Replies


ADVERTISEMENT

General :: Crypsetup (Unix) Is Not Reading The Device?

Jan 25, 2011

I have a Unix based question. Intro:Trying to create local image which is coded by the cryptsetup tool. Here are my steps:

abcdef# dd if=/dev/zero of=image.img bs=512M count=1 1+0 records in 1+0 records out 536870912 bytes (537 MB) copied,6.39732 s, 83.9 MB/s abcdef# cryptsetup luksFormat image.imgWARNING! ======== This will overwrite data on image.img irrevocably. Are you sure? (Type uppercase yes): YES Cannot read device image.img.

Q:How can I make it work correctly(creating local image with crypting support) or how can I (if its possible of course) to swindle my os?

View 1 Replies View Related

Networking :: Serial Port : Read Data, Not Reading Complete Data?

Mar 5, 2010

I have an application where I am sending data via serial port from PC1 (Java App) and reading that data in PC2 (C++ App). The problem that I am facing is that my PC2 (C++ App) is not able to read complete data sent by PC1 i.e. from my PC1 I am sending 190 bytes but PC2 is able to read close to 140 bytes though I am trying to read in a loop.Below is code snippet of my C++ AppOpen the connection to serial port

Code:
serialfd = open( serialPortName.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
if (serialfd == -1)

[code]...

View 5 Replies View Related

Debian :: Reading From USB Keyboard Device?

May 1, 2010

I am running Debian off a CF on a SBC board (TS-7200). I am connecting via serial ttyAM0. It has a 2.4.26 Kernel running a Sarge distro of Debian.

I am using a terminal in windows to work on the device via serial. (Tera Term)

I am trying to read the input from a keyboard usb device. However, I want to eventually be able to read from any HID device. I currently have a Dell keyboard plugged into usb. lsusb gives:

Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 413c:1003 Dell Computer Corp.
Bus 001 Device 003: ID 413c:2010 Dell Computer Corp.

[Code]....

View 1 Replies View Related

Ubuntu :: Reading Data From Disk Into Memory

Jun 6, 2011

I have a simple C program that reads a 1 GB file from disk into memory.The first time I run this program, the process takes several seconds. But if I run this program again immediately after it finishes, the read happens almost instantly. What is going on here?My suspicion is that the operating system is realizing that the data I'm trying to read is still uncorrupted in memory (its been freed but not overwritten), so instead of reading it again, it just gives me the same block. I would really like to know what this process is called, or any Googleable keywords that would allow me to research it.

The reason I ask is because the size of my input data has increased. Now I need to read in a 6 GB file (my system has 12 GB of RAM), but I'm not observing the same behavior with the larger file. Each time I run the program the read takes an equally long time.

View 2 Replies View Related

Programming :: Reading Data From Multiple Files?

Mar 17, 2011

I have a folder which includes bunch of folders each having data files in them. [ Folder A has F1, F2 F3 ..... F1000 folders in it, and F1, F2, F3 ... each has about 10 different files named FILE 1, FILE2, FILE3 .... in them.

I am interested in File 1 of each Folder, because that contains the data I need in it. More specifically, that File1 s have a line "ANSWER=..." in them, and i need to get that value of the ANSWER from each file. So doing it by hand is so hard, so I need to write a script that will scan all folders and give me a list of values of eache ANSWERs.

View 4 Replies View Related

Programming :: Reading A File Of Data In An Array?

Feb 10, 2011

I have two files of data with different numbers of columns and rows. I want to read this two files in two arrays and then compare for example the second column of first data file with the third column of the other text file and if the difference between of two numbers is less than a threshold then the program print the information in the rows which fulfill this condition in the third text file. I have written below program but the problem is that it does not go through all rows of second file.

declare -a a
declare -a b
r=` awk '{n++} END {print n}' second.txt `
echo $r
awk '
{

[Code]....

Actually I have two data files one of them contains 44406 and the other one has 12066 rows and I want to check whether the difference between the components of two specific columns is less than a threshod but I have simplified it here. I had written this code and then I have realized that this code just goes through the number of rows as the same as the first.txt file and ignores the rest. I could not find the problem yet.

View 2 Replies View Related

General :: Why Is Reading A FILE Faster Than Reading A VARIABLE?

May 4, 2011

I don't understand the results of a simple performance test I ran using two basic scripts (running on a high end server):

perfVar.zsh :

#!/bin/zsh -f
MYVAR=`cat $1`
for i in {1..10}

[code]...

Performance test result:

> time ./perfVar.zsh BigTextFile > /dev/null
./perfVar.zsh FE > /dev/null 6.86s user 0.32s system 100% cpu 7.177 total
> time ./perfCat.zsh BigTextFile > /dev/null
./perfCat.zsh FE > /dev/null 0.01s user 0.10s system 91% cpu 0.118 total

I would have thought that accessing a VARIABLE was way faster than reading a FILE on the file system... Why this result ?Is there a way to optimize the perfCat.zsh script by reducing the number of accesses to the file system ?

View 3 Replies View Related

General :: Storing Data To An External Device From Aspire One?

Aug 14, 2010

I have an Aspire One with Linux operating system.

I have an external hard drive that I want to save data to from my Aspire One however when I try I get a message that the external hard drive is full.

I know it isn't full and when I use the external hard drive on my other pc with Window 7 it is fine.

I am assuming my problem is something to do with the ACER Aspire One

View 7 Replies View Related

Fedora :: Libusb-1.0 Time-out When Reading From HID Device?

Jun 25, 2009

I'm having a weird problem with libusb-1.0. I have a fresh install of Fedora 11. I'm trying to control a USB HID device (own development) and I want to offer Linux support via libusb. Writing to the device is not a problem and works without any problem. The problems starts when I want to read from the device. Under Windows everything works without a problem.

Via lsusb -v I get this information:
Bus 003 Device 013: ID 16c0:0552
Device Descriptor:
bLength 18
bDescriptorType 1

[Code]...

View 1 Replies View Related

Ubuntu :: Reading EXIF Data From TIFF Files

Aug 9, 2010

I'm having trouble reading EXIF data from TIFF files. Both 8 bit and 16 bit fail to load EXIF data via eye of gnome and GIMP and I'm not sure why. Neither files downloaded online nor rendered from Bibble 5 seem to work. Using Ubuntu 10.04 64bit and GIMP 2.7.2.

View 2 Replies View Related

Fedora :: Reading A Data From CD / Dvd Is Very Slow After Change Motherboard

Mar 28, 2010

Recently changed my motherboard. The new board has the 790FX/SB750 chipset, and the old board used the 770/SB600 chipset. Prior to the change, I had never had any problems reading/writing CDs or DVDs. I now find that reading a data CD is very slow, it can take up to 30 secs before the icon appears on the desktop and a filer window appears. In my tests thus far, only data CDs written on Linux can always be read, albeit slowly. Data CDs written on Windows are variable. Some are never seen by the system, others may or may not be opened. That is I might be able to read it during one test, and next time I try I can't.

When a CD is not 'seen', there is an initial flurry of activity by the drive, but the drive icon (in "Computer' window) doesn't think a disc is in the drive. I can boot OK off a DVD, and data DVDs wrtten on Linux are opened and read quite fast. I am running Fedora 12 x86_64 with the latest Fedora kernel package (2.6.32.9-70), and the Motherboard bios is the latest available. The CD/DVD drive is a SATA Pioneer DVR-215. I have checked the bios settings, and have tried setting 'storage configuration' to IDE and to AHCI, each giving the same result.

I tried switching the SATA data cable from SATA-3 to SATA-2 and was able to open and read a Windows data CD that had previously not been seen, but subsequent attempts have failed to open and read that CD. I suspect the problem may have something to do with hardware drivers, but I really am guessing about this and have not been able to find any useful information on this.

View 6 Replies View Related

Software :: Block Driver Error While Reading Data

Jan 22, 2010

i am writing sample block driver while reading data i am getting below error

i am not getting what is this error

BUG: sleeping function called from invalid context at kernel/sched.c:4684 in_atomic():0, irqs_disabled():1

Pid: 5364, comm: test_buf Not tainted 2.6.27.42 #1
[<c041f1d4>] __might_sleep+0xae/0xb3
[<c063ae43>] wait_for_common+0x1f/0x117

[Code]....

View 5 Replies View Related

Programming :: Clearing Cache - Reading Data Upon Investigation

Apr 9, 2009

I have been saving an XML file wherein I shall be reading data, if and only if the XML is present on Hard Drive. If same is not present, the code shall generate first and next time it shall simply read and not jump into writing part again and again. The issue that I am facing is, I am deleting the file manually going to that location, and checking whether it is reading the data, upon investigation, I found that it is really reading the data although the file is deleted.

I suspected that there may be some cache issue from where it is picking values, hence it fired the command
"sync; echo 3 > /proc/sys/vm/drop_caches"
But it is still doing the same pattern.

View 2 Replies View Related

Programming :: Displaying I/O Possible When Reading Data From The Serial Port?

Aug 31, 2009

I have got a problem while reading from the serial port. I'm working on iMX-31 board and Eclipse IDE. Whenever I'm trying to read any data through the serial port, it's displaying I/O Possible and the application is being terminated. After reading I'm trying to write this data on a file. Here are the excerpts from the code:

# int main()
{
if (openport()<0)

[code]...

View 7 Replies View Related

Ubuntu Security :: Home Folder - Reading Data Encrypted With Old Version

May 17, 2010

If I wanted to transfer a home folder that was encrypted to another ubuntu computer could I? If I had a separate home partition that was encrypted, but I wanted to upgrade ubuntu to the latest version by doing a clean install is there an easy way so that I can still read the data encrypted with the old version?

View 5 Replies View Related

Fedora :: RAMDISK: EOF While Reading Compressed Data ...Kernel Panic - Unable To Mount Root?

Jul 31, 2010

I was following this tutorial on How install the rpmfusion nvidia drivers in Fedora 13Here's the tutorial:Quote:Originally Posted by leigh123linuxF13 Howto for the rpmfusion nvidia drivers This is a Three-Step Process. If you don't follow all three steps, your install will fail!1. Install the nvidia driver. ( if you have 4Gb of RAM or more you will probably have a PAE kernel [32bit only] so follow the PAE part )For GeForce 6, 7, 8, 9, 200 & 300 series cards

Code:
su
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-

[code]...

View 2 Replies View Related

Software :: Reading And Writing SAC (Seismic Analysis Code) Data Files In Fortran Codes

Dec 2, 2008

I synthesized a seismogram by using Fortran codes, I need plot the synthesized seismogram and the data together, so I can verify the accuracy of code. Now I encounter a question: how to read the SAC data by Fortran code, I have searched some codes on Internet, the details as follow:the velr12a.sac is my data file.

Code:
c read sac file
PROGRAM RSAC
PARAMETER (MAX=1000)
DIMENSION YARRAY(MAX)
CHARACTER*10 KNAME

[Code]....

View 2 Replies View Related

General :: RAID A Drive Already Containing Data?

Aug 13, 2010

I currently have a 1.5TB sata drive connected to my system, with data already on it. In the next few days I am planning to use mdadm to create a raid5 array with another 2 1.5TB drives along with the one I already have. Is it possible to create the raid without losing the data on my current hard drive? Obviously it will be backed up before hand just in case, but it would be nice not to have to restore nearly a TB of data after raid'ing the drives.

View 2 Replies View Related

General :: Saving Data From A Failing Drive?

Dec 29, 2010

An external 3½" HDD seems to be in danger of failing” it's making ticking sounds when idle. I've acquired a replacement drive, and want to know the best strategy to get the data off of the dubious drive with the best chance of saving as much as possible. There are some directories that are more important than others. However, I'm guessing that picking and choosing directories is going to reduce my chances of saving the whole thing. I would also have to mount it, dump a file listing, and then unmount it in order to be able to effectively prioritize directories. Adding in the fact that it's time-consuming to do this, I'm leaning away from this approach.

I've considered just using dd, but I'm not sure how it would handle read errors or other problems that might prevent only certain parts of the data from being rescued, or which could be overcome with some retries, but not so many that they endanger other parts of the drive from being saved. I guess ideally it would do a single pass to get as much as possible and then go back to retry anything that was missed due to errors.

Is it possible that copying more slowly — e.g. pausing every x MB/GB — would be better than just running the operation full tilt, for example to avoid any overheating issues? For the "where is your backup" crowd: this actually is my backup drive, but it also contains some non-critical and bulky stuff, like music, that aren't backups, i.e. aren't backed up. The drive has not exhibited any clear signs of failure other than this somewhat ominous sound. I did have to fsck a few errors recently — orphaned inodes, incorrect free blocks/inodes counts, inode bitmap differences, zero dtime on deleted inodes; about 20 errors in all.The filesystem of the partition is ext3.

View 2 Replies View Related

General :: Data Unreadable On 1 TB Hard Drive?

Jul 19, 2010

I have a Seagate 1TB external USB 2.0 hard disk which contains 740 GB of data. Everytime I connect, it shows the memory occupied and the remaining memory(190GB)..but when i try to access the folders inside they read empty... nothing is seen in the folders.. I am unable to read any data from it or write to it... Same is the case with Windows When I run self-test in Linux ubuntu I get

Reallocated sector count
threshold: 36
Normalized: 61
Worst: 61
value: 6488

Current pending sector count:

Normalized:1
threshold: 0
worst: 1
value:2036

View 1 Replies View Related

General :: Keeping All Data Off The Hard Drive?

Oct 4, 2010

My friend just got a gaming laptop that he won't let anyone else use (his last one got infected when his girlfriend surfed on it for just one hour -- he refuses to use antivirus since he claims he knows how to keep clean, but he doesn't trust others).

Because I used Linux a bit once, I said to him what if I could promise not to make any changes to your hard drive, and I told him that I was pretty sure I could boot to a live cd and then only write files to a usb key. He's actually willing to let me try (I showed him some linux sites I was looking at, and he believes me that we can do this).

1) Is there anything I either MUST do or else must NOT do to make sure I make no changes to his laptop's hard drive? And so that any changes are only going to go on the usb drive I hook up?

2) Since he's got an i7 processor, I assume I should get a version of ubuntu that supports 64 bits, right?

View 6 Replies View Related

Fedora :: CD-ROM Drive Not Reading Contents?

Sep 28, 2009

How do I get my CD-ROM drive to read its contents? I am trying to read a music cd and it won't show in Dolphin or in other OS windows. I am using F10KDE.

View 3 Replies View Related

Hardware :: DVD-RW Drive Not Reading Discs?

Apr 22, 2011

Installed Ubuntu 10.10 this morning from CD, downloaded all the latest updates. But when I put a CD or DVD in the drive, I can't access any of the data. Disk utility recognises that the drive is there, but it says "No medium detected".

Disk utility recognises it at /dev/sr0 so I added a line to fstab

/dev/sr0 /mnt/dvd udf,iso9660 user,noauto,exec 0 0

but made no difference

View 3 Replies View Related

General :: Removing All Hard Drive Data Quickly

Feb 20, 2011

I'm looking for a way to quickly remove all data/partitions/boot records from my hard drives while running linux (distribution is irelevant). There are lots of ways to do this that I know of, but they all have some problems. Here's a list of what I've tried/thought of already. The most obvious is fdisk: Simply delete all the partitions. This usually works just fine and is very quick, but there are times it just doesn't....I'm realy not sure what gets left behind...I remove the MBR as well..but whatever it is, it's in the way. A couple other options are:

dd if=/dev/zero of=/dev/sdb bs=1M
shred -vfz -n 1 /dev/sdb

Both of these approaches are great if you're selling the components and want to make it very difficult for anyone to recover data. The draw-back is they take so very long to run. I've got four 1.5 TB drives that I've been writing zeros to for 2 days now. If you thought watching grass grow or paint drying was boring. A hundred years ago or so, when I was doing tech support for Windows 95 users we used this nifty dos-based debug script to wipe the hard drive. It was sort-of a last resort thing, but it worked beautifully, most of the time. If the customer had already formated, fdisked, fdisk /mbr, reinstalled Windows, but still couldn't get the thing to work, this would clean the drive so you could do a fresh install.

Just in case someone wants this, I'll post it. To use: first boot to some type of DOS environment in which you have the program "debug".

debug
-F 200 L1000 0
-A CS:100
xxxx:0100 MOV AX,301
xxxx:0103 MOV BX,200
xxxx:0106 MOV CX,1
xxxx:0109 MOV DX,80

NOTE: Type 80 for the primary hard drive - HD 0,
or type 81 for the secondary hard drive - HD 1.
In most cases, the primary hard drive is required 80.

xxxx:010C INT 13
xxxx:010E INT 20
xxxx:0110 (Leave this line blank. Press the <Enter> key to continue.)
-G

The message Program terminated normally appears. How to do something like that while running linux?

View 9 Replies View Related

General :: Does Memtet86 Write Any Data To The Hard Drive

Jan 25, 2010

Does memtet86 write any data to the hard drive? or leave any data in memory once the test is complete. If so does turning of the machine or reboot clears the memory?

View 6 Replies View Related

Debian :: Reading An External NTFS USB Drive?

Feb 1, 2010

I've installed libfuse2 and ntfs-3g. Now when I reboot, the drive shows up in fdisk. In Gnome File system, the folder shows up in /media as /media/Storage. I didn't issue the mount command, it went there automatically. In terminal, I can access Storage and read/write to files on it. BUT, if I double-click the folder in Gnome, I get a brief glimpse of all the folders in Storage, then they disappear and the drive unmounts. The desktop icon goes away, and I can't see it when I issue sudo fdisk -l. I can get it back with a reboot. I've tried an entry in /etc/fstab, but that makes no difference. I didn't find anything specific to address this on this forum or after Googling.

View 4 Replies View Related

Debian Multimedia :: KDE Reading Too Much From Network Drive

May 2, 2015

I have a server set up with Samba. On the desktop side I use KDE. I can clearly track intensive smbd activity, being the first on the iotop results page. Another thing is that after reading from the server's HDD, it seems to write on the desktop's SSD. It does this intermittently.I really want to know how can I stop this. It's very annoying and I bet I don't need it since, using previous versions of Debian, I could go well without this activity.

View 2 Replies View Related

Debian Hardware :: The Drive Isn't Reading Discs?

Jan 28, 2010

The drive isn't reading discs. Dmesg says PIO255(auto-tune) requested, PIO4 selected, UDMA33MHz.

An inexpensive drive with many failures noted on Google.

What command would I enter in grub following "ro quiet" to change the mode?

View 5 Replies View Related

Ubuntu :: Badblocks Reading Drive Too Quickly?

Sep 11, 2010

I'm running badblocks on some new disk drives just to be safe before my return period expires. I'm running the command

Code: sudo badblocks -b 4096 -p 4 -c 65536 -w -s /dev/sdb1 on an empty partition taking up the entire device. I am getting the following output:

[Code]...

1) When it gets to the "reading and comparing" phase, it seems to complete in <1s. I see other posts where people say this takes them as long as it took to write to the drive. I don't see any mention of this being quick, so I'm just afraid that badblocks is being denied read access or something.. Anyone familiar with this behaviour?

2) Obviously since it is on a sixth pass, badblocks thought that it found new bad blocks on the second pass (or later). When I check SMART, though, the drive has not re-allocated anything (despite having plenty of spares)... Doesn't this seem odd? Is there some reason why the disk would not step in upon a write fail? In fact, I thought a write fail should be transparent... Which makes me wonder if question 1 (above) is causing this...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved