在主机上挂载 USB 设备后我们查看系统当前磁盘设备:

1. [root@FCoE ~]# fdisk -l

2.

3. Disk /dev/sda: 43.0 GB, 42991616000 bytes

4. 255 heads, 63 sectors/track, 5226 cylinders

5. Units = cylinders of 16065 * 512 = 8225280 bytes

6. Sector size (logical/physical): 512 bytes / 512 bytes

7. I/O size (minimum/optimal): 512 bytes / 512 bytes

8. Disk identifier: 0x00032735

9.

10.   Device Boot      Start         End      Blocks   Id  System

11. /dev/sda1   *           1          17      131072   83  Linux

12. Partition 1 does not end on cylinder boundary.

13. /dev/sda2              17         147     1048576   82  Linux swap / Solaris

14. Partition 2 does not end on cylinder boundary.

15. /dev/sda3             147        5227    40803328   83  Linux

16.

17. Disk /dev/sdb: 2147 MB, 2147483648 bytes

18. 255 heads, 63 sectors/track, 261 cylinders

19. Units = cylinders of 16065 * 512 = 8225280 bytes

20. Sector size (logical/physical): 512 bytes / 512 bytes

21. I/O size (minimum/optimal): 512 bytes / 512 bytes

22. Disk identifier: 0x00000000

23.

24. Disk /dev/sdb doesn't contain a valid partition table

ocp认证在新分区 sdb1 上创建文件系统:

1. [root@FCoE ~]# mkfs.ext3 /dev/sdb1

2. mke2fs 1.41.12 (17-May-2010)

3. Filesystem label=

4. OS type: Linux

5. Block size=4096 (log=2)

6. Fragment size=4096 (log=2)

7. Stride=0 blocks, Stripe width=0 blocks

8. 131072 inodes, 524112 blocks

9. 26205 blocks (5.00%) reserved for the super user

10. First data block=0

11. Maximum filesystem blocks=536870912

12. 16 block groups

13. 32768 blocks per group, 32768 fragments per group

14. 8192 inodes per group

15. Superblock backups stored on blocks:

16.        32768, 98304, 163840, 229376, 294912

17.

18. Writing inode tables: done

19. Creating journal (8192 blocks): done

20. Writing superblocks and filesystem accounting information: done

21.

22. This filesystem will be automatically checked every 24 mounts or

23. 180 days, whichever comes first.  Use tune2fs -c or -i to override.

ocp认证挂载新的文件系统:

1. [root@FCoE ~]# mount /dev/sdb1 /mnt/

ocp认证通常我们通过备份硬盘的 MBR 来备份硬盘分区表:

1. [root@FCoE ~]# dd if=/dev/sda of=/mnt/sda.mbr bs=512 count=1

2. 1+0 records in

3. 1+0 records out

4. 512 bytes (512 B) copied, 0.000777948 s, 658 kB/s

ocp认证现在我们来写零硬盘分区表来实现类似分区表被破坏的结果:

1. [root@FCoE ~]# dd if=/dev/zero of=/dev/sda bs=1 count=64 skip=446 seek=446

2. 64+0 records in

3. 64+0 records out

4. 64 bytes (64 B) copied, 0.00160668 s, 39.8 kB/s

ocp认证查询硬盘 sda 上的分区信息,发现其已不包含任何分区: 1. [root@FCoE ~]# fdisk -l   2.  3. Disk /dev/sda: 43.0 GB, 42991616000 bytes   4. 255 heads, 63 sectors/track, 5226 cylinders   5. Units = cylinders of 16065 * 512 = 8225280 bytes   6. Sector size (logical/physical): 512 bytes / 512 bytes   7. I/O size (minimum/optimal): 512 bytes / 512 bytes   8. Disk identifier: 0x00032735   9.  10.   Device Boot      Start         End      Blocks   Id  System   11.  12. Disk /dev/sdb: 2147 MB, 2147483648 bytes   13. 255 heads, 63 sectors/track, 261 cylinders   14. Units = cylinders of 16065 * 512 = 8225280 bytes   15. Sector size (logical/physical): 512 bytes / 512 bytes   16. I/O size (minimum/optimal): 512 bytes / 512 bytes   17. Disk identifier: 0xcdd48395   18.  19.   Device Boot      Start         End      Blocks   Id  System   20. /dev/sdb1               1         261     2096451   83  Linux  当主机硬盘分区表丢失了之后,再次启动后 GRUB 会因找不到配置文件而进入命令行模式。

linux自动挂载fcoe存储,在sdb上挂载USB 设备相关推荐

  1. linux redhat9 u盘,LINUX(redhat9)下安装JDK(虚拟机VM上挂载U盘)

    LINUX(redhat9)下安装JDK(虚拟机VM上挂载U盘) 2010-07-11 21:24 1.首先,我们去http://www.doczj.com/doc/11c2bbedb8f67c1cf ...

  2. linux普通用户libusb访问usb,linux – 使用libusb-1.0作为非root用户访问USB设备

    我试图在RHEL5上作为非root用户与USB设备连接.该设备是一个GPIO接口(其文档可在 http://www.xdimax.com/sub20/sub20.html找到),它使用libusb-1 ...

  3. linux自动挂载fcoe存储,刀箱服务器上部署集群模式CloudOS挂载FCoE存储方法

    1.通过iLO口检查,发现Boot to FCoE Target一项是enable的: 3.检查刀箱VC配置,确认该CloudOS节点的FCoE HBA卡的MAC地址: 4.进到该节点后台,用ip a ...

  4. linux开启网卡fcoe功能,在Redhat上配置FCoE的方法

    今天分享一下如何在REDHAT下配置FCOE. 第一步:在redhat的镜像中,以我用的redhat 6.1为例,在packages文件夹中找到fcoe-utils-1.0.18-2.el6.x86_ ...

  5. linux系统给串口权限,让ubuntu串口和USB设备不用root权限访问

    原理 ubuntu采用udev管理设备,因而插入设备的权限可以由udev的rules文件来定义. 该文件位于:/etc/udev/rules.d/目录下. 所有规则文件以.rules作为扩展名.由于这 ...

  6. linux下usb设备节点名不固定,解决Linux下USB设备节点ttyUSB名不固定的问题,生成固定USB转串口设备节点...

    解决Linux下USB设备节点ttyUSB名不固定的问题,生成固定USB转串口设备节点 2018-09-19 http://blog.sina.com.cn/s/blog_8b58097f0102wx ...

  7. Linux下的硬件驱动——USB设备(上)(驱动配置部分)

    USB设备越来越多,而Linux在硬件配置上仍然没有做到完全即插即用,对于Linux怎样配置和使用他们,也越来越成为困扰我们的一大问题.本文着力从Linux系统下设备驱动的架构,去阐述怎样去使用和配置 ...

  8. Linux Ubuntu 命令行文件系统的创建,挂载,卸载

    我在刚开始操作的时候找不到/dev/sdb(即使插入了U盘,也没出现) 经过翻阅网站,才知道要创建新的硬盘() 其余默认就行 文件系统的创建 # 1.查看新增硬盘的信息 sudo fdisk -l # ...

  9. Linux下的硬件驱动——USB设备

    想起当初对于破安卓手机,挂在系统上可是费了好些劲,今偶遇USB驱动开发,收集备用,哪天一生气,说不定也写一个linux下的手机驱动,类似于91手机助手的,也不用配置了. Linux下的硬件驱动--US ...

最新文章

  1. Anaconda:虚拟环境
  2. Machine Learning | (4) Scikit-learn的分类器算法-逻辑回归
  3. docker 卸载镜像_Centos7 安装 Docker
  4. Ubuntu 安装LAMP ...
  5. Bugku杂项(二)
  6. C++11命名空间的using说明
  7. oracle增加字段为主键自增_在 Oracle 中设置自增列
  8. 深圳很适合创业,无论小白造梦,或是落魄重生
  9. 【Bug】MQ消息与事务提交
  10. mysql之解决查询表时区分大小写的问题
  11. elcipse 编译cocos2d-x android
  12. android的开机动画,设置安卓开机动画、开机logo
  13. android下拉菜单刷新,Android开发之头部悬浮的上拉加载,下拉刷新的列表
  14. 蓝墨云班课计算机网络答案,基于蓝墨云班课的 《计算机网络与应用》实验课 教学改革探究...
  15. 为何甲骨文裁员,偏偏要选中国人?
  16. 项目实战:51单片机无线音乐门铃设计资料 五首歌曲自由切换 (含实物 图纸 程序 仿真)
  17. Android——在线计算器完整代码
  18. 12 月浏览器市场份额:量子火狐后劲不足
  19. (更新时间)2021年5月28日 商城高并发秒杀系统(.NET Core版) 01-系统设计介绍
  20. 吴忠军 - 素描

热门文章

  1. 为什么同步的StringBuffer从来都不是一个好主意
  2. 使用Hibernate的JPA 2.0标准查询
  3. Apache Shiro第3部分–密码学
  4. MySQL命令之mysqldump -- 数据库备份程序
  5. MyEclipse的build、clean、publish、clean(redeploy)的区别
  6. inkscape生成g代码_三点二. 量子对抗生成网络 (Quantum GAN)
  7. python网管系统_IT外包网管服务,Python密度聚类算法-DBSCAN实践
  8. 【OpenGL从入门到精通(二)】绘制一个点
  9. 一文掌握 C 智能指针的使用
  10. linux 4.14.2编译,vmware中linux内核2.6.14.4编译全过程_linux教程