当我们双系统共存的时候,往往需要在Linux下挂载WIN的FAT分区。默认情况下,挂载的分区只有root用户可以读写.而在Linux平台下,一直使用root用户并不是一个好习惯.有没有办法让挂载的FAT分区能让普通用户也可以正常读写呢?man mount发现如下一段话:uid=value and gid=valueSet the owner and group of the root of the file system (default: uid=gid=0, but with option uid or gid without specified value, the uid and gid of the current process are taken).原来在挂载时加上这两个选项就可以了,如下:mount -t vfat -o iocharset=utf8,uid=500,gid=500 /dev/hda2 /mnt/D/(500是需要读写该分区的普通用户的UID和GID)再用UID为500的用户登录后测试发现在该FAT分区读写正常了.当然,如果你用/etc/fstab文件配置的话,直接在defaults后面加上,uid=500,gid=500就行了.Linux下VirtualBox虚拟机中使用USBLinux Software RAID实践相关资讯 Linux教程
- Linux教程:如何在命令行中查看目 (07/28/2014 12:22:23)
- Linux 修改root密码 (11/03/2012 07:53:38)
- su - root 与su root的区别 (06/06/2012 00:39:40)
| - Linux进程间通信:消息队列 (01/28/2013 09:43:00)
- U盘安装Linux开机无法启动解决方法 (10/07/2012 08:55:52)
- Windows 7/Linux 同步时间 (05/15/2012 06:17:55)
|
本文评论 查看全部评论 (0)