让linux主持ntfs文件系统,让你的Debian Linux支持NTFS文件系统的读写

虽然我现在一直使用Debian Linux但是,有时还不得不使用Window这个家伙,所以在Windows下也有一些经常用到的文件,因此在Linux下实现访问Windows文件系统。

我的Debian系统: 4.0 r3

要是用的软件使用软件:ntfs-3g

1.修改默认源

将/etc/apt/sources.list中etch 修改为testing .

执行命令:

apt-get update

2.执行安装

执行命令:

apt-get install ntfs-3g

3.使用

直接使用执行命令:

mount -t ntfs-3g /dev/hdax /mnt/windows

这里的/dev/hdax 请改为你自己的windows磁盘分区,可利用fdisk -l 查看。

如下:(这是我机器的情况)

debian:/mnt# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes

255 heads, 63 sectors/track, 19457 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x8a941a0f

Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1        2223    17856216    7  HPFS/NTFS

/dev/sda2            2237       19457   138327682+   f  W95 Ext'd (LBA)

/dev/sda3            2224        2236      104422+  83  Linux

/dev/sda5            2237        2432     1574338+  82  Linux swap / Solaris

/dev/sda6            2433        6688    34186288+   7  HPFS/NTFS

/dev/sda7            6689        9639    23703876    7  HPFS/NTFS

/dev/sda8            9640       10944    10482381   83  Linux

/dev/sda9           10945       15200    34186288+   7  HPFS/NTFS

/dev/sda10          15201       17499    18466686    7  HPFS/NTFS

/dev/sda11          17500       19457    15727603+  83  Linux

Partition table entries are not in disk order

如果是加入开机自动映射的话,编辑/etc/fstab,加入如下内容就可以了。

/dev/hdax /mnt/windows ntfs-3g defaults 0 0

下面是我的系统加载NTFS文件系统的相关命令:

mount -t ntfs-3g /dev/sda6 /mnt/D

mount -t ntfs-3g /dev/sda7 /mnt/E

如果想了解更多的关于

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值