lk2.4 problems with secure USB

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


Date: 27 May 2004 18:08:53 -0500

We are developing a USB tester, running on Linux 2.4.21. We recently have
received some 'secure USB' devices, which do some quirky things with
partition tables and the internal controller. Windows XP can read these
devices with no problem. Linux 2.4, however, is completely baffled...
/proc/partitions shows, for example, the following:

   8 0 63360 sda 2971 186309 378560 176870 0 0 0 0 0 87160 176870
   8 1 272218546 sda1 984 61912 125792 22070 0 0 0 0 0 10680 22070
   8 2 269488144 sda2 0 0 0 0 0 0 0 0 0 0 0
   8 3 699181456 sda3 0 0 0 0 0 0 0 0 0 0 0
   8 4 10668 sda4 0 0 0 0 0 0 0 0 0 0 0

The size of the main drive is more-or-less correct, but you can see that
the sizes of the partitions are thousands of times larger than the total
device. Also, I used fdisk to look at the partitions, and it also shows
complete garbage.

In doing some research, I've found that if I read sector 0 on these
devices, I don't get the MBR (with the partition tables in it), but rather
I get the first boot sector, and the partition-table offsets into that
sector (446, etc) are just pointing to text messages.

What can I do to resolve this issue??

If I switch to a kernel 2.6 distribution, is it going to understand these
secure devices better?? If not, what can I do to get correct partition
data from these devices?? If Windows can do it, it must be a solvable
problem, but I don't know enough so far to manage it...

            Dan Miller



Relevant Pages

  • Re: Windows multiboot (aaargh!)
    ... >> The Linux boot floppy is a bit more tricky. ... So I tried adding cfdisk to a spare Debian Woody boot ... > I reduced all the partition sizes by a third. ...
    (Debian-User)
  • Re: Linux, XP, Win2003 Server multi-boot
    ... Go to PC magazine's web site and do a search on "partitioning for linux" to see articles and reviews about partitioning philosophy and tools. ... Tools are now available in many bootable CD based Linux distributions to resize the C: partition of your disk drive to make room for Linux. ... I finally got the new machine - it came with one of those 'recovery' disks - and a 5 gig recovery partition that isn't supposed to be deleted. ... Once I feel I have everything in order - always lose something when I get a new computer - I'll format that disk and install Linux & Win2003 on it I guess. ...
    (alt.os.linux.redhat)
  • Re: Panasonic HD Recorders - What disk format?
    ... The earlier part of this is more about what may be Linux partitioning, ... might be possible to present the recorder with a larger disk already ... Most DOS/Windows utilities such as FDisk, Ghost, and Partition Magic Pro ... prompts to format it. ...
    (alt.os.linux)
  • Disc Partitioning for Multi-Boot (long)
    ... We need to get the data off of the NTFS partition. ... But the next question is how to partition the drive so Windows and Linux ... The fdisk supplied with Windows 98 cannot manage that disc. ... How shall I make a multi-boot system out of that machine, ...
    (Fedora)
  • Re: Installing Linux on Windows dual boot machine
    ... Ideally, should Linux be installed before my data partition, after it, ... and a Linux installation; ... Windows will not see the Linux installation at all. ...
    (alt.os.linux)