Solaris11 U盘的使用

查看发现USB的先决条件

root@oracle:/opt# cfgadm usb
Ap_Id                          Type         Receptacle   Occupant     Condition
usb: No matching library found             //usb的库没找到

cfgadm: Configuration administration not supported: Error: hotplug service is probably not running, please use 'svcadm enable hotplug' to enable the service. See cfgadm_shp(1M) for more details.      //自动发现设备的服务


首先解决第二个错误服务

root@oracle:/opt# svcs -a|grep hot           //查看hotplug这个服务的状态,如果是disabled就改成online
disabled        9月_01 svc:/system/filesystem/zfs/auto-snapshot:daily
disabled        9月_01 svc:/system/filesystem/zfs/auto-snapshot:frequent
disabled        9月_01 svc:/system/filesystem/zfs/auto-snapshot:hourly
disabled        9月_01 svc:/system/filesystem/zfs/auto-snapshot:monthly
disabled        9月_01 svc:/system/filesystem/zfs/auto-snapshot:weekly
disabled          3:07:25 svc:/system/hotplug:default


root@oracle:/opt# svcadm enable hotplug //启动这个服务

root@oracle:/opt# svcs -l hotplug      //查看这个服务的状态
fmri         svc:/system/hotplug:default
name         hotplug daemon
enabled      true
state        online   //状态
next_state   none
state_time   2013年09月12日 星期四 03时07分25秒
logfile      /var/svc/log/system-hotplug:default.log  //日志文件
restarter    svc:/system/svc/restarter:default
contract_id  978
manifest     /lib/svc/manifest/system/hotplug.xml
dependency   require_all/none svc:/system/device/local (online)           //依赖服务
dependency   require_all/none svc:/system/filesystem/local (online)


root@oracle:/opt# cfgadm usb         //再次查看 只剩下这一个错误
Ap_Id                          Type         Receptacle   Occupant     Condition
usb: No matching library found //错误没找到库文件 继续解决


repo的配置此处不再多术,查看solaris11 repo配置

root@oracle:/opt# pkg list|grep usb         //查看usb的包

root@oracle:~# pkg install *usb*    //安装一切关于usb的东西,这儿是测试环境,效率至上

然后重启系统

root@oracle:~# cfgadm usb
Ap_Id                          Type         Receptacle   Occupant     Condition
usb2/1                         usb-device   connected    configured   ok
usb2/2                         usb-hub      connected    configured   ok
usb2/2.1                       unknown      empty        unconfigured ok
usb2/2.2                       unknown      empty        unconfigured ok
usb2/2.3                       unknown      empty        unconfigured ok
usb2/2.4                       unknown      empty        unconfigured ok
usb2/2.5                       unknown      empty        unconfigured ok
usb2/2.6                       unknown      empty        unconfigured ok
usb2/2.7                       unknown      empty        unconfigured ok
usb3/1                         usb-storage  connected    configured   ok   //这个就是U盘了
usb3/2                         unknown      empty        unconfigured ok
usb3/3                         unknown      empty        unconfigured ok
usb3/4                         unknown      empty        unconfigured ok
usb3/5                         unknown      empty        unconfigured ok
usb3/6                         unknown      empty        unconfigured ok

root@oracle:~# iostat -E             //查看所有的磁盘
sd0       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: VMware   Product: Virtual disk     Revision: 1.0  Serial No:  
Size: 64.42GB <64424509440 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
sd1       Soft Errors: 0 Hard Errors: 6 Transport Errors: 0
Vendor: NECVMWar Product: VMware IDE CDR10 Revision: 1.00 Serial No:  
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 6 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
sd2       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: VMware   Product: Virtual disk     Revision: 1.0  Serial No:  
Size: 64.42GB <64424509440 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
sd3       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0         //这个就是U盘
Vendor: Netac    Product: OnlyDisk U186    Revision: PMAP Serial No:  
Size: 8.01GB <8011120640 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 29 Predictive Failure Analysis: 0

root@oracle:~# rmformat
Looking for devices...
     1. Logical Node: /dev/rdsk/c7t0d0p0                    //光驱
        Physical Node: /pci@0,0/pci-ide@7,1/ide@1/sd@0,0
        Connected Device: NECVMWar VMware IDE CDR10 1.00
        Device Type: DVD Reader/Writer
        Bus: IDE
        Size: <Unknown>
        Label: <Unknown>
        Access permissions: <Unknown>
     2. Logical Node: /dev/rdsk/c9t0d0p0              //U盘
        Physical Node: /pci@0,0/pci15ad,790@11/pci15ad,770@3/storage@1/disk@0,0
        Connected Device: Netac    OnlyDisk U186    PMAP
        Device Type: Removable
        Bus: USB
        Size: 7.6 GB
        Label: <Unknown>
        Access permissions: Medium is not write protected.

root@oracle:/media/Oracle_Sola# rmmount -l    //已经挂载了
/dev/dsk/c9t0d0p0:1  rmdisk,rmdisk0,Oracle_Sola,/media/Oracle_Sola


然后进行写入镜像

或使用 usbcopy 实用程序将其刻录到 DVD 上。要使用 usbcopy 实用程序,必须先安装 pkg:/install/distribution-constructor 软件包

root@oracle:/media/Oracle_Sola# pkg install distribution-constructor          
   要安装的软件包:   3
      创建引导环境: 否
创建备份引导环境: 否

下载                             软件包        文件    XFER (MB)  速度
已完成                                3/3         65/65      0.2/0.2  331k/s

阶段                                        项目
正在安装新操作                        128/128
正在更新软件包状态数据库          完成
正在更新映像状态                      完成
正在创建快速查找数据库             完成

root@oracle:~# rmformat           //查看U盘的路经
Looking for devices...
     1. Logical Node: /dev/rdsk/c7t0d0p0
        Physical Node: /pci@0,0/pci-ide@7,1/ide@1/sd@0,0
        Connected Device: NECVMWar VMware IDE CDR10 1.00
        Device Type: DVD Reader/Writer
        Bus: IDE
        Size: <Unknown>
        Label: <Unknown>
        Access permissions: <Unknown>
     2. Logical Node: /dev/rdsk/c9t0d0p0               //这个
        Physical Node: /pci@0,0/pci15ad,790@11/pci15ad,770@3/storage@1/disk@0,0
        Connected Device: Netac    OnlyDisk U186    PMAP
        Device Type: Removable
        Bus: USB
        Size: 7.6 GB
        Label: <Unknown>
        Access permissions: Medium is not write protected.

root@oracle:~# fdisk /dev/rdsk/c9t0d0p0  //分区 此处我不分区,将U盘中现有的分区擦除,如果需要分区的话还是用这个工具进行创建分区

Looking for devices...
     1. Logical Node: /dev/rdsk/c7t0d0p0
        Physical Node: /pci@0,0/pci-ide@7,1/ide@1/sd@0,0
        Connected Device: NECVMWar VMware IDE CDR10 1.00
        Device Type: DVD Reader/Writer
        Bus: IDE
             Total disk size is 3820 cylinders
             Cylinder size is 4096 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          4       Active    Win95 FAT32       0  3819    3820    100

删除第4个分区


###########################

本文由笔者原创

作者:john

转载请注明出处


  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值