(转)对NTFS文件系统写入支持的安装
上一篇 / 下一篇 2008-10-20 11:01:57 / 个人分类:Debian configure
openSUSE 10.3
G3U$ac6j%h+XiS(Y ?0ntfs-3g插件默认安装在openSUSE 10.3中,支持读写。51Testing软件测试网Y-SX(~,{ `o%A
51Testing软件测试网1MT:A4I]"men1pYAModify /etc/fstab to reflect umask=000251Testing软件测试网;Y x {)c'c&B;cv"Y
H7v+~pOn7Sb
`W*Wc0例如51Testing软件测试网#Spc Evl5R.v
For example
- SATA 或 PATA (IDE) 驱动:
#Device Mountpoint Filesystem Parameters51Testing软件测试网g#t:~X&E6Y.Y?] P d^S
/dev/sda1 /windows/C ntfs-3g user,users,gid=users,umask=0002,locale=en_US.UTF-8 0 0
v?.evL1N,v0
- 其他选择:
#Device Mountpoint Filesystem Parameters51Testing软件测试网\)Eg(O9w2k I?#j51Testing软件测试网,`Yt}8^
/dev/disk/by-label/win /windows/C ntfs-3g user,users,gid=users,umask=0002,locale=en_US.UTF-8 0 0
o&V+lP nG0
\pv&z)\5n3P$n:k6_8N0The ntfs-3g is installed by default and write support is enabled.51Testing软件测试网/gU/a7i^U-J$h
L0F#LX0{&I2E\0Modify /etc/fstab to reflect umask=0002
x)cb,Aux{051Testing软件测试网 ~ Ab[|x)MU*eFor example51Testing软件测试网 fQfry
- SATA or PATA (IDE) drive
J7v8hKB$r_.u0
#Device Mountpoint Filesystem Parameters51Testing软件测试网&Xd g MVs.Ak
/dev/sda1 /windows/C ntfs-3g user,users,gid=users,umask=0002,locale=en_US.UTF-8 0 0
PG?J@WJ6d0
- Other options
- 51Testing软件测试网6S*U
qT^1}
#Device Mountpoint Filesystem Parameters51Testing软件测试网EHQ4jBa M I {
/dev/disk/by-label/win /windows/C ntfs-3g user,users,gid=users,umask=0002,locale=en_US.UTF-8 0 0
8Y'X4A\'{:H)Z1@)A6?0
openSUSE 10.2
51Testing软件测试网z&e$KH jh如果您只是读取NTFS文件系统上的文件,您不需任何设置,所有SUSE Linux / openSUSENTFS默认启用文件系统只读功能
0?5q^2VT+^? s0If
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软件测试网 FT%l.|bRn
For read/write you should add this repositories:
zypper sahttp://download.opensuse.org/repositories/filesystems/openSUSE_10.2/Filesystems51Testing软件测试网&v|(G|JH'g
'n*o:xTyN2j0您将看到以下信息51Testing软件测试网Eid^G2MkC.e
You will see following text:
* Adding repository 'Filesystems'
oPjl8a+p x0Repository 'Filesystems' successfully added:51Testing软件测试网3e\)u3Azz#iK
Enabled: Yes51Testing软件测试网$n TB2og4Fh*}BlZ
Autorefresh: Yes51Testing软件测试网8O#V:Og+\*i3X
URL: http://download.opensuse.org/repositories/filesystems/openSUSE_10.2/51Testing软件测试网mmK)@*?+L
)CX1i1w b0使用命令51Testing软件测试网1a,X6Q&G0G
zypper in -c Filesystems ntfs-3g fuse
'M2@p|"EnWo0
n"{ oge;uA0安装以下软件包:
X;F2GP&\3Mn%Yj0fuse51Testing软件测试网N8t x?'O@J X
qKs4B4Jcw,mj0ntfs-3g
\gU2Q%M j!KKI0
或到TaST中软件管理进行安装,在搜索框内输入ntfs-3g查找
e%A:G v2eQ`7{0Install the following packages:51Testing软件测试网htA$CNAV-b"Z
fuse51Testing软件测试网[ ^c:|P'cQ
0Mr/t;|"sd0ntfs-3g
#H~e5}a0
with
:MFG\{Ha.F0zypper in -c Filesystems ntfs-3g fuse51Testing软件测试网5gJ ?[c
8I l,p s Q)M.m%ci0
or go to YaST Software Management and install from there. To locate ntfs-3g use that as a search term.
G4lao q051Testing软件测试网 KKG:G9S.\oZ
*~P4a$g%ia
~ja R051Testing软件测试网XBzh@6{Y
挂载NTFS分区 Mounting NTFS Partition
"z:j&i9K:m.u-r0将要挂载的分区写入文件/etc/fstab
中,NTFS文件系统将随系统启动自动挂载。挂载前确定挂载点目录(此例是/Windows/C
)已经存在。大部分NTFS在第一块硬盘的一部分:51Testing软件测试网%W!V/o]T5_Hs
- PATA (IDE) 硬盘:
#Device Mountpoint Filesystem Parameters
l N-u,LzY ?0/dev/hda1 /windows/C ntfs-3g user,users,gid=users,umask=0002 0 051Testing软件测试网3[k tP r4Q9w
h,HG@R'~0
- SATA 硬盘:
#Device Mountpoint Filesystem Parameters
.y\6Sl U&?T0/dev/sda1 /windows/C ntfs-3g user,users,gid=users,umask=0002 0 0
V7mB f,s-^ m8F] P0
- 其他:
#Device Mountpoint Filesystem Parameters51Testing软件测试网 D^\i:Y9O;bi;n
[8yd;zli-DS0/dev/disk/by-label/win /windows/C ntfs-3g user,users,gid=users,umask=0002 0 051Testing软件测试网a)h;k$Mk$dy;i
注意在保存之前确定参数栏上没有”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)。51Testing软件测试网T"nk
mv-l
By 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:51Testing软件测试网(b/}%O"K;f0Ma
- PATA (IDE) drive
- 51Testing软件测试网[b%|&z*S
#Device Mountpoint Filesystem Parameters51Testing软件测试网C;r4z6\x/s{7C/E
/dev/hda1 /windows/C ntfs-3g user,users,gid=users,umask=0002 0 0
^-op1W1Vy p0
J~Z ]'G0
- SATA drive
q+J\;z1\h0
#Device Mountpoint Filesystem Parameters
(i AF*[ T"Q0/dev/sda1 /windows/C ntfs-3g user,users,gid=users,umask=0002 0 051Testing软件测试网'g$s])r[(zJ
- Other options
- 51Testing软件测试网~?pVa:{#Sz
#Device Mountpoint Filesystem Parameters51Testing软件测试网7bZTCuNy
/dev/disk/by-label/win /windows/C ntfs-3g user,users,gid=users,umask=0002 0 0
6aUccG9dw'NY$`%k0
t^"w5LNq8x0Make 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.
xIf D1qLc'^#_0OUB-VT@"Iw5tT0Alternatively, 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-label
orby-id
are preferred over/dev/sd*
nodes because they will remain the same while the disk could show up under, say,/dev/sdc
instead of/dev/sda
(the latter of which depends on the order they were plugged in and/or recognized).51Testing软件测试网$i1Kf0Ke{h/~)@b
手动挂载
51Testing软件测试网 {Odd#Zg9fw如果您想手动关注NTFS分区,请使用ntfs-3g命令制定磁盘分区为NTFS。例,挂载一个分区标签为"windows"的只读NTFS分区到/mnt
目录下:51Testing软件测试网
c e-ks+DI(l Ps
ntfs-3g -o ro,gid=users,umask=0002 /dev/disk/by-label/windows /mnt51Testing软件测试网;O!QU5u~
$^6w/w:\\M\&JhI+R0最后部分也可以使用:
+k%HwP.xoZ0su -c yast2 disk51Testing软件测试网E&Fq0H4{{;[m
'pnZ$R2}3Ky*V ?0这跟到YaST--系统--Partitioner设定一样。
c:Zx'o ex051Testing软件测试网 Nn_u,X想了解完整详尽的利用ntfs-3g和umount命令来挂载和卸载NTFS分区的方法,请阅读它们的说明文档。
7{uB1~L L*O8Bd01GXr:Zq&o{4^I"g0If 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软件测试网5~9Pc[@+ev
ntfs-3g -o ro,gid=users,umask=0002 /dev/disk/by-label/windows /mnt
+za%xi&M+Y!Q0
$g2D%F7z w?mE0This last part can also be done using:
s}g"x&nG4`3Z0su -c yast2 disk51Testing软件测试网1E&Xn8R+^!y)xn
Q#A"l0Q:T3tn6U0
Which is the same as YaST -- System -- Partitioner51Testing软件测试网 H/u7Z.@-i-_?(D ]
(d.\O_x6o0For full details on using the ntfs-3g and umount commands to mount and unmount NTFS partition, read their manuals.51Testing软件测试网 m H8m7wL0Ut!`
排疑解惑
#`1@5P^O{0用ntfs-fuse挂载NTFS比使用ntfs-3g有很大劣势;每个目录至多能创建10个文件。如果您打算将NTFS分区用于更多用途,您应该使用更合适的NTFS驱动,例如ntfs-3g。
F;o1DN`4P W1aH051Testing软件测试网6I$k{3\cA如果您在Guru YaST源里找不到ntfs-3g,试试在suser-jengelh里搜索,或直接从ntfs-3g网站下载。安装ntfs-3g前,确定fuse已启动(modprobe fuse
),如未启动,在系统设定中加入系统启动:用YaST/System/sysconfig编辑;选择System/Kernel/MODULES_LOADED_ON_BOOT;写入fuse
,单击完成按钮。
$y \oHy&k5j0这步骤是简单易懂的(./configure; make; make install)。挂载选项除了驱动名称,其他非常相似(ntfs-3g instead of ntfs-fuse)。51Testing软件测试网P+Ps1N/r3s
51Testing软件测试网D]v b*IThe 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.
%`Z:i(w0r{ r'HXL051Testing软件测试网J5z1A;M X(} kIf 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; writefuse
in it and click the Finish button.
The 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:NTFS
0uR;N7~*|,z N0TAG:
标题搜索
日历
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
1 | 2 | 3 | 4 | 5 | 6 | ||||
7 | 8 | 9 | 10 | 11 | 12 | 13 | |||
14 | 15 | 16 | 17 | 18 | 19 | 20 | |||
21 | 22 | 23 | 24 | 25 | 26 | 27 | |||
28 | 29 | 30 |
我的存档
数据统计
- 访问量: 31142
- 日志数: 54
- 图片数: 1
- 建立时间: 2008-10-20
- 更新时间: 2010-01-13