[問題]請問如何將ide的光碟機模擬成scsi

歡迎提問 debian desktop 相關問題,何謂 desktop ? 舉凡您日常生活會用到的部份,如上網 ( www 、 bbs ..) 、程式設計、繪圖...等等。 通常以 X Window 環境底下問題為主。

[問題]請問如何將ide的光碟機模擬成scsi

文章necromancer » 週二 9月 10, 2002 11:38 am

小弟我最近在玩linux下的燒錄,查過資料--->xcdroast0.96之後,把ide的支援拿掉了,也就是說不管啥牌的cdrom,一律找不到,howto裡說要把ide模擬成scsi,這個地方我不太了解,有人可以說明一下嗎?
necromancer
可愛的小學生
可愛的小學生
 
文章: 50
註冊時間: 週一 9月 09, 2002 10:03 pm

Re: [問題]請問如何將ide的光碟機模擬成scsi

文章jesse.sung » 週二 9月 10, 2002 12:44 pm

necromancer 寫:小弟我最近在玩linux下的燒錄,查過資料--->xcdroast0.96之後,把ide的支援拿掉了,也就是說不管啥牌的cdrom,一律找不到,howto裡說要把ide模擬成scsi,這個地方我不太了解,有人可以說明一下嗎?

在 kernel config 裡的說明, 他是說要加 "hdx=scsi" 的 boot parameter, 其中 hdx 就是你想要模擬成 SCSI 磁碟的那台..... 不過要確定您的 kernel 有 enable "SCSI emulation supprt", "SCSI support", 以及 "SCSI generic support"
我自己沒有用過啦, 不過希望這些對您有幫助 :)
頭像
jesse.sung
程式開發組
程式開發組
 
文章: 654
註冊時間: 週三 9月 04, 2002 9:43 am

re:[問題]請問如何將ide的光碟機模擬成scsi

文章阿信 » 週二 9月 10, 2002 2:56 pm

可以在/etc/modules中加入ide-scsi的字串,

重開機就自動會將ide光碟機模擬成scsi

/dev/hda -> /dev/scd0
/dev/hdb -> /dev/scd1

以此類推。
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

re:[問題]請問如何將ide的光碟機模擬成scsi

文章necromancer » 週一 9月 16, 2002 10:56 am

嗯, 還是找不到
我說明一下好了,我的燒錄器是scsi介面的,cdrom則是ide介面的
我用lilo開機,所以我在lilo.conf加入
append="hdc=ide-scsi"

在/etc/modules.conf加入

option ide-cd ignore='hdc'

在/etc/rc.d/rc.local加入
insmod ide-scsi

不知道有什麼錯,開機後,scsi-ide的mod也有載入
只是打cdrecord -scanbus
還是只有燒錄器一台而已
necromancer
可愛的小學生
可愛的小學生
 
文章: 50
註冊時間: 週一 9月 09, 2002 10:03 pm

re:[問題]請問如何將ide的光碟機模擬成scsi

文章阿信 » 週二 9月 17, 2002 6:05 pm

dmseg沒有寫出錯誤訊息嗎?
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

re:[問題]請問如何將ide的光碟機模擬成scsi

文章necromancer » 週二 9月 17, 2002 8:02 pm

沒有耶,這是我最感到奇怪的地方


我列出我的dmesg:


Linux version 2.4.18-6mdk (quintela@bi.mandrakesoft.com) (gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)) #1 Fri Mar 15 02:59:08 CET 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000fff0000 (usable)
BIOS-e820: 000000000fff0000 - 000000000fff3000 (ACPI NVS)
BIOS-e820: 000000000fff3000 - 0000000010000000 (ACPI data)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
hm, page 0fff0000 reserved twice.
On node 0 totalpages: 65520
zone(0): 4096 pages.
zone(1): 61424 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=linux-nonfb ro root=309 devfs=mount
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
Detected 1002.290 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 1998.84 BogoMIPS
Memory: 255244k/262080k available (1170k kernel code, 6448k reserved, 332k data, 260k init, 0k highmem)
Dentry-cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer-cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: Before vendor init, caps: 0183fbff c1c7fbff 00000000, vendor = 2
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After vendor init, caps: 0183fbff c1c7fbff 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0183fbff c1c7fbff 00000000 00000000
CPU: Common caps: 0183fbff c1c7fbff 00000000 00000000
CPU: AMD Athlon(tm) Processor stepping 02
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb420, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 0: assuming transparent
PCI: Using IRQ router VIA [1106/0686] at 00:07.0
Applying VIA southbridge workaround.
PCI: Disabling Via external APIC routing
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16)
Starting kswapd
VFS: Diskquotas version dquot_6.5.0 initialized
devfs: v1.10 (20020120) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
vesafb: framebuffer at 0xd0000000, mapped to 0xd0800000, size 65536k
vesafb: mode is 640x480x8, linelength=640, pages=10
vesafb: protected mode interface info at c000:ede0
vesafb: scrolling: redraw
Console: switching to colour frame buffer device 80x30
fb0: VESA VGA frame buffer device
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1
ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:DMA
hda: Maxtor 5T030H3, ATA DISK drive
hdc: CD-ROM 50X, ATAPI CD/DVD-ROM drive
hdd: AOpen Inc. DVD-ROM DVD-1040 PRO 0125, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 60030432 sectors (30736 MB) w/2048KiB Cache, CHS=3736/255/63, UDMA(33)
hdc: ATAPI 50X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
hdd: ATAPI DVD-ROM drive, 512kB Cache, UDMA(33)
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 p10 p11 p12 >
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Uncompressing...........done.
Freeing initrd memory: 272k freed
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
SCSI subsystem driver Revision: 1.00
PCI: Found IRQ 10 for device 00:09.0
IRQ routing conflict for 00:07.2, have irq 11, want irq 10
IRQ routing conflict for 00:07.3, have irq 11, want irq 10
PCI: Sharing IRQ 10 with 00:08.0
scsi0 : AdvanSys SCSI 3.3G: PCI Ultra: IO 0xE000-0xE00F, IRQ 0xA
Vendor: TEAC Model: CD-W512SB Rev: 1.0C
Type: CD-ROM ANSI SCSI revision: 02
reiserfs: checking transaction log (device 03:09) ...
Warning, log replay starting on readonly filesystem
Using r5 hash to sort names
ReiserFS version 3.6.25
Freeing unused kernel memory: 260k freed
Real Time Clock Driver v1.10e
Adding Swap: 329292k swap-space (priority -1)
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 3, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
reiserfs: checking transaction log (device 03:0c) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
MSDOS FS: IO charset big5
MSDOS FS: Using codepage 950
MSDOS FS: IO charset big5
MSDOS FS: Using codepage 950
MSDOS FS: IO charset big5
MSDOS FS: Using codepage 950
MSDOS FS: IO charset big5
MSDOS FS: Using codepage 950
reiserfs: checking transaction log (device 03:0a) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
reiserfs: checking transaction log (device 03:0b) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
8139too Fast Ethernet driver 0.9.24
PCI: Found IRQ 10 for device 00:08.0
IRQ routing conflict for 00:07.2, have irq 11, want irq 10
IRQ routing conflict for 00:07.3, have irq 11, want irq 10
PCI: Sharing IRQ 10 with 00:09.0
eth0: RealTek RTL8139 Fast Ethernet at 0xd4b7d000, 00:50:fc:31:ff:6d, IRQ 10
eth0: Identified 8139 chip type 'RTL-8139C'
eth0: Setting half-duplex based on auto-negotiated partner ability 0000.
Creative EMU10K1 PCI Audio Driver, version 0.18, 03:23:33 Mar 15 2002
PCI: Found IRQ 9 for device 00:0a.0
emu10k1: EMU10K1 rev 8 model 0x8027 found, IO at 0xe400-0xe41f, IRQ 9
ac97_codec: AC97 codec, id: 0x5452:0x4123 (TriTech TR A5)
ide0: Speed warnings UDMA 3/4/5 is not functional.
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
nvidia: loading NVIDIA NVdriver Kernel Module 1.0-2960 Tue May 14 07:41:42 PDT 2002
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 203M
agpgart: Detected Via Apollo Pro KT133 chipset
agpgart: AGP aperture is 64M @ 0xe0000000
NVRM: AGPGART: VIA Apollo KT133 chipset
NVRM: AGPGART: aperture: 64M @ 0xe0000000
NVRM: AGPGART: aperture mapped from 0xe0000000 to 0xd5ce1000
NVRM: AGPGART: mode 4x
NVRM: AGPGART: allocated 16 pages
necromancer
可愛的小學生
可愛的小學生
 
文章: 50
註冊時間: 週一 9月 09, 2002 10:03 pm

re:[問題]請問如何將ide的光碟機模擬成scsi

文章阿信 » 週二 9月 17, 2002 9:46 pm

奇怪,沒看到ide-scsi的訊息呢,necromance兄用的是mdk阿,

我的debian只要modprobe ide-scsi就可以了,能否將/etc/modules中的ide-scsi順序寫到比scsi卡的上面。
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

re:[問題]請問如何將ide的光碟機模擬成scsi

文章necromancer » 週三 9月 18, 2002 6:42 pm

沒關係,信兄
我再去潛一陣子水
把原因找出來後再報告

研究中.....
necromancer
可愛的小學生
可愛的小學生
 
文章: 50
註冊時間: 週一 9月 09, 2002 10:03 pm

re:[問題]請問如何將ide的光碟機模擬成scsi

文章jesse.sung » 週六 9月 21, 2002 6:41 pm

necromancer 寫:在/etc/rc.d/rc.local加入
insmod ide-scsi

請問您有載入 sg 和 sr_mod 嗎?
頭像
jesse.sung
程式開發組
程式開發組
 
文章: 654
註冊時間: 週三 9月 04, 2002 9:43 am


回到 debian desktop

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客