Welcome to my testing room.

(转)对NTFS文件系统写入支持的安装

上一篇 / 下一篇  2008-10-20 11:01:57 / 个人分类:Debian configure

openSUSE 10.3

51Testing软件测试网B.TE7MfTK0\ U,UH

ntfs-3g插件默认安装在openSUSE 10.3中,支持读写。51Testing软件测试网!BEj6fxZx`e&X [8l

51Testing软件测试网:K7~)n_"@[9M9D

Modify /etc/fstab to reflect umask=0002

2{ao N*i+]!Cf0

2YL bO9U#I6rbA+C!R'q0例如51Testing软件测试网oFMwIX"ug;G
For example

E/f,\-KUZ:ozg0
SATA 或 PATA (IDE) 驱动:
#Device    Mountpoint  Filesystem  Parameters51Testing软件测试网-e0i	I*ev,G!Bc"g0P E
/dev/sda1 /windows/C ntfs-3g user,users,gid=users,umask=0002,locale=en_US.UTF-8 0 051Testing软件测试网 Av3mx!{.R#H
其他选择:
#Device                 Mountpoint  Filesystem  Parameters51Testing软件测试网gmA
E&q'FFE[
/dev/disk/by-label/win /windows/C ntfs-3g user,users,gid=users,umask=0002,locale=en_US.UTF-8 0 051Testing软件测试网*am;~V _z$b3s

!l'm1e1Rv3b J M4}0
u;^H1uk3m |KIb0The ntfs-3g is installed by default and write support is enabled.

4Z F-^U6n051Testing软件测试网Cdt*cC!Q~OD!F

Modify /etc/fstab to reflect umask=000251Testing软件测试网c[.x5fc[ h

51Testing软件测试网-e.qw v1wk#}

For example51Testing软件测试网jMC%U;b/B S

SATA or PATA (IDE) drive
51Testing软件测试网/Ih5?%QX%p
#Device    Mountpoint  Filesystem  Parameters
Li&ML8z_)U*p"V}0/dev/sda1 /windows/C ntfs-3g user,users,gid=users,umask=0002,locale=en_US.UTF-8 0 0
4Er+jT9o[7H9\R`0
Other options
51Testing软件测试网&s4r5k/H;U0Y{/J
#Device                 Mountpoint  Filesystem  Parameters51Testing软件测试网"O%yVF"\
/dev/disk/by-label/win /windows/C ntfs-3g user,users,gid=users,umask=0002,locale=en_US.UTF-8 0 0
B8v6?X#NO:~g$K0

openSUSE 10.2

1s*]2pW*~Grw0如果您只是读取NTFS文件系统上的文件,您不需任何设置,所有SUSE Linux / openSUSENTFS默认启用文件系统只读功能51Testing软件测试网*g$J X3k1E"` df
If you need only to see your files, then you don't need to do anything as NTFS read only access is enabled in all versions of SUSE Linux / openSUSE by default.51Testing软件测试网 b,q`4?3e)?_k'P

0D J8N v2gU!Y0需要读/写功能时,添加此安装源51Testing软件测试网oc6F.x m
For read/write you should add this repositories:51Testing软件测试网UiASs2[,th

zypper sahttp://download.opensuse.org/repositories/filesystems/openSUSE_10.2/Filesystems
!A0Go7~0

T!v SQ ]n1Q9R0您将看到以下信息
`!ng-P8a$@L se0You will see following text:

f#^jh0_l%jH0
* Adding repository 'Filesystems'51Testing软件测试网d~(g(eY8G
Repository 'Filesystems' successfully added:51Testing软件测试网 ^2FEPpVY
Enabled: Yes
8\{ PJ)u:`]f`,C0Autorefresh: Yes51Testing软件测试网 O\ EU CI%}|
URL: http://download.opensuse.org/repositories/filesystems/openSUSE_10.2/
zb*TJ xJ~Un`+r7p0

3q.OxEk)SM-w$]:n7g0使用命令51Testing软件测试网"J-W;Wrwe

zypper in -c Filesystems ntfs-3g fuse51Testing软件测试网sMM/^*s5m2H(u|V,z
51Testing软件测试网#v!@9d3L#I-Pq.eD#x

安装以下软件包:

4hw;V&ce0
fuse
u+l6\X zu{0ntfs-3g51Testing软件测试网 g p/z#bs$v-VB
51Testing软件测试网 t h4B nN

或到TaST中软件管理进行安装,在搜索框内输入ntfs-3g查找
1xM;v+N2E;B0Install the following packages:

p!~8b uxpk(?F0
fuse
9~N#]P U5W0ntfs-3g
5w"g(R*a,J$V0
51Testing软件测试网;r#SfU#jJ"@6d

with

R E-M0h gu%_!t?_g~0
zypper in -c Filesystems ntfs-3g fuse51Testing软件测试网_K4l8Yjg#p

:Q/Ub MP0or go to YaST Software Management and install from there. To locate ntfs-3g use that as a search term.

b0MQV r9rxK x i051Testing软件测试网`)D$LpJT

51Testing软件测试网"Y'N {~+I6Foyrhm

N&t,Qc:l@8T2~0

挂载NTFS分区 Mounting NTFS Partition

/b%w!{O(h9x0将要挂载的分区写入文件/etc/fstab中,NTFS文件系统将随系统启动自动挂载。挂载前确定挂载点目录(此例是/Windows/C)已经存在。大部分NTFS在第一块硬盘的一部分:51Testing软件测试网,xz#U-C1k e5]:A

PATA (IDE) 硬盘:
#Device    Mountpoint  Filesystem  Parameters
$f/p yV?)dL/\P0/dev/hda1 /windows/C ntfs-3g user,users,gid=users,umask=0002 0 051Testing软件测试网Xi`F*n^
51Testing软件测试网 gyP}4U UD*J,@h{
SATA 硬盘:
#Device    Mountpoint  Filesystem  Parameters51Testing软件测试网$GQ?6g3O4Yq
/dev/sda1 /windows/C ntfs-3g user,users,gid=users,umask=0002 0 0
U%sudby)~t0
其他:
#Device                 Mountpoint  Filesystem  Parameters51Testing软件测试网{/NlP;_to[P
/dev/disk/by-label/win /windows/C ntfs-3g user,users,gid=users,umask=0002 0 0
e*L lWs%}9?%L0

w#Q _yg+gl^ F0注意在保存之前确定参数栏上没有”or“命令。否则即使此分区安装了支持写入的驱动,也只能读取。 另外,您可以使用磁盘标识(ID)(连接符号在/dev/disk/by-id/)或文件系统的UUID(/dev/disk/by-uuid/)指定源磁盘。安标签(by-label)按编号(by-id)/dev/sd*更好,因为当磁盘可能由前后变化时而他们(by-label,by-id)保持不变,也就是说,用/dev/sdc代替/dev/sda(其中后者依赖注册顺序and/or)。

U6gp@+Q(s0

;@zt b.h.]]UH0By adding an entry to file/etc/fstab, the NTFS file system will be mounted automatically at boot. Make sure the mount point directory (in this example/Windows/C) exists beforehand. The most common case is that NTFS is on partition one of first hard disk:

0fOA M"c1AO0
PATA (IDE) drive

f3rJoi-[0
#Device    Mountpoint  Filesystem  Parameters
(k2LW!E AW b&}@A0/dev/hda1 /windows/C ntfs-3g user,users,gid=users,umask=0002 0 0
H^,`8cYJ051Testing软件测试网4I G2ioJ
SATA drive

?6k1C [AH.S+o(u;o0
#Device    Mountpoint  Filesystem  Parameters51Testing软件测试网dz#v'vx/K7`T
/dev/sda1 /windows/C ntfs-3g user,users,gid=users,umask=0002 0 051Testing软件测试网X1rp5V(M Hm(UZ0D
Other options

,S c j\Z]S0
#Device                 Mountpoint  Filesystem  Parameters
Wo3R}jS#P0/dev/disk/by-label/win /windows/C ntfs-3g user,users,gid=users,umask=0002 0 051Testing软件测试网#l-X Ds8r TR2J
51Testing软件测试网 K5C ^ jiVXf Ur

Make sure there is no "ro" command in the parameters before saving, otherwise the partition will be mounted read-only even though the driver has write support.51Testing软件测试网-d"p9\N k

6|!R;A]5m#Q0Alternatively, you can specify the source device using the disk's ID (symlinks in/dev/disk/by-id/) or the filesystem's UUID (/dev/disk/by-uuid/).by-labelorby-idare preferred over/dev/sd*nodes because they will remain the same while the disk could show up under, say,/dev/sdcinstead of/dev/sda(the latter of which depends on the order they were plugged in and/or recognized).

yW\m7jv%Z/}"e0

手动挂载

-_"`*J(U DS AA A0如果您想手动关注NTFS分区,请使用ntfs-3g命令制定磁盘分区为NTFS。例,挂载一个分区标签为"windows"的只读NTFS分区到/mnt目录下:51Testing软件测试网l4TL%YP'K

ntfs-3g -o ro,gid=users,umask=0002 /dev/disk/by-label/windows /mnt
,pYq6}3j+Ko0
51Testing软件测试网$\.Mi:`6E;XJ2\2z

最后部分也可以使用:

$[9p+[ n0OP4MR&^X+r0
su -c yast2 disk51Testing软件测试网4Z0I4_
VS

A0_Th9[;ys \'L0这跟到YaST--系统--Partitioner设定一样。

g)hWJ#H w&F6q051Testing软件测试网6^%XZ7d8D@ ]!t

想了解完整详尽的利用ntfs-3g和umount命令来挂载和卸载NTFS分区的方法,请阅读它们的说明文档。51Testing软件测试网Ov['|a-q:b%q

51Testing软件测试网j:j*AE*i5W-cY

If you want to mount an NTFS partition manually, use the ntfs-3g command, specifying the disk partition as NTFS. For example this mounts an NTFS partition read-only which has the label "windows" onto the directory/mnt:51Testing软件测试网 G5E*Z kb

ntfs-3g -o ro,gid=users,umask=0002 /dev/disk/by-label/windows /mnt
t9S,H:b/T#P6NH.?0

&l6|mG#I\R0This last part can also be done using:

0a,N9iqv+zk$F0
su -c yast2 disk51Testing软件测试网W*}nOd{-O
51Testing软件测试网:r@ c1z|!B

Which is the same as YaST -- System -- Partitioner51Testing软件测试网:@iW4jJzd!Kl

-B({~i H IC0For full details on using the ntfs-3g and umount commands to mount and unmount NTFS partition, read their manuals.

(aDA0A/gC0

排疑解惑

xC5^3V2Y@{0用ntfs-fuse挂载NTFS比使用ntfs-3g有很大劣势;每个目录至多能创建10个文件。如果您打算将NTFS分区用于更多用途,您应该使用更合适的NTFS驱动,例如ntfs-3g。

A%P O(bW7nE$~ ^0

"O5r Ke_ A]!}0如果您在Guru YaST源里找不到ntfs-3g,试试在suser-jengelh里搜索,或直接从ntfs-3g网站下载。安装ntfs-3g前,确定fuse已启动(modprobe fuse),如未启动,在系统设定中加入系统启动:用YaST/System/sysconfig编辑;选择System/Kernel/MODULES_LOADED_ON_BOOT;写入fuse,单击完成按钮。51Testing软件测试网aY,Qz G r'g

9z3T9]5Y9r0这步骤是简单易懂的(./configure; make; make install)。挂载选项除了驱动名称,其他非常相似(ntfs-3g instead of ntfs-fuse)。51Testing软件测试网![/]$H?Ot `

'x Y:E~@/p0|0The ntfs-fuse uses ntfsmount and is vastly inferior compared to ntfs-3g; there is a creation limit of 10 files per directory. If you want to use a ntfs partitions for more serious work, you should consider using a more appropriate ntfs driver such as ntfs-3g.

hlE3D C&r*n051Testing软件测试网XRyvRRq:V g%U

If you cannot find ntfs-3g package in the Guru YaST repositories, try searching in suser-jengelh, or download the source fromntfs-3g web site. Make sure fuse is loaded (e.g.modprobe fuse) or if it does not load on startup then add it to the system configuration: Use YaST/System/sysconfig editor; choose System/Kernel/MODULES_LOADED_ON_BOOT; writefusein it and click the Finish button.51Testing软件测试网0Hs`TK!P

;on-px6nV^W0The build is straightforward (./configure; make; make install). Mount options are very similar with exception of the driver name (ntfs-3g instead of ntfs-fuse).zh_tw:NTFS51Testing软件测试网2Oke r4yyY9Ja5h)L;D


TAG:

 

评分:0

我来说两句

日历

« 2024-05-16  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 31364
  • 日志数: 54
  • 图片数: 1
  • 建立时间: 2008-10-20
  • 更新时间: 2010-01-13

RSS订阅

Open Toolbar