腾讯云重装为centos6.7 x64 后重新挂载原NTFS云硬盘

原操作系统环境为:windows server 2008 R2 Enterprise Service Pack 1 x64

原挂载了两个云硬盘:系统盘(C:)、数据盘(D:)


重装系统为:centos 6.7 x64


挂载原数据盘NTFS格式的步骤如下:

1、在Linux系统上使用以下命令安装ntfsprogs软件使得Linux能够支持NTFS文件系统:

yum install ntfsprogs

2、使用命令 parted -l查看从Windows中挂载过来的数据盘:

[root@XXXX_centos mnt]# parted -l
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  53.7GB  53.7GB  primary  ext3         boot


Model: Virtio Block Device (virtblk)
Disk /dev/vdb: 107GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  107GB  107GB  primary  ntfs

3、使用 fdisk -l 命名查看 需要挂载的 windows的 数据盘路径:

[root@xxx_centos mnt]# fdisk -l

Disk /dev/vda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007ee22

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           1        6528    52427776   83  Linux

Disk /dev/vdb: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa09c50d9

   Device Boot      Start         End      Blocks   Id  System
/dev/vdb1               1       13054   104854528    7  HPFS/NTFS

4、使用命令 mount -t ntfs-3g 数据盘路径 挂载点 挂载数据盘:

[root@xxx_centos /]# mount -t ntfs-3g /dev/vdb1 mnt/
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.

如上即可将windows的ntfs盘挂载到centos中。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值