修改/etc/fstab 如下:
【linux自动挂载硬盘分区】
#
# /etc/fstab
# Created by anaconda on Sat Jun 18 09:30:06 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=13611a05-0093-49c6-87ff-099946629691 /ext4defaults1 1
UUID=838ce818-9c9b-4efe-b27e-7b196f6c0649 swapswapdefaults0 0
UUID=d7023e7d-633c-4e44-a92e-13c37de407eb swapswapdefaults0 0
tmpfs/dev/shmtmpfsdefaults0 0
devpts/dev/ptsdevptsgid=5,mode=6200 0
sysfs/syssysfsdefaults0 0
proc/procprocdefaults0 0
/dev/sda2 /windows/Cntfs-3gusers,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
/dev/sda5 /windows/Dntfs-3gusers,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
/dev/sda6 /windows/Entfs-3gusers,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
/dev/sda7 /windows/Fntfs-3gusers,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
当然redhat没有安装ntfs-3g,去要自己去下一个 然后
./configure
make
make install
很简单
推荐阅读
- Linux|109 个实用 shell 脚本
- linux笔记|linux 常用命令汇总(面向面试)
- Linux|Linux--网络基础
- linux|apt update和apt upgrade命令 - 有什么区别()
- linux|2022年云原生趋势
- Go|Docker后端部署详解(Go+Nginx)
- 开源生态|GPL、MIT、Apache...开发者如何选择开源协议(一文讲清根本区别)
- GitHub|7 款可替代 top 命令的工具