|
原文存在http://www.linuxfire.com/home/wrx/doc/install_usb.GB.TXT
OpenBSD 实用技巧之二 / U 盘
by Werix
用linux的弟兄可以用U 盘,而且方法也简单的不能再简单了,可是OpenBSD下呢,
呵呵,昨天晚上坐下来好好琢磨了一下,发现其实比linux还简单啦!用GENERIC就
可以。
首先用dmesg或dmassage(上一章讲过了)看一下,我的机器是这样的
。。。
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
。。。。
在一个shell下用tail:
tail -f /var/log/messages
现在我们把U盘插入,我的机器给了我一下信息:
Nov 10 18:57:56 www /bsd: uhub1 at uhub0 port 1
Nov 10 18:57:56 www /bsd:
Nov 10 18:57:56 www /bsd: uhub1: Prolific Technology Inc. USB Embedded Hub,
class 9/0, rev 2.00/0.01, addr 2
Nov 10 18:57:56 www /bsd: uhub1: 1 port with 0 removable, self powered
Nov 10 18:57:57 www /bsd: umass0 at uhub1 port 1 configuration 1 interface
0
Nov 10 18:57:57 www /bsd:
Nov 10 18:57:57 www /bsd: umass0: Prolific Technology Inc. USB Mass Storage
Device, rev 2.00/0.01, addr 3
Nov 10 18:57:59 www /bsd: umass0: using SFF8070i over BBB-P
Nov 10 18:57:59 www /bsd: scsibus2 at umass0: 2 targets
Nov 10 18:57:59 www /bsd: sd0 at scsibus2 targ 1 lun 0: <rolific, USB Flash
Disk, PROL> SCSI0 0/direct removable
Nov 10 18:57:59 www /bsd: sd0(umass0:1:0): Check Condition on opcode 0x5a
Nov 10 18:57:59 www /bsd: SENSE KEY: Illegal Request
Nov 10 18:57:59 www /bsd: ASC/ASCQ: Illegal Field in CDB
Nov 10 18:57:59 www /bsd: sd0: 250MB, 250 cyl, 64 head, 32 sec, 512 bytes/sec,
512000 sec total
好了,系统认识U盘!!!
下面就是初级玩儿法了:
1. disklabel -E sd0
2. newfs sd0a
3. mount /dev/sd0a /mnt/U
大家看看系统输出的信息把我上面的参数改成您的就行了。
就这么简单,谁说OpenBSD只适合用于防火墙? |
|