精華區beta FreeBSD 關於我們 聯絡資訊
keywords: external CD-RW, interface IEEE 1394, cdrecord, gcombust, freebsd 4.9 前言: usb 一直是我心中的痛處,慘痛的經驗告訴我買 usb 裝置時要特別留意 freebsd 有沒有支援/或設定上有沒有問題。(usb printer, 隨身碟, etc. ) 搜尋了 mailing-list 也發現有蠻多人有相關的問題。這裡提供一個外接 燒錄機燒錄的分享。其實燒錄的原理大同小異,就是弄成 iso 然後燒錄 statue 大大的 FreeBSD Chinese How-to 中也有說明 http://netlab.cse.yzu.edu.tw/~statue/freebsd/zh-tut/mkisofs.html 硬體: laptop: IBM X31 華碩外接式 DVD/CD-RW SCB-1608 (interface: usb2.0 & IEEE1394) 平台: FreeBSD 4.9 1. check IEEE 1394 是否正確運作 #less dmesg | grep firewire firewire0: <IEEE1394(FireWire) bus> on fwohci0 sbp0: <SBP2/SCSI over firewire> on firewire0 if_fwe0: <Ethernet over FireWire> on firewire0 firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) 2. 燒錄 (a) 製作 iso 映像檔,並利用 cdrecord 直接燒錄 映像檔製作請看 /usr/ports/sysutils/mkisofs 的說明 (b) 使用 cdrecord backend 的前端的圖形介面軟體 如: gcombust 等 在 daemon school 裡頭,也有前輩在 FreeBSD 5.0 上面燒錄的經驗 http://freebsd.sinica.edu.tw/phpBB2/viewtopic.php?t=3869 因為燒錄的參數太多了,這裡就不一一羅列出來,且使用 圖形介面的 gcombust 算是蠻好上手的,同時 gcombust 也有支援 超燒的功能(當然硬體也要支援)。 大致上燒錄就用 cd9660 格式,可以直接選取檔案或 iso 等格式 速度記得要選取正確,在 burn 的分頁中,如果不想試燒,記得不要選取 -dummy (/usr/local/bin/cdrecord -v -eject -pad speed=16 -waiti dev=0,0,0 -multi ) (c) 其他 燒錄音樂 cd 等我並沒有測試過,不過應該是都 ok 的 (d) gcombust screenshot 直接選取 data file 的格式 http://homepage.ntu.edu.tw/~b89605222/FreeBSD/img/gcombust01.jpg
燒錄的頁面,如果不要試燒,記得要把 dummy test run 勾掉,device=0,0,0 (Advanced: device 那邊留空, 抓圖的時候忘了弄掉那個 "/dev/cd0") http://homepage.ntu.edu.tw/~b89605222/FreeBSD/img/gcombust02.jpg
燒錄前準備 http://homepage.ntu.edu.tw/~b89605222/FreeBSD/img/gcombust03.jpg
燒錄中,verbose 的模樣 http://homepage.ntu.edu.tw/~b89605222/FreeBSD/img/gcombust04.jpg
fixating cd http://homepage.ntu.edu.tw/~b89605222/FreeBSD/img/gcombust05.jpg
Preference 中,記得scsi-bus:0, target:0, lun:0 http://homepage.ntu.edu.tw/~b89605222/FreeBSD/img/gcombust06.jpg
(e) 問題 gcombust 似乎無法偵測光碟長度? 使用 usb 2.0 要在 kernel 中增加 options ehci 但是目前無 5-branch 的機器,所以還沒能夠測試。 在 usb 1.1 下面,還在測試中 #dmesg | grep cd0 umass0: ASUSTek Design USB Storage Device , rev 2.00/11.06, addr 5 cd0 at umass-sim0 bus 0 target 0 lun 0 cd0: <ASUS SCB-1608 1.0> Removable CD-ROM SCSI-0 device cd0: 650KB/s transfers cd0: Attempt to query device size failed: NOT READY, Logical unit is in process of becoming ready Appendix. dmesg 中相關的東西: fwohci0: BUS reset fwohci0: node_id=0xc800ffc1, gen=2, CYCLEMASTER mode firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me) firewire0: bus manager 1 (me) fwohci0: BUS reset fwohci0: node_id=0xc800ffc1, gen=3, CYCLEMASTER mode firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me) firewire0: bus manager 1 (me) firewire0: New S400 device ID:0001a3a0500020f8 firewire0: split transaction timeout dst=0xffc0 tl=0x1 state=3 node2: resp=60 addr=0x400 cd0 at sbp0 bus 0 target 0 lun 0 cd0: <ASUS SCB-1608 1.0> Removable CD-ROM SCSI-0 device cd0: 50.000MB/s transfers cd0: cd present [1 x 2048 byte records] 如果有錯還請各位前輩指教 :) -- 等那一天想不開灌 5-current 的時候再來測試 usb 2.0 :D -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.250.151