linux分区windows系统安装,linux下挂载windows分区(基于双系统)

本人环境:

windows 8.1

redhat 6.5

由于装了双系统之后想在linux系统下查看windows文件,于是上网搜索了一下方法:

先安装一个包,可以源码安装也可以rpm安装

这里我先安装了一个epel到yum源

下载:如果您使用第6版企业版 Linux,请安装这个 RPM 包:  epel-release-6-8.noarch.rpm

安装ntfs-3g

yum search ntfs-3g

============================= N/S Matched: ntfs-3g =============================

ntfs-3g-devel.i686 : Development files and libraries for ntfs-3g

ntfs-3g-devel.x86_64 : Development files and libraries for ntfs-3g

ntfs-3g.i686 : Linux NTFS userspace driver

ntfs-3g.x86_64 : Linux NTFS userspace driver

ntfsprogs.x86_64 : NTFS filesystem libraries and utilities

直接安装就好了:

yum install ntfs-3g

然后把windows到盘挂载上来:

#fdisk -cul

Device Boot      Start         End      Blocks   Id  System

/dev/sda1              63   104872319    52436128+   7  HPFS/NTFS

Partition 1 does not start on physical sector boundary.

/dev/sda2       104872320   419445127   157286404    7  HPFS/NTFS

/dev/sda3   *   419446784   734017535   157285376    7  HPFS/NTFS

/dev/sda4       734017536   976773167   121377816    5  Extended

/dev/sda5       734019584   735068159      524288   83  Linux

/dev/sda6       735070208   976773119   120851456   8e  Linux LVM

/dev/sda1 就是我的C盘

#mkdir /mnt/winC

# mount -t ntfs-3g /dev/sda1 /mnt/winC/ -o iocharset=utf8

# cd /mnt/winC/

# ls

AMD                     pagefile.sys         swapfile.sys

bootmgr                 PerfLogs             System Volume Information

BOOTNXT                 ProgramData          Users

Documents and Settings  Program Files        Windows

hiberfil.sys            Program Files (x86)

Intel                   $Recycle.Bin

C盘到内容可以显示出来了。

另外,可以编辑/etc/fstab

使其开机启动

/dev/sda1 /mnt/winC ntfs-3g codepage=936,iocharset=utf8 0 0

如有错误,请指出,感谢!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值