debian linux ntfs,让Debian支持ntfs文件系统读写

刚装好debian发现在debian下往windows盘下拷贝不过去资料,上网查了些资料发现是因为不知道ntfs的读写。

查看我的版本号6.0.5

#more /etc/debian_version

6.0.5

我的Debian系统: 6.0.5

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

1.修改默认源

因为我们学校有自己的源,故而修改成我们学校的源

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: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 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: 0x559ed1e5

Device Boot      Start         End      Blocks   Id  System

/dev/sda1               1        6528    52436128+   7  HPFS/NTFS

/dev/sda2            6529       60802   435949345+   f  W95 Ext'd (LBA)

/dev/sda5            6529       24543   144705456    7  HPFS/NTFS

/dev/sda6           24544       42558   144705456    7  HPFS/NTFS

/dev/sda7           42559       53060    84357283+   7  HPFS/NTFS

/dev/sda8           53061       53321     2096451    b  W95 FAT32

/dev/sda9   *       53322       53346      194560   83  Linux

/dev/sda10          53346       53589     1951744   82  Linux swap / Solaris

/dev/sda11          53589       55413    14647296   83  Linux

/dev/sda12          55413       60802    43287552   83  Linux

如果是加入开机自动映射的话,编辑/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

以上文章是对网上搜集的资料的整理。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值