Sponsored Content
Operating Systems SCO how to access data in a pen drive in sco openserver 6 Post 302329218 by kshji on Friday 26th of June 2009 08:25:19 AM
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
}
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
MSDOSFS(5)						      BSD File Formats Manual							MSDOSFS(5)

NAME
msdosfs -- MS-DOS file system SYNOPSIS
options MSDOSFS DESCRIPTION
The msdosfs driver will permit the FreeBSD kernel to read and write MS-DOS based file systems. The most common usage follows: mount -t msdosfs /dev/ada0sN /mnt where N is the partition number and /mnt is a mount point. Some users tend to create a /dos directory for msdosfs mount points. This helps to keep better track of the file system, and make it more easily accessible. It is possible to define an entry in /etc/fstab that looks similar to: /dev/ada0sN /dos msdosfs rw 0 0 This will mount an MS-DOS based partition at the /dos mount point during system boot. Using /mnt as a permanent mount point is not advised as its intention has always been to be a temporary mount point for floppy and ZIP disks. See hier(7) for more information on FreeBSD direc- tory layout. SEE ALSO
mount(2), unmount(2), mount(8), mount_msdosfs(8), umount(8) AUTHORS
This manual page was written by Tom Rhodes <trhodes@FreeBSD.org>. BSD
October 1, 2013 BSD
All times are GMT -4. The time now is 12:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy