admin管理员组

文章数量:1563229

1.概述

在以下情况下可能需要使用U盘引导来安装F5系统:
1. 由于某种原因系统无法从硬盘引导加载时;
2. 需要将现有系统格盘推倒重来的安装F5系统时;

此文档将介绍如何使用F5 VE来制作F5系统安装引导用U盘。我将使用安装在VMware Workstation 12 下的F5 VE来进行下文中所涉及到的所有操作。理论上,由于F5基于Red Hat Linux,所以下文中所涉及的操作应该也适用于其他Linux发行版。但之前在最小化安装的CentOS上测试时,发现缺少一些必要的依赖库。当时由于赶时间,就没有再手动解决依赖的问题了。

操作环境及所需:
1. 可运行的F5(不论是硬件设备,还是安装在虚拟机中的F5 VE)
2. F5系统镜像文件
3. U盘1个


2.制作可引导U盘

2.1 运行F5 VE系统


2.2 插入U盘

Step1:选择“虚拟机”–> 选择“可移动设备”–> 选择刚刚插入的U盘 –> 选择“连接”


Step 2:确认U盘已被正确插入系统
使用命令fdisk -l查看U盘是否已经被系统识别:

[root@localhost:Active:Standalone] dvd # fdisk -l

Disk /dev/sda: 134.2 GB, 134217728000 bytes
255 heads, 63 sectors/track, 16317 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204799+   b  W95 FAT32
Partition 1 does not end on cylinder boundary.
/dev/sda2              26          28       16384   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3              28       16317   130845118+  8e  Linux LVM

Disk /dev/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdd: 8103 MB, 8103395328 bytes
250 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 15500 * 512 = 7936000 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1        1021     7912749+  83  Linux

我当前插入的U盘容量为8GB,且文件系统为Linux,可以看到,系统已经检测到了U盘。


2.3 将F5系统镜像放入F5 VE中

有很多种方法可以将F5系统镜像放入F5 VE中,我这里只列举最简单的两种方法:
1. 为F5 VE添加拟光驱,然后将F5系统镜像插入VM虚拟光驱;
2. 使用命令scp将F5镜像文件上传到F5 VE中。


方法1:将F5系统镜像插入VM虚拟光驱

Step 1:选择“虚拟机”–>“可移动设备”–>“CD/DVD”–>“设置”


Step 2:选择“浏览”–> 选择所需的F5系统镜像文件 –> 选择“打开”;


Step 3: 查看DVD光驱是否已被挂载
使用命令mount查看DVD光驱是否已被挂载:

[root@localhost:Active:Standalone] dvd # mount
/dev/mapper/vg--db--sda-set.1.root on / type ext3 (rw,noatime)
none on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)
/dev/mapper/vg--db--sda-set.1._config on /config type ext3 (rw,noatime)
/dev/mapper/vg--db--sda-set.1._usr on /usr type ext3 (ro,noatime)
/dev/mapper/vg--db--sda-set.1._var on /var type ext3 (rw,noexec,noatime)
/dev/mapper/vg--db--sda-dat.share.1 on /shared type ext3 (rw,noatime)
/dev/mapper/vg--db--sda-dat.log.1 on /var/log 

本文标签: 系统安装