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


 
Thread Tools Search this Thread
Operating Systems SCO how to access data in a pen drive in sco openserver 6
# 8  
Old 06-26-2009
Java

/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
}
# 9  
Old 07-10-2009
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 ... Smilie
# 10  
Old 07-10-2009
Did you see /temp in your df list ?
Code:
df -v

Make new dir and use it
Code:
mkdir /some
mount /dev/dsk/c4b0t0d0pa  /some

My usb was fat32.
This method my usb mounted okay.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SCO

Sco unix 5.0 copy file to pen drive

I have a server unix Sco 5.0 and copy some backup files to flopy drive using command "Tar", but i like copy this files to pen drive, is possible ? my know about Sco is less. Tks (1 Reply)
Discussion started by: ger2112
1 Replies

2. Red Hat

making pen drive bootable

Anyone can plz tell me how to make pendrive bootable.unetbootin dont have option for red hat (0 Replies)
Discussion started by: shamapraveen
0 Replies

3. SCO

Recover data from failed Hard disk in SCO OpenServer 5.06

One hard disk fail to mount (/dev/data). I had run "fsck /dev/data" then some error occured "unrecoverable error reading SCSI Disk 1 dev 1/104". I need to recover data from disk. please help. (1 Reply)
Discussion started by: rakeshkumar9919
1 Replies

4. Linux

Not able to remove virus from a pen drive

Hello Friends, My pendrive (FAT32 filesystem) consist of following files+viruses. -rwxr-xr-x 1 chinmay root 0 2010-03-10 01:29 autorun.inf dr-xr-xr-x 2 chinmay root 4096 2010-03-09 23:51 Docs -rwxr-xr-x 1 chinmay root 4726162 2010-03-08 15:02 java_ee_sdk-5_03-javadocs.zip... (4 Replies)
Discussion started by: catchchinu1
4 Replies

5. BSD

FreeBSD pen drive issue....

Hi there, I am using freebsd 7.0 and I am facing a lot of issues with it. The cd installed fine. I opted for the gnome desktop and tht too installed (though the refresh rates were wrong and the resloution got messed up). After some configurations the desktop was working fine. Then came the... (5 Replies)
Discussion started by: jedidiah
5 Replies

6. SCO

SCO Openserver Release 5 and HP VS160 Tape Drive

Hi, Does anyone know if a HP VS160 Tape drive will work with SCO Openserver Release 5? If so what driver would it use? alad, cha? Thanks John (3 Replies)
Discussion started by: jfd7000
3 Replies

7. SCO

SCO hard drive with data - No SCO computer

Situation - i have an IDE hard drive from server apparently running SCO last used in 2003. No access to computer it was formerly in. I need to access the drive to pull off data files from a billing/scheduling program. I have no SCO machine or access to one atm. Have some limited Linux... (3 Replies)
Discussion started by: lordlars1
3 Replies

8. Debian

linux on 128MB pen drive?

hello, I want to install minimal linux on 128MB pen drive. distro is debian. what all should i need? (2 Replies)
Discussion started by: yogesh_powar
2 Replies

9. UNIX for Dummies Questions & Answers

USB pen drive support

Hello, I need information or tooling for using my USB pen drive (DANE-ELEC) in a unix environment. Until now I only get the "format window" in the unix machine but after giving OK for running the format, it never stops and I have to stop it manually. Seems that what I need is format my... (0 Replies)
Discussion started by: Argento73
0 Replies

10. UNIX for Advanced & Expert Users

Magneto-Optical drive for SCO Openserver 5.0.5

Hi, I tried to install Magneto-Optical (MO) drive Fujutsu to COMPAQ Proliant ML350 with SCO Openserver 5.0.5. Harddisk and MO are connected to Adaptec UW-SCSI-3 (driver ad160). During boot process system shows me that MO is connected to host adapter 1, bus 0, SCSI ID 1 and LUN 0. But when I... (2 Replies)
Discussion started by: yurist
2 Replies
Login or Register to Ask a Question