debian自动挂载ntfs硬盘

来源:互联网 发布:sql server有什么用 编辑:程序博客网 时间:2024/05/19 06:34

首先下载安装ntfs-3g

apt-get install ntfs-3g

然后查看分区信息

fdisk -l

 Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        7490    60163393+   7  HPFS/NTFS
/dev/sda2            7491       30401   184032607+   f  W95 Ext'd (LBA)
/dev/sda5            7491       14980    60163393+   7  HPFS/NTFS
/dev/sda6           14981       22470    60163393+   7  HPFS/NTFS
/dev/sda7           22471       28482    48290430    7  HPFS/NTFS
/dev/sda8           28482       30401    15414272   83  Linux
其中sda1 sda5 sda6 sda7分别是我的c d e f 盘。

进许/mnt目录,建立挂载目录

mkdir winc

mkdir wind

mkdir wine

mkdir winf

编辑/etc/fstab文件,进行自动挂载

/dev/sda1  /mnt/winc  ntfs-3g  default  0  0

/dev/sda5  /mnt/wind  ntfs-3g  default  0  0

/dev/sda6  /mnt/wine  ntfs-3g  default  0  0

/dev/sda7  /mnt/winf  ntfs-3g  default  0  0

这样就完成了ntfs硬盘的自动挂载。


原创粉丝点击