Kylin V10使用优盘(含虚拟机使用优盘)

通用性好,建议优盘格式化为FAT32格式使用,插入USB口后,fdisk -l 识别磁盘,mount即可使用。
FAT32格式的缺点是单个存储文件不能超过4G。
现在的优盘通常格式化为NTFS格式,Kylin V10需要安装ntfs-3g.x86_64.rpm 包才可以使用(安装盘内有该文件、配好YUM源安装)。

一、优盘格式化为FAT32格式使用步骤:

[root@kylin101 ~]# fdisk -l

Disk /dev/sdh: 7.22 GiB, 7757398016 bytes, 15151168 sectors
Disk model: DataTraveler 2.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0f3bc40e

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdh1        2048 15151134 15149087  7.2G  c W95 FAT32 (LBA)

[root@kylin101 ~]# mount /dev/sdh1 /mnt
[root@kylin101 ~]# ls -l /mnt

total 334236
drwxr-xr-x 2 root root     4096 Sep  7  2022 '??'
drwxr-xr-x 3 root root     4096 Dec  1  2021  Android
drwxr-xr-x 2 root root     4096 Jun 19  2023  Archive
-rwxr-xr-x 1 root root      673 Jan 23  2023  autoinstall.lst
drwxr-xr-x 3 root root     4096 Oct 28  2022  cl
-rwxr-xr-x 1 root root    16124 Feb  3  2022  commet.tct.txt
-rwxr-xr-x 1 root root 14447295 Apr 20  2022  com.ucbrowser.tv_1.7.1.505_liqucn.com.apk
-rwxr-xr-x 1 root root 17708447 Jun 12  2023  django3.2.19.zip
-rwxr-xr-x 1 root root    75585 Nov  4  2022 'dminit SYSDBA.pdf'

二、优盘格式化为NTFS格式使用步骤

首先查找ntfs-3g RPM包。
[root@kylin101 ~]# yum search ntfs

Last metadata expiration check: 103 days, 1:31:21 ago on Sun 04 Feb 2024 02:56:51 PM CST.
========================================================================================== Name & Summary Matched: ntfs ===========================================================================================
ntfs-3g.x86_64 : Linux NTFS userspace driver

安装ntfs-3g RPM包。
[root@kylin101 ~]# yum install ntfs-3g

Last metadata expiration check: 16:26:16 ago on Fri 17 May 2024 04:28:49 PM CST.
Dependencies resolved.
======================================================================================================================================================================================================
 Package                                      Architecture                                Version                                                 Repository                                     Size
======================================================================================================================================================================================================
Installing:
 ntfs-3g                                      x86_64                                      2:2022.5.17-1.ky10                                      ks10oscd                                      527 k

Transaction Summary
======================================================================================================================================================================================================
Install  1 Package

Total size: 527 k
Installed size: 1.7 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                              1/1
  Installing       : ntfs-3g-2:2022.5.17-1.ky10.x86_64                                                                                                                                            1/1
  Running scriptlet: ntfs-3g-2:2022.5.17-1.ky10.x86_64                                                                                                                                            1/1
  Verifying        : ntfs-3g-2:2022.5.17-1.ky10.x86_64                                                                                                                                            1/1

Installed:
  ntfs-3g-2:2022.5.17-1.ky10.x86_64

Complete!

[root@kylin101 ~]# fdisk -l

Disk /dev/sdh: 14.41 GiB, 15472047104 bytes, 30218842 sectors
Disk model: DataTraveler 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x63742cee

Device     Boot    Start      End  Sectors   Size Id Type
/dev/sdh1  *     1654784 29297241 27642458  13.2G  7 HPFS/NTFS/exFAT
/dev/sdh2       29298688 30214744   916057 447.3M 1b Hidden W95 FAT32

[root@kylin101 ~]# mount -t ntfs-3g /dev/sdh1 /mnt
[root@kylin101 ~]# cd /mnt
[root@kylin101 mnt]# ls -l

total 12
drwxrwxrwx 1 root root    0 Feb  5 16:19  Alarms
drwxrwxrwx 1 root root    0 Feb  5 16:19  Android
drwxrwxrwx 1 root root    0 Feb  5 16:19  Audiobooks
drwxrwxrwx 1 root root    0 Feb  5 16:19  DCIM
drwxrwxrwx 1 root root    0 Feb  5 16:19  Documents
drwxrwxrwx 1 root root    0 Feb  5 16:19  Download
drwxrwxrwx 1 root root 4096 Aug 31  2020  公开课

虚拟机内使用优盘(virtualbox为例)

virtualbox设置USB口协议3.0(默认2.0,不支持3.0优盘)
在这里插入图片描述

宿主机插入优盘后,会被宿主机有限识别到。
重点操作在虚拟机USB设置,选择对应的优盘。

在这里插入图片描述
后续操作参考前面的步骤一和二。

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐