Loading

RHEL9.4安装nfts驱动

日期:2024.11.30
目的:安装nfts系统,实现U盘和移动硬盘与主机互传文件

打算3个U盘之间整理下数据,先创建3个挂载点

[root@RHEL9 ~]# mkdir /mnt/mnt{1,2,3}
[root@RHEL9 ~]# ls /mnt/
mnt1  mnt2  mnt3

插上U盘看下设备

[root@RHEL9 ~]# man lsblk
NAME
       lsblk - list block devices
SYNOPSIS
       lsblk [options] [device...]
       -f, --fs
           Output info about filesystems. This option is equivalent to -o
           NAME,FSTYPE,FSVER,LABEL,UUID,FSAVAIL,FSUSE%,MOUNTPOINTS. The authoritative information about filesystems and raids is
           provided by the blkid(8) command.
[root@RHEL9 ~]# lsblk -f
NAME          FSTYPE      FSVER    LABEL   UUID                                   FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                              
└─sda1        xfs                          9bce0c90-9206-4121-be23-3f069e66a0a0      2.5T     8% /data
sdb                                                                                              
├─sdb1        vfat        FAT16            1990-9D2E                                92.7M     7% /boot/efi
├─sdb2        LVM2_member LVM2 001         27V3H2-Uv4F-wyz5-HTX8-4Rs4-zmdG-rwLQP2                
│ ├─rhel-root xfs                          2ba14aa2-83f0-4229-86bb-1a3b67f5acf1     12.7G    24% /
│ ├─rhel-swap swap        1                3db71155-3279-40dd-aa91-151190515521                  [SWAP]
│ └─rhel-home xfs                          0bff7dbe-bb67-465f-baf1-24dad42c8b0b     92.9G     7% /kvm
└─sdb3        ext4        1.0              5d03a640-f6d5-4e52-bf9f-9833e5b8cc96    297.4M    32% /boot
sdc                                                                                              
├─sdc1        ntfs                 EasyU   12A0CAC6A0CAB011                                      
└─sdc2        vfat        FAT16    EFI     0F14-0C41                                             
sdd                                                                                              
└─sdd1        ntfs                 新加卷  E4FE4786FE47504A                                      
sde                                                                                              
├─sde1        exfat       1.0      Ventoy  4E21-0000                                             
└─sde2        vfat        FAT16    VTOYEFI 223C-F3F8     

sdc,sdd,sde三个设备是U盘,能显示出ntfs系统,尝试挂载失败

[root@RHEL9 ~]# mount /dev/sdd1 /mnt/mnt1
mount: /mnt/mnt1: unknown filesystem type 'ntfs'.

dnf搜一下并安装

[root@RHEL9 ~]# dnf search ntfs
Updating Subscription Management repositories.
Last metadata expiration check: 0:45:47 ago on Sat 30 Nov 2024 09:43:50 PM CST.
=================================================== Name & Summary Matched: ntfs ====================================================
ntfs-3g.x86_64 : Linux NTFS userspace driver
ntfs-3g-devel.x86_64 : Development files and libraries for ntfs-3g
ntfs-3g-libs.x86_64 : Runtime libraries for ntfs-3g
ntfs-3g-system-compression.x86_64 : NTFS-3G plugin for reading "system compressed" files
ntfsprogs.x86_64 : NTFS filesystem libraries and utilities
[root@RHEL9 ~]# dnf info ntfs-3g
Updating Subscription Management repositories.
Last metadata expiration check: 0:47:26 ago on Sat 30 Nov 2024 09:43:50 PM CST.
Available Packages
Name         : ntfs-3g
Epoch        : 2
Version      : 2022.10.3
Release      : 1.el9
Architecture : x86_64
Size         : 128 k
Source       : ntfs-3g-2022.10.3-1.el9.src.rpm
Repository   : epel
Summary      : Linux NTFS userspace driver
URL          : https://www.tuxera.com/company/open-source/
License      : GPLv2+
Description  : NTFS-3G is a stable, open source, GPL licensed, POSIX, read/write NTFS
             : driver for Linux and many other operating systems. It provides safe
             : handling of the Windows XP, Windows Server 2003, Windows 2000, Windows
             : Vista, Windows Server 2008 and Windows 7 NTFS file systems. NTFS-3G can
             : create, remove, rename, move files, directories, hard links, and streams;
             : it can read and write normal and transparently compressed files, including
             : streams and sparse files; it can handle special files like symbolic links,
             : devices, and FIFOs, ACL, extended attributes; moreover it provides full
             : file access right and ownership support.
[root@RHEL9 ~]# dnf install -y ntfs-3g

仓库是epel,因为之前装knock的时候安装过epel源,所以能搜到,再写一下安装方法
https://docs.fedoraproject.org/en-US/epel/getting-started/

subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms && dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

重新尝试挂载成功

[root@RHEL9 ~]# mount /dev/sdd1 /mnt/mnt1/
[root@RHEL9 ~]# lsblk -f /dev/sdd1
NAME FSTYPE FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sdd1 ntfs         新加卷 E4FE4786FE47504A                      114.5G     0% /mnt/mnt1
[root@RHEL9 ~]# ls /mnt/mnt1
'System Volume Information'

尝试挂载第二块U盘,竟然还帮我修复了(搞坏了???)

[root@RHEL9 ~]# mount /dev/sdc1 /mnt/mnt2
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
[root@RHEL9 ~]# lsblk -f /dev/sdc1
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sdc1 ntfs         EasyU 12A0CAC6A0CAB011                        2.5G    91% /mnt/mnt2
[root@RHEL9 ~]# ls /mnt/mnt2/
 14393.1944_cn_windows_10_enterprise_2016_ltsb_x64_v2.iso      'System Volume Information'
'PL2303 Windows Driver User Manual v1.18.0.pdf'

第三块是exfat文件系统,本身linux就认识,U盘安装的是一款国人研发的linux多系统启动盘工具Ventoy,我用起来非常好用
https://www.ventoy.net/cn/

[root@RHEL9 ~]# mount /dev/sde1 /mnt/mnt3
[root@RHEL9 ~]# lsblk -f /dev/sde1
NAME FSTYPE FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sde1 exfat  1.0   Ventoy 4E21-0000                               2.8G    90% /mnt/mnt3
posted @ 2024-11-30 23:09  李蔚  阅读(89)  评论(0)    收藏  举报