Results 1 to 10 of 10

Thread: Errors accessing a flash module (emulates an IDE hard drive)

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    5

    Errors accessing a flash module (emulates an IDE hard drive)

    I have a bootable Knoppix CD-ROM and I am able to boot from it.
    My system has a "PQI IDE Secured DiskOnModule" installed in the primary IDE slot (hda).
    This device is a flash module that emulates a 256Mb IDE hard drive.
    The module contains turn-key NAS software.
    When I boot Knoppix, I see many errors when trying to access the module:

    hda: read_intr: status=0x51 { DriveReady SeekComplete Error }
    hda: read_intr: error=0x04 { DriveStatusError }
    hda: read_intr: status=0x51 { DriveReady SeekComplete Error }
    hda: read_intr: error=0x04 { DriveStatusError }
    hda: read_intr: status=0x51 { DriveReady SeekComplete Error }
    hda: read_intr: error=0x04 { DriveStatusError }
    [...]
    ide0: reset: success

    When I try and mount the filesystem, I get more errors:

    % mount -t ext3 -r /dev/hda3 /mnt
    hda: read_intr: status=0x51 { DriveReady SeekComplete Error }
    hda: read_intr: error=0x04 { DriveStatusError }
    hda: read_intr: status=0x51 { DriveReady SeekComplete Error }
    hda: read_intr: error=0x04 { DriveStatusError }
    end_request: I/O error, dev 03:03 (hda), sector 2
    EXT3-fs: unable to read superblock

    I know for sure the module has 3 ext3 filesystems on it: hda1, hda2, hda3. I *am* able to mount hda1 and hda2. Any advice as to how to resolve the problems with hda3 would be greatly appreciated.

    Cheers,
    Nico

  2. #2
    Junior Member
    Join Date
    Mar 2005
    Posts
    3

    Errors accessing Flash modules

    When accessing Flash or Thumb drives in Knoppix, normally all it takes is to type:

    mount /dev/sda? (replace ? with the appropriate number, usually 1) and do not attempt to give it a mount point.

    Knoppix usually assigns a mount point based on the device name (i.e. mount /dev/sda1 would get /mnt/sda1)

    Try this and good luck.

  3. #3
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    The errors look like being due to dma. Try the nodma cheatcode.

  4. #4
    Junior Member
    Join Date
    Mar 2005
    Posts
    5
    Thanks for the suggestion. I gave it a try and it didn't work.

    I think the point is, that while this module is a flash memory device, it physically plugs into the IDE connector and looks to the BIOS like a regular IDE hard drive.

    When Knoppix boots, it correctly identifies the device as an IDE hard drive (hda) with 3 partitions: hda1, hda2, hda3

    I am able to mount the first two and inspect the contents:
    # mount -t ext3 -o ro /dev/hda1 /mnt/hda1
    # ls -la /mnt/hda1
    [...]
    # mount -t ext3 -o ro /dev/hda2 /mnt/hda2
    # ls -la /mnt/hda2
    [...]

    No problems with those. It's just when I try to access /dev/hda3 that I'm seeing the I/O errors.

    I have also requested information from the module maker but since their module is a proprietary product they are not keen to give me support on accessing the contents this way. Perhaps they have done something "special" to the filesystem on /hda3? Funny thing is, when I boot from the module (normal operation), I am able to confirm that /dev/hda3 on the module is mounted as an ext3 filesystem! Can't figure out why I can't mount it from Knoppix!

  5. #5
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Hmm, what does sudo fdisk -l /dev/hda say?

  6. #6
    Junior Member
    Join Date
    Mar 2005
    Posts
    5
    I tried "nodma" but the hda read_intr errors still occur.

  7. #7
    Junior Member
    Join Date
    Mar 2005
    Posts
    5
    # fdisk -l /dev/hda
    Disk /dev/hda: 262 MB, 262144000 bytes
    16 heads, 32 sectors/track, 1000 cylinders
    Units = cylinders of 512 * 512 = 262144 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 1 61 15600 83 Linux
    /dev/hda2 * 62 908 216832 83 Linux
    /dev/hda3 909 984 19456 83 Linux


    I found some more documentation about the IDE module. Apparently being a "secured" type, this means a section of it is indeed encrypted. This is very likely to be the hda3 partition, since I have no trouble mounting hda1 and hda2. This explains why I cannot mount it. I need to find out how to "open" or "unlock" the module before that partition is mountable.

  8. #8
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Well, the encryption certainly explains not being able to browse it. Looks like it has 3 zones and hda3 is the protected zone so you need to unlock it with a password: http://www.hdnet.co.jp/rise/DownLoad...Manual_1_3.pdf

  9. #9
    Junior Member
    Join Date
    Mar 2005
    Posts
    5
    Thanks Markus, I already found the same datasheet!

    Yes, it is the same PQI module we are talking about.
    The make of the NAS product has used the PQI SDOM as a way to protect as well as deliver their NAS software.
    They have organized the module into 3 zones just as the datasheet suggests:
    /dev/hda1 is the USER zone, (fully open & read/write, mountable)
    /dev/hda2 is the ROM zone (read-only zone, can only be mounted ro, contains the linux boot & root partition)
    /dev/hda3 is the PROTECTED zone (can't read or write, thus unmountable).

    Now the real fun starts! Reverse engineering how to unlock it.

    The thing is, when the machine boots from the module, it must call the PQI SDOM library function sdom_p_password() to unlock the PROTECTED zone somewhere in the boot sequence. The reason I am sure of this is that when I inspect /etc/fstab, there is a normal entry in there to mount /dev/hda3. This obviously succeeds, so this means that by the time the kernel has reached the point where the filesystems are mounted, the P zone has been unlocked. The keys and password must be somewhere in the ROM zone filesystem, because the system boots turnkey - there is no place where I am prompted to enter any password. Besides, the P zone is protecting the NAS software, not my personal data per se.

    I spent a few hours running nm and strings on libraries and kernel modules etc. trying to find evidence where the call to the PQI library might be... in vain. Anyway I am more familiar with Solaris systems and my linux knowledge is light. I wonder where you would locate the code to call the unlock function? Would they have built a special linux kernel and placed it in there? Would they have placed it into a loadable kernel module? I wonder....

  10. #10
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Sorry, but I haven't a clue of where they might have inserted the passkey or call to the pqi file. I'd start looking at /etc/rc* directories for filenames like bootmisc.sh that knoppix uses for misc stuff at bootup, and /etc/modules* for a special kernel module.
    As you possibly know, linux first boots the kernel read only to a initial ramdisk where it loads necessary drivers so that normal bootup can follow, although as the protected zone isn't root, it's hard to say if unlocking is done at the initial or normal bootup.

Similar Threads

  1. Accessing hard drive (NTFS - Windows XP) from USB Knoppix??
    By tecnoL in forum MS Windows & New to Linux
    Replies: 3
    Last Post: 04-10-2007, 11:56 AM
  2. Copy file from hard drive to usb flash drive
    By PaulKraemer in forum General Support
    Replies: 1
    Last Post: 05-08-2006, 04:49 PM
  3. Installing Knoppix 3.8 to Your Hard Drive (Flash)
    By Irongeek in forum Hdd Install / Debian / Apt
    Replies: 10
    Last Post: 05-30-2005, 07:56 AM
  4. Accessing my Hard Drive with Freeduc-CD
    By matthew629 in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 12-16-2004, 04:50 AM
  5. cloop and cp errors on hard drive install
    By daryl in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 12-07-2004, 08:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray picture

Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray

$39.99



Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A

$64.00



20TB 7200 RPM SATA III Internal 3.5

20TB 7200 RPM SATA III Internal 3.5" White Label Hard drive

$349.99



HGST Ultrastar HUS726040AL5210 4TB 7200RPM SAS 12Gb/s Enterprise HDD picture

HGST Ultrastar HUS726040AL5210 4TB 7200RPM SAS 12Gb/s Enterprise HDD

$41.00



Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE picture

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE

$68.99



Seagate Exos ST2000NX0253 HDD 2TB SATA 7.2K 2.5

Seagate Exos ST2000NX0253 HDD 2TB SATA 7.2K 2.5" 512b/s

$58.00



Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5

Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5" Enterprise HDD

$339.00



Lot of 2 HP 4TB / 128MB SATA 7.2K RPM 3.5

Lot of 2 HP 4TB / 128MB SATA 7.2K RPM 3.5" Hard Drive MB4000GCWDC /ST4000NM0033

$125.00



Toshiba DT01ACA100 1 TB 3.5

Toshiba DT01ACA100 1 TB 3.5" SATA III 3.5 in Desktop Hard Drive

$24.99



DELL 2TB Enterprise HDD (7200RPM, 3.5

DELL 2TB Enterprise HDD (7200RPM, 3.5", SATA III, 128MB Cache) HUS722T2TALA600

$49.95