QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 917|回复: 9

RH9/XP双系统, 用samba可以看见XP分区吗?

[复制链接]
发表于 2004-2-20 00:38:59 | 显示全部楼层 |阅读模式
只有一台机器, 不想(不敢)尝试重新编译内核(新手嘛), 以为samba好用所以就装了samba, 但捉摸半天也查了半天也没明白怎样才能看见XP(ntfs)的分区,请各位有经验的指点
发表于 2004-2-20 00:49:07 | 显示全部楼层
mount
回复

使用道具 举报

 楼主| 发表于 2004-2-20 04:12:58 | 显示全部楼层
[quote:34a1434d83="xx_zz"]mount[/quote]

能不能麻烦兄弟说详细点?
回复

使用道具 举报

发表于 2004-2-20 09:21:45 | 显示全部楼层
rh的系统需要编译ntfs的模块
[quote:6c8a3e69c4="ottawa"][原文URL]
http://fedoranews.org/jorge/howto/howto04.shtml

HOWTO: Add NTFS module to FC1
by Jorge Gallegos (Thanks goes to Hernan Fernandez from Chile for this howto)

Sometimes you need to access some NTFS partition(s) in your disk drive, and you maybe don't have the version 2.6 of the linux kernel (which already comes with native NTFS reading support and experimental NTFS writing support), this is an easy way to do that.

This is done by compiling the NTFS module and loading it as needed, this same process is described in detail here.
If you don't have already installed the kernel source, you can download it here (we will be using version 2.4.22-1.2129 for i586 during the example), and do the following:

$ sudo rpm -ivh kernel-source-2.4.22-1.2129.nptl.i586.rpm
$ cd /usr/src/linux-2.4.22-1.2129.nptl
$ sudo make menuconfig

Go to the "File System" menu and select the "NTFS file system support" item, "exit", "exit and save". Then run:

$ sudo make SUBDIRS=fs/ntfs modules

Now your ntfs.o (the NTFS support module) is in /usr/src/linux-2.4.22-1.2129.nptl/fs/ntfs, you copy it to your modules directory:

$ sudo cp /usr/src/linux-2.4.22-1.2149.nptl/fs/ntfs/ntfs.o /lib/modules/2.4.22-1.2149.nptl/kernel/fs/ntfs/

And then you can check by modprobing it:

$ sudo modprobe ntfs

If everything went ok, then you can now mount your elusive (until now) NTFS partition.

$ sudo mount -t ntfs /dev/hda1 /mnt/ntfs

Remember that the driver is READ-ONLY, if you try to write it will tell you that it's a read-only mounted file systems, but anyway, be careful. Also, you might want to add the command in your /etc/rc.sysinit to modprobe the ntfs module each time you boot the computer and add the proper entry in your /etc/fstab file for the NTFS partition.

More information about NTFS and Fedora Core 1 can be found here.[/quote]
回复

使用道具 举报

发表于 2004-2-20 09:33:48 | 显示全部楼层
汉字文件名怎么办?
回复

使用道具 举报

 楼主| 发表于 2004-2-21 03:19:35 | 显示全部楼层
[quote:d3a5112b8a="wanglong_jiang"]rh的系统需要编译ntfs的模块
[quote:d3a5112b8a="ottawa"][原文URL]
http://fedoranews.org/jorge/howto/howto04.shtml

HOWTO: Add NTFS module to FC1
by Jorge Gallegos (Thanks goes to Hernan Fernandez from Chile for this howto)
[/quote][/quote]

原始的链接已经不存在了, howto 只剩下 01 和 02
回复

使用道具 举报

发表于 2004-2-23 17:41:02 | 显示全部楼层
汉字文件名在mount后面加上-o iocharset=cp936就可以了
回复

使用道具 举报

发表于 2004-2-24 12:08:49 | 显示全部楼层
可以用vm嘛
回复

使用道具 举报

发表于 2004-2-24 16:19:02 | 显示全部楼层
同一台机器,不用vm不关samba 什么事吧!
回复

使用道具 举报

发表于 2004-2-26 11:11:04 | 显示全部楼层
楼上正解!

2楼已经是正解了.

mount /dev/欲挂载的硬盘分区  /mnt/欲挂载的目录  -t vft -o iocharset=cp936
如果是nt分区格式就要编译编译内核了

这个不要问我
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-13 04:10 , Processed in 0.074379 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表