Re: Run hdparm on USB drive? (need s/n)



On 11 Apr 2006 15:03:04 -0700, usenet@xxxxxxxxxxxxxxx
<usenet@xxxxxxxxxxxxxxx> wrote:
I have two identical USB harddrives. I need to know when they have been
swapped. The most reliable way (IMHO) is to query the drive's serial
number.

Normally I would obtain this information with something like "hdparm -I
/dev/hdX"

My USB drive is /dev/sde; the hdparm command fails with this message:

HDIO_DRIVE_CMD(identify) failed: Invalid argument

(the command works fine for /dev/sda - /dev/sdd, which are internal
SATA drives in a RAID array, and, of course, it works fine for
/dev/hda).

Is it possible to determine the serial number of a USB harddrive in
Linux?

Look in /proc/bus/usb/devices.


--
The wind doth taste so bitter sweet,
Like Jaspar wine and sugar,
It must have blown through someone's feet,
Like those of Caspar Weinberger. -- P. Opus
.



Relevant Pages

  • Re: File - partially Read-Only and partially Write-Only
    ... non-writeability is a hardware function not a software one). ... already in existence in linux and hence posted my above query. ... my query was oriented with that. ...
    (comp.arch.embedded)
  • RE: constructing a http request using LWP..
    ... but i have to do this on linux. ... With this you don't have to worry about constructing the query string. ... is it possible to automate the login and log out say from yahoo mail ...
    (perl.beginners)
  • Re: [Info-ingres] Creating roles on 3.0.2
    ... Did you run this query as $ingres.... ... I recently built myself a new P4 3GHz Linux server and fall off my chair in disbelief everytime I do a compileapp. ... I am executing the query "CREATE ROLE abc WITH PASSWORD = 'xyz';" on iidbdb, but any attempt to access a db using the role results in: ... Either the specified role does not exist, or the specified password is invalid. ...
    (comp.databases.ingres)
  • Re: command-line search engine query
    ... But I'll assume Jens is right and you meant to query for, let's say, ... "saturn," and see where NASA came up in the results. ... luckily we /know/ what platform you use: Linux. ... This fetches the Google results page for a query on "saturn". ...
    (comp.programming)
  • Re: Turning off your hard drive
    ... > computer's hard drive in Linux? ... In Windows, you can set the ... If you have hdparm on your machine you can put something like:- ... Email is spam trap try baskitcaise at gmx dot co dot uk ...
    (comp.os.linux.hardware)