摘要: centos6.x默认是ext4的文件系统,而centos7.x是默认xfs的文件系统,所以直接挂载是会出问题的,另外ntfs是windows上的文件系统,挂载也会出问题,这里记录一下如何解决。
挂载xfs
1
2
3
|
wget http://mirrors.opencas.cn/epel/6/i386/epel-release-6-8.noarch.rpm
yum install xfsprogs kmod-xfs xfsdump xfsprogs-devel
mount -t xfs /dev/sdc1 /data3/sdc1/
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#需要安装 lvm2: yum install lvm2
#然后按一下步骤:
#1、查看物理卷:pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 279.22G 32.00M
#2、查看卷组:vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 4 0 wz--n- 279.22G 32.00M
#3、查看逻辑卷:lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol03
VG Name VolGroup00
LV UUID YhG8Fu-ZGPk-qt8D-AxgC-DzOU-dg1F-z71feI
LV Write Access read/write
LV Status unenable
# open 1
LV Size 245.97 GB
Current LE 7871
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
#4、如未激活,需要激活逻辑卷:vgchange -ay /dev/VolGroup00
LV Status available
#5、挂载逻辑卷:mount /dev/VolGroup00/LogVol03 /home/lvm
|
挂载ntfs
1
2
3
4
5
|
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
chmod 755 rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum install fuse-ntfs-3g -y
mount /dev/sdd1 /data3/sdd/
|
- 补充
此时挂载了ntfs也只是可以实现读取并不能写入,目前没有发现什么有效方法