lk2.4 - problems with secure USB

From: Daniel Miller (dan_at_invalid.com)
Date: 05/28/04


Date: 28 May 2004 11:05:33 -0500

I'm trying to access a secure-USB device on my Linux 2.4.21 system.
WindowsXP can read this device just fine, but Linux seems to have problems;
the partition table just displays as complete garbage, in both fdisk and
/proc/partitions.

After doing some research, I figured out what the problem is; normally one
reads sector 0 off a disk device to get the MBR, which contains the
partition tables. However, when you read sector 0 off this secure disk,
what you actually receive is the BOOT sector of partition 1, not the actual
MBR. When I read this sector and parsed what *should* be the partition
table, I got the same results as fdisk.

Since Windows can read the partition table successfully, there must be some
accepted way to access that data, but Linux (at least at version 2.4.21)
doesn't know the tricks, and neither do I!!

I have two questions:

1. If I get a distribution which has kernel 2.6, will it know what to do
with secure USB drives??

2. Is there somewhere where *I* can learn how to deal with these drives??
Learning to read the partition table will be a good start, but ultimately I
need to be able to actually read/write all the sectors of the device, since
I have to do disk duplication as part of my task here.

Can anybody help me with these issues??

            Dan Miller



Relevant Pages

  • Re: Incompetent? was Re: Using Linux to Recover bad NTFS drive.
    ... the ability to nondestructively clone a partition or even an entire ... Back in Windows or BartPE you run SectorSpy to dump the raw ... sector data into text file on a new drive for forensic ... > every linux sysadmin should know about. ...
    (comp.os.linux.misc)
  • Re: Incompetent? was Re: Using Linux to Recover bad NTFS drive.
    ... the ability to nondestructively clone a partition or even an entire ... Back in Windows or BartPE you run SectorSpy to dump the raw ... sector data into text file on a new drive for forensic ... > every linux sysadmin should know about. ...
    (comp.os.linux.hardware)
  • Re: Removing Linux from a dual boot system
    ... That will remove your boot menu and load XP ... The Linux install will still be there. ... the Linux partition in Windows as you please. ... since the boot sector may contain sector numbers that address a particular ...
    (comp.os.linux.misc)
  • Re: ReiserFS, two oddities
    ... > firmware refused to reallocate during reads, writes, and S.M.A.R.T. ... but it is within the quantity of 1K Linux blocks that the partition ... Why is the sector unreadable when read from inside the partition? ... That I/O error may well be generated by Linux, ...
    (Linux-Kernel)
  • USB flash drive
    ... I bought a lexar jumpdrive secure. ... Linux (2.4.x kernel)) that can divide the drive into two part: ... if I want to reformat the secure part (partition) without ...
    (comp.os.linux.setup)