LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-01-2004, 11:44 AM   #1
alexlihk
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Rep: Reputation: 0
How a IDE partition can emulate a SCSI disk?


Dear Experts,

I have an application which request 2 HDs to run and at lease 1 is SCSI. However, I have 1 IDE disk only. Is there any tools to emulate SCSI disk by a IMG file or a IDE Partition?

thx.
Al Exlihk
 
Old 08-01-2004, 07:08 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
USB mass storage devices use the usb-scsi emulation layer. You might get somewhere with that.

In general, I doubt it; SCSI is more complex than IDE/ATAPI as I understand it, though there is a relationship between the two.

If the application is looking for a /dev/sda file, but treats it as a block device (i.e. it doesn't do any low-level SCSI manipulation of it, like trying to eject it), then you can create a symbolic link instead. As root:
Code:
cd /dev/
rm -f sda
ln -s sda hda2
That will link the /dev/hda2 partition on the first hard disk to the second. This may not work with devfs (a virtual /dev filesystem) but you can do something similar if you're using that (see the devfs documentation). You can also link contiguous files to it. You can create an (e.g.) 2Mb contiguous file with:
Code:
dd if=/dev/zero of=/tmp/contig bs=1024 count=2048
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a IDE Partition as a SCSI disk? alexlihk Linux - Hardware 1 08-02-2004 11:28 AM
Hard disk + IDE-SCSI palanisaravanan Linux - Hardware 4 04-21-2004 12:05 PM
use ide-scsi to emulate an ide disk as a scsi disk free_ok_man Linux - Software 1 07-01-2003 06:08 PM
use ide-scsi to emulate an ide disk as a scsi disk free_ok_man Linux - Newbie 1 07-01-2003 04:51 AM
SCSI, IDE or Disk on chip? dsiguy Linux - General 2 02-26-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration