linux自动挂载硬盘分区

修改/etc/fstab 如下:

#
# /etc/fstab
# Created by anaconda on Sat Jun 18 09:30:06 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=13611a05-0093-49c6-87ff-099946629691 /                       ext4    defaults        1 1
UUID=838ce818-9c9b-4efe-b27e-7b196f6c0649 swap                    swap    defaults        0 0
UUID=d7023e7d-633c-4e44-a92e-13c37de407eb swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/sda2 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
/dev/sda5 /windows/D           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
/dev/sda6 /windows/E           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
/dev/sda7 /windows/F           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0

当然redhat没有安装ntfs-3g,去要自己去下一个

然后

./configure
make
make install


很简单

你可能感兴趣的:(linux)