求助--ubuntu7.04使用ntfs-3g挂载NTFS文件系统失败

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
jilei
帖子: 26
注册时间: 2005-10-04 18:53

求助--ubuntu7.04使用ntfs-3g挂载NTFS文件系统失败

#1

帖子 jilei » 2007-09-27 11:50

下面是执行mount命令及失败的系统提示信息:

sudo mount -t ntfs-3g /dev/sda2 /media/DATA1
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sda2': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:

Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.

Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:

mount -t ntfs-3g /dev/sda2 /media/DATA1 -o force

Or add the option to the relevant row in the /etc/fstab file:

/dev/sda2 /media/DATA1 ntfs-3g defaults,force 0 0
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#2

帖子 leeaman » 2007-09-27 12:56

代码: 全选

sudo apt-get install ntfs-3g
sudo apt-get install ntfs-config
开机自动挂载就好了,feisty支持只读的ntfs挂载,你这个就是内核挂载了,然后你又用ntfs-3g挂载出现的。要不你先卸载了再用ntfs-3g挂载了
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
jilei
帖子: 26
注册时间: 2005-10-04 18:53

#3

帖子 jilei » 2007-09-27 16:03

不太明白兄弟的意思,是让我修改fstab文件吗?

“你这个就是内核挂载了”
我之前修改了fstab文件,开机自动挂载了NTFS和FAT32分区。
当我安装好NTFS-3G后,我umount卸载之后再使用“sudo mount -t ntfs-3g /dev/sda2 /media/DATA1 ”命令的

请问这两行命令是作什么的?
sudo apt-get install ntfs-3g
sudo apt-get install ntfs-config
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#4

帖子 leeaman » 2007-09-27 16:05

好像是你的xp没有正常关机吧
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
jilei
帖子: 26
注册时间: 2005-10-04 18:53

#5

帖子 jilei » 2007-09-27 16:31

恩,我是把XP休眠了,然后启动机器进入Ubuntu的。
应该进XP然后正常关机对吗?
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#6

帖子 leeaman » 2007-09-27 16:36

你试试,应该是这个问题
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
jilei
帖子: 26
注册时间: 2005-10-04 18:53

#7

帖子 jilei » 2007-09-27 16:38

恩,多谢兄弟热心相助!
jilei
帖子: 26
注册时间: 2005-10-04 18:53

#8

帖子 jilei » 2007-09-27 18:06

确实是XP休眠的问题,XP正常关机后,现在已经可以手动mount -t ntfs-3g来挂载NTFS分区并实现读取和写操作了。

依然头疼的是,按照下面的格式修改了fstab文件后,系统不能自动挂载分区。
/dev/sda1 /media/SYSTEM ntfs-3g default 0 0
/dev/sda2 /media/DATA1 ntfs-3g default 0 0
/dev/sda3 /media/Documents vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=077 0 0
/dev/sdb1 /media/DATA2-DISK2 vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=077 0 0
/dev/sdb2 /media/DATA3-Disk2 ntfs-3g default 0 0

我在文件浏览器中双击未挂载的分区,系统提示:
附件
Screenshot-gnome-mount.png
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#9

帖子 leeaman » 2007-09-27 18:18

这个就不知道了,fat格式我都很久没有用过了,应该说用ubuntu之前很久就不用fat了
http://wiki.ubuntu.org.cn/%E6%8C%82%E8% ... 6%E5%8C%BA
看看吧,好象是你的参数太多了
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
jilei
帖子: 26
注册时间: 2005-10-04 18:53

#10

帖子 jilei » 2007-09-28 14:00

问题解决。

原来是我马虎,在/media下面创建的文件夹大小写错误,和fstab文件制定的文件夹没有对上。

现在已经OK了,开机自动挂载所有fat32 和 ntfs分区,读和写数据都正常可用。

只是有些文件夹上面有个锁的图标,leeaman知道是为什么吗?
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#11

帖子 leeaman » 2007-09-28 14:03

只是有些文件夹上面有个锁的图标,leeaman知道是为什么吗?
那个好像是设备文件来着,如果是ubutnu自己的文件的话,如果是你的ntfs or fat盘的话,那就不知道了
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
jilei
帖子: 26
注册时间: 2005-10-04 18:53

#12

帖子 jilei » 2007-09-29 13:29

是FAT32的,只有一个是。

anyway,非常感谢你呵呵
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#13

帖子 leeaman » 2007-09-29 13:46

jilei 写了:是FAT32的,只有一个是。

anyway,非常感谢你呵呵
不用,我也见过的,xp下面有一个目录删不了,说是指向那个驱动器,估计是文件分配表有问题,我也还没有找到办法,我朋友电脑来着,是一个空目录也就不理他,装杀毒软件也搞不定,厉害得很
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
jilei
帖子: 26
注册时间: 2005-10-04 18:53

#14

帖子 jilei » 2007-10-11 14:03

现在NTFS在我的UBUNTU上面支持的很好了。

越来越喜欢LINUX了
回复