免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: yousiliang
打印 上一主题 下一主题

[SCO UNIX] 在sco unix5.0.X下如何用u盘代替软盘 [复制链接]

论坛徽章:
0
41 [报告]
发表于 2008-06-27 14:39 |只看该作者
那按楼上的说法,我应该怎么做呢.最少要给个原理吧.

论坛徽章:
0
42 [报告]
发表于 2008-06-30 10:05 |只看该作者
怀疑是你usb2.0没有关闭,或者直接在/etc/default/boot文件的DEFBOOTSTR参数设置加上disable=usb_ehci ( ehci,为usb2.0增强型usb控制接口),再试一试.usb_ehci 和usb_uhci(通用usb主机控制接口)中断vec 应该不同,有的机器主板usb控制芯片只有usb_ohci(开放式主机控制接口)就不会有问题.

如:

usb_ehci       -        5   -  PCI bus=0 dev=29 func=7
usb_uhci       -       11   -  PCI bus=0 dev=29 func=0
usb_uhci       -       10   -  PCI bus=0 dev=29 func=1
usb_uhci       -        9   -  PCI bus=0 dev=29 func=2
usb_uhci       -       11   -  PCI bus=0 dev=29 func=3
disk           -        -   -  type=S ha=0 id=0 lun=0 bus=0 ht=usb_msto unit=0
Sdsk           -        -   -  cyls=31488 hds=2 secs=32 unit=0
Sdsk-0         -        -   -  Vnd= Prd=USB FLASH DRIVE Rev=PMAP

[ 本帖最后由 yousiliang 于 2008-6-30 10:27 编辑 ]

论坛徽章:
0
43 [报告]
发表于 2008-06-30 19:31 |只看该作者
我的机器配置:HP DC7100 CMT,安装的是SCO UNIX 5.0.6

本人的/etc/default/boot文件
DEFBOOTSTR=hd(40)unix swap=hd(41) dump=hd(41) root=hd(42) disable=usb_ehci

第二次做mkdev hd 时报如下错误:
invoke mkdev hd -u for a detailed usage message.

                1) Add a hard disk to an IDE controller
                2) Add a hard disk to a SCSI controller
                3) Add a hard disk to an IDA controller (EISA)
                4) Add a hard disk to a  USB controller

Enter 1, 2, 3, 4 or enter 'q' to quit: 4

The Host Adapter parameters will be automatically configured

What is the USB Device ID for this device?
Select 0-15, or h for help, or q to quit: 0

What is the LUN of this device?
Press <Return> to use the default: 0
Select 0-7, or h for help, or q to quit: 0

Disk already configured as disk number 1 (/dev/dsk/1s0)

During installation you may choose to overwrite all
or part of the present contents of your hard disk.

Do you wish to continue? (y/n)
The hard disk installation program will now invoke /etc/fdisk.
Entering 'q' at the following menu will exit /etc/fdisk,
and the hard disk installation will continue.

If you wish to exit the entire installation at this menu,
press the <DEL> key.

/etc/fdisk: cannot open /dev/rdsk/1s0 for reading: No such device or address (er
ror 6)
/etc/fdisk failed.





#hwconfig -h
cd-rom         -        -   -  type=IDE unit=0 ctlr=sec cfg=mst dvr=Srom->wd
disk      0x1f0-0x1f7  14   -  type=W0 unit=0 cyls=9729 hds=255 secs=63
usb_uhci       -       11   -  PCI bus=0 dev=29 func=0
usb_uhci       -        5   -  PCI bus=0 dev=29 func=1
usb_uhci       -       10   -  PCI bus=0 dev=29 func=2
usb_uhci       -       11   -  PCI bus=0 dev=29 func=3
cd-rom         -        -   -  type=S ha=0 id=0 lun=0 bus=0 ht=usb_msto unit=1
Sdsk-add       -        -   -  type=S ha=0 id=0 lun=1 bus=0 ht=usb_msto unit=1

[ 本帖最后由 unixzyy 于 2008-6-30 19:41 编辑 ]

论坛徽章:
0
44 [报告]
发表于 2008-07-01 08:11 |只看该作者
# fdisk -f /dev/rdsk/1sC

        1. Display Partition Table
        2. Use Entire Disk for UNIX
        3. Use Rest of Disk for UNIX
        4. Create UNIX Partition
        5. Activate Partition
        6. Delete Partition
        7. Create Partition

Enter your choice or 'q' to quit: 1

Current Hard Disk Drive: /dev/rdsk/1sC

        +-------------+----------+-----------+---------+---------+---------+
        | Partition   | Status   | Type      |   Start |     End |    Size |
        +-------------+----------+-----------+---------+---------+---------+
        | 4           | Active   | DOS (32)  |       1 |   61749 |   61749 |
        +-------------+----------+-----------+---------+---------+---------+

Total disk size: 61920 tracks (3 reserved for masterboot and diagnostics)

Press <Return> to continue


#hwconfig -h
udi            -        -   -  UDI environment
adapter        -        -   -  ha=0 type=usb_msto UDI SCSI HBA
cd-rom         -        -   -  type=IDE unit=0 ctlr=sec cfg=mst dvr=Srom->wd
disk      0x1f0-0x1f7  14   -  type=W0 unit=0 cyls=9729 hds=255 secs=63
usb_uhci       -       11   -  PCI bus=0 dev=29 func=0
usb_uhci       -        5   -  PCI bus=0 dev=29 func=1
usb_uhci       -       10   -  PCI bus=0 dev=29 func=2
usb_uhci       -       11   -  PCI bus=0 dev=29 func=3
disk           -        -   -  type=S ha=0 id=0 lun=0 bus=0 ht=usb_msto unit=0
Sdsk           -        -   -  cyls=3936 hds=64 secs=32 unit=0 fts=d
Sdsk-0         -        -   -  Vnd=aigo Prd=Miniking Rev=8.07

这个显示与楼主的一样,应该是成功的.可我用doscp与dosdir命令不成功

[ 本帖最后由 unixzyy 于 2008-7-1 08:27 编辑 ]

论坛徽章:
0
45 [报告]
发表于 2008-07-01 08:34 |只看该作者
不好意思,终于成功了.感谢楼主哦.
# dosdir /dev/dsk/1sC
Volume in drive /dev/dsk/1sC is 新加卷
Directory of /dev/dsk/1sC:/

File not found

---------------
另:本人用联想1G的U盘,朗科U盘都需要重新拨插.后来根据楼主提示直接买了APACER一GU盘成功实现.感谢楼主.

[ 本帖最后由 unixzyy 于 2008-7-2 16:31 编辑 ]

论坛徽章:
0
46 [报告]
发表于 2008-07-25 09:07 |只看该作者
:wink: 收藏了,正在为买不到软驱发愁呢,谢谢LZ及各位兄弟了.

论坛徽章:
0
47 [报告]
发表于 2008-08-22 16:20 |只看该作者
我也是hp7100 cmt的机器,执行hwconfig -h结果如下

device          address    vec  dma  comment
======          =======    ===  ===  =======
kernel             -         -   -   rel=3.2v5.0.6 kid=2000-07-27
cpu                -         -   -   unit=1 family=15
cpuid              -         -   -   unit=1 vend=GenuineIntel tfms=0:15:4:1
fpu                -        13   -   unit=1 type=80387-compatible
pci           0xcf8-0xcff    -   -   am=1 sc=1 buses=65
PnP                -         -   -   nodes=0
clock              -         -   -   type=TSC/2992500036Hz
serial        0x3f8-0x3ff    4   -   unit=0 type=Standard nports=1 fifo=yes
console            -         -   -   unit=vga type=0 num=12 scoansi=1 scroll=50
parallel      0x378-0x37a    7   -   unit=0
bcme0              -         5   -   chip=BCM5751 mem=F0400000 addr=00:13:21:d3:
b8:25
disk          0x1f0-0x1f7   14   -   type=W0 unit=0 cyls=9729 hds=255 secs=63

为什么没有usb设备,连cd-rom都没有,为什么?还有楼上几位的结果都有sdisk一列,那是什么?请指教。

[ 本帖最后由 tdhi 于 2008-8-22 16:23 编辑 ]

论坛徽章:
0
48 [报告]
发表于 2008-08-25 10:37 |只看该作者
好了,多谢楼主。

论坛徽章:
0
49 [报告]
发表于 2008-12-08 21:01 |只看该作者
真是好东西!
但是还是有问题请教各位,为什么我一用copy /dev/dsk/1sC /dev/fd0,机器就停在那里不动了呢?用cp也不行,另外就是U盘能识别了,但mount不行,跟前面有一位说的是一样的情况.

论坛徽章:
0
50 [报告]
发表于 2008-12-08 21:48 |只看该作者
为什么mount时提示Memory fault-core dumped?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP