Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 08-01-2004, 10:44 AM   #1
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?

Al Exlihk
Old 08-01-2004, 06:08 PM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

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:
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:
dd if=/dev/zero of=/tmp/contig bs=1024 count=2048


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 10:28 AM
Hard disk + IDE-SCSI palanisaravanan Linux - Hardware 4 04-21-2004 11:05 AM
use ide-scsi to emulate an ide disk as a scsi disk free_ok_man Linux - Software 1 07-01-2003 05:08 PM
use ide-scsi to emulate an ide disk as a scsi disk free_ok_man Linux - Newbie 1 07-01-2003 03:51 AM
SCSI, IDE or Disk on chip? dsiguy Linux - General 2 02-26-2003 06:45 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:57 PM.

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