how to access data in a pen drive in sco openserver 6

Does anybody know the commands to access the data from a pen drive in a SCO Openserver 6.
What are the parameters to the mount command for accessing the USB port:confused:

man usb.and also run usbprobe.

I have read the man pages for usb and usbprobe .
usbprobe detects the Pen drive on bus # 5 and lists it as Mass Storage .
What do I do next .. how do I access the Pen drive .
What command makes the content of the Pen drive accessible
Thanks

Someone in the Legend mailing list just pointed me to a command I'd never heard of. Anyone can run it, but only root will get any output from it:

getlclfsdev

Once you know that it's /dev/dsk/whatever, you can either mount that and make a filesystem on it, or tar to it, or whatever else you wish.

Most pen drives are formated FAT so the dosXX commands work. OS6 automatically mounts USB drives using the next available disk device nodes. So if you have one disk try dosdir /dev/dsk/1s1 or higher if you have more disks already (2s1, 3s1 etc). To copy the files use doscp.

Hi BEvans ,
The server (SCO Openserver 6) does not automatically mount the pen drive on the USB . However the light in the USB glows and is active .
The getlclfsdev command only shows the user filesystems mounted

The usbprobe gives ---
Path - Address - Description
----------------------------
+++++++ BUS #0
0 - 1 - HUB "UHCI Root Hub"
+++++++ BUS #1
0 - 1 - HUB "UHCI Root Hub"
+++++++ BUS #2
0 - 1 - HUB "EHCI Root Hub"
3 - 2 - Mass-Storage "N/A"

The problem now is the device name for this USB which can be mounted .

Thanks ,

The USB drive is automounted as a device, not a file system. To see what device node was created just look at the dates of the device nodes. The most recently added nSX where n is the new device, and X is a bunch of nodes for different partitions etc. If you added disks before this might not work so quickly trying a few of the 1sX devices might be needed.

ls /dev/dsk/?s?

The USB drive probably came formatted as a FAT file system. The dosXXX commands can access a FAT file system directly with no need to mount it as a file system. So if 2nX was the set of device nodes created when you first inserted the USB drive commands like the following should work. If you have one disk then 1s1 is the where the flash drive is.

dosdir /dev/dsk/2s1

doscp /dev/dsk/2s1:BACKUP.ZIP BACKUP.ZIP

Myself I usually use zip and unzip to bundle up files for easy transfer and viewing on windows machines from/to the flash drive.

/sbin/sdiconfig -l

  • grep usb_msto line
  • output example
    2:0,7,0: HBA usb_msto,1
    • interesting value is first value = 2
      id=2
  • in this example device to mount is
    mount /dev/dsk/c${id}b0t0d0pa /mnt

and example
fdisk /dev/rdsk/c${id}b0t0d0p0

ksh/bash function:

usb="/usb"

mountusb()
{
oifs="$IFS"
IFS=":"
read devid xx <<EOF
$(/sbin/sdiconfig -l | grep usb_msto )
EOF
IFS="$oifs"
[ "$devid" = "" ] && echo "no usb disk" >&2 && return 1
print "devid:$devid"
mkdir $usb 2>/dev/null
mount /dev/dsk/c${devid}b0t0d0pa $usb
stat=$?
[ "$stat" != 0 ] && echo "can't mnt" >&2 && return 1
df -v
return $stat
}

Hi ,

The output of the command on my system is as below ...

sco1:/root:>/sbin/sdiconfig -l
0:0,7,0: HBA : (mpt,2) LSI Logic 1030 10329
0,0,0: DISK : MAXTOR ATLAS10K5_147SCAJNZH
0,1,0: DISK : MAXTOR ATLAS10K5_147SCAJNZH
0,2,0: DISK : MAXTOR ATLAS10K5_147SCAJNZH
0,3,0: DISK : MAXTOR ATLAS10K5_147SCAJNZH
1:0,7,0: HBA : (mpt,1) LSI Logic 1030 10329
2:0,2,0: HBA : (ide,1) Generic IDE/ATAPI
0,0,0: CDROM : HL-DT-STRW/DVD GCC-H21N 1.00
4:0,7,0: HBA : (usb_msto,2) USB USB HBA
0,0,0: DISK : KingstonDataTraveler2.0 1.00

sco1:/root:>mount /dev/dsk/c4b0t0d0pa /temp
UX:dosfs mount.svr5: ERROR: /dev/dsk/c4b0t0d0pa is not an dosfs file system,
or /temp is busy.

The pen drive device doesn't mount ... not able to figure out ... :confused:

Did you see /temp in your df list ?

df -v

Make new dir and use it

mkdir /some
mount /dev/dsk/c4b0t0d0pa  /some

My usb was fat32.
This method my usb mounted okay.