From Wiki-UX.info

Wiki-UX / How to access a FAT32 USB Drive
Jump to: navigation, search

How to access a FAT32 USB Drive

Abstract

This article explains a unsupported methods to read and write information on a FAT32 file system on a USB dongle on HP-UX 11i on Integrity (IA64) Hardware.

Unfortunately, efi_cp and efi_ls command are not available for the HP 9000 (PA-RISC) versions of HP-UX 11i Operating Environment.

Contents


Procedure

1. Make sure you have installed the latest USB patches available at the ITRC website (PHKL_39407 or latest and it's dependencies).

2. Connect the USB drive and run the ioscan command to make sure it is detected.

# ioscan –fnkC disk

If the USB drive is not listed, and you have already installed the latest USB drivers, it is probably not supported by the current USB driver implementation.

3. List the files you want to copy.

# efi_ls -d /dev/rdsk/c#t#d#

For example:

# efi_ls -d /dev/rdsk/c0t1d0
FileName                             Last Modified             Size
5992-6361.pdf                          5/ 8/2009              71638
5991-7416.pdf                          4/15/2009            2596548
5992-5788.pdf                          2/10/2009             141830
5992-5843.pdf                          4/ 3/2009            4442021
5992-6271.pdf                          3/19/2009             213032
 
total space 255330304 bytes, free space 247851008 bytes


4. Copy the file(s) to a local system.

# efi_cp -d /dev/rdsk/c#t#d# -u <source_file> <target_file/target_dir>

For example:

# mkdir /usb
 
# efi_cp -d /dev/rdsk/c0t1d0 -u 5992-6361.pdf /usb
 
# cd /usb
 
# ll
total 144
-rw-r--r--   1 root       sys          71638 May  7 14:38 5992-6361.pdf

The USB drive contents can also be dumped into another disk drive or logical volume with enough space and read directly following the previous steps.

# dd if=/dev/rdsk/c#t#d# of=/dev/rdsk/<target_disk> bs=512k

For example:

# dd if=/dev/rdsk/c0t1d0 of=/dev/rdsk/c2t0d0 bs=512k

This will override any files you may have on the targe backing storage.

Reference

Authors

This page was last modified on 17 July 2010, at 15:43. This page has been accessed 1,882 times.