Unable to send SCSI commands to USB Drive


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to send SCSI commands to USB Drive
# 15  
Old 02-27-2015
i tried doing that but failed same result can u help me?

Code:
(void) memset((char *)&cmd1, 0, sizeof(cmd1));

# 16  
Old 02-27-2015
You are still missing to allocate space. This should be done with the malloc or the calloc command.
# 17  
Old 02-27-2015
i did as u said the Segmentation Error is gone now. ioctl still returns -1

Code:
cmd1 =  malloc(550);

A similar post was found on this forum on which u replied but the post thread was short. just posting the link so that it may ring any bells in your mind?


ictl error - ENOTTY


i also have the same number 3 as return result of open() command and ioctl returns -1

Last edited by danish2012; 03-02-2015 at 01:42 AM.. Reason: more information was gathered that may help the responder in better ways to respond and help me
# 18  
Old 03-04-2015
I ran a SCSI Inquiry based command with the same USCSI header files and was able to communicate and get VID and PID of the USB but SCSI read and write IOCTL fails can u hint a possible reason?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unable to mount USB Pen drive on my Server

Hello Gurus!! Very recently i tried to mount a USB pen drive onto my solaris 10 (X4170 model) server. As i understand, in ideal scenarios it should get mounted automatically, but it did not happen. Neither anything is shown in "iostat -En" output or "rmformat -l" about the pen drive. I also... (10 Replies)
Discussion started by: EmbedUX
10 Replies

2. Hardware

SCSI drive

Hi i ahve a SCSI drive that it use to work but now is not working. The Sun machine can not read the drive. My question is there is any other way to get the data back from the SCSI drive? I think if i replace the chip board on teh SCSI drive it might help to just buy a new Board but there is any... (4 Replies)
Discussion started by: percel
4 Replies

3. Hardware

Help with scsi tape drive problem

I've had a scsi hard drive, scsi tape drive, and cd rom working off an adaptec 29160 controller. Everything worked great until a few days ago. I begin getting tar format errors (running sco 5.0.6) on the tape drive and occasionally the entire system would hang up while trying to access data on... (0 Replies)
Discussion started by: powwm
0 Replies

4. SCO

mounting USB floppy drive /Flash drive in OSR 6.0

Can anybody help me out to mount USB flash /floppy drive in sco openserver 6.0 . (5 Replies)
Discussion started by: sureshdrajan
5 Replies

5. SCO

Installing SCSI Tape drive

Hello, I'm having some issues with installing SCSI tape drive on SCO 5.0.6 hardware config shows the following adapters %adapter 0xE800-0xE8FF 10 - type=alad ha=0 bus=0 id=7 fts=sto %adapter 0x0170-0x0177 15 - type=IDE ctlr=secondary dvr=wd %adapter - 3 - ... (3 Replies)
Discussion started by: ananth_ak
3 Replies

6. Filesystems, Disks and Memory

Dead SCSI drive

I have 2 dead SCSI drives. Can anyone tell me a good way to repair the disks??? Please! (1 Reply)
Discussion started by: disturbe_d
1 Replies

7. Filesystems, Disks and Memory

The best partitioning schem for a 250GB Sata hard drive & a 75GB SCSI hard drive

Hi I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)
Discussion started by: sirbijan
0 Replies

8. Filesystems, Disks and Memory

Adding new SCSI drive

DG Aviion (intel h/w) R4.20MU04 I plugged two new drives into my SCSI array, and need instructions on how to configure the filesystems...I've worked on Solaris (on Sun HW) boxes in the past, never has the pleasure of doing it on a DG. 1) Must I reboot for the system to "see" the drives? When... (0 Replies)
Discussion started by: iwasbornin1970
0 Replies

9. UNIX for Dummies Questions & Answers

scsi drive addon

Adding another scsi drive, no name, it came with the instruction manual in japanese, so of no use. We need to format it, it only shows up as 14 gigs, when we know it is a 40 gig drive, but have no specs on the cyl, etc. Combing through faqs, one of my coworkers found a blurb that unix won't... (1 Reply)
Discussion started by: kymberm
1 Replies

10. UNIX for Dummies Questions & Answers

Scsi tape drive.

I'm running SCO OS 505 on a Compaq proliant 1600, and my tape drive will just not work. It was working properly and whent to Sh?ts when I tried to get the cd rom working. I have uninstalled any configured tape drive and rebooted and then configured a tape drive and rebooted still nothing. I'm... (4 Replies)
Discussion started by: kikkin
4 Replies
Login or Register to Ask a Question