opensuse默认并不对ntfs分区进行写的权限,所以我们日常使用时只能对其进行读的操作,这是完全不能满足需要的,所以要改变这一状况。这一且是由一个文件决定的/etc/fstab就是这个文件,如果你的suse启动后并不能自动挂载硬盘分区,也是因为少了这个文件,要手动添加,我的最初的文件是这样的:
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part9 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part8 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part10 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part5 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part6 /windows/E ntfs-3g users,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part7 /windows/F vfat users,gid=users,umask=0002,utf8=true,codepage=936 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
分了九个去,sda1,sda5,sda6都是ntfs,sda7是fat32,sda8,sda10是ext3格式,sda9是swap分区sda1安的是winxp,sda5,6,7都是数据分区,最初这四个区只有fat32可以写,其余的都只能读。于是对其进行修改将sda5,6加上写的权限,因为sda1是xp不想因为误操作删除系统文件,所以没有该,下面是修改后的文件:
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part9 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part8 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part10 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=zh_CN.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part5 /windows/D ntfs-3g users,gid=users,fmask=002,dmask=002,locale=zh_CN.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part6 /windows/E ntfs-3g users,gid=users,fmask=003,dmask=002,locale=zh_CN.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Hitachi_HDS7216_PVF904Z5UTUWRN-part7 /windows/F vfat users,gid=users,umask=0002,utf8=true,codepage=936 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
修改内容:将ntfs选项中的fmask,dmask的值改为002就可以了,其余的最好不要动,这样重启一下计算机,你就可以对修改的分区进行写操作了。
阅读(1560) | 评论(0) | 转发(0) |