wanggang 发表于 2005-2-3 21:29:28

如何在redhat linux 9下挂载winXP下的东西

本人电脑是XP和redhat linux 9,想在linux下访问XP里的东西,使用如下命令无用,请高手指点:
   1.#fdisk -l   可以看到XP下的分区
   2.#mkdir /mnt/c
      #mkdir /mnt/d    建立两个目录 ,分区为/dev/hda5和/dev/hda6
   3.#chmod 777 /mnt/d
      #chmod 777 /mnt/c   给权限
   4.#mount -t fat32 iocharset=cp936 /dev/hda5 /mnt/c
       #mount -t fat32 iocharset=cp936 /dev/hda5 /mnt/d   进行挂载
运行后无用,请教老师,谢了!

:(

风化狼 发表于 2005-2-3 21:36:01

mount -t vfat /dev/hda5 /mnt/c

风化狼 发表于 2005-2-3 21:37:26

如果不行,要把内核编译进NTFS的文件系统支持.

ferro 发表于 2005-2-3 22:20:05

默认没有NTFS的支持,建议下载支持NTFS的RPM安装,比重新编译内核安全方便快捷得多。

ferro 发表于 2005-2-3 22:31:36

mount -t vfat -o iocharset=cp936 /dev/hda5 /mnt/c

zhy2111314 发表于 2005-2-4 10:34:09

如果想默认挂载,直接修改/etc/fstab,下面是我的,可以参考:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type><options>       <dump><pass>
proc            /proc         proc    defaults      0       0
/dev/hda3       /               reiserfs notail          0       1
/dev/hda4       none            swap    sw            0       0
/dev/hdd      /media/cdrom0   iso9660 ro,user,noauto0       0
/dev/fd0      /media/floppy0auto    rw,user,noauto0       0
/dev/hda1       /mnt/c          vfat    rw,users,dmask=000,fmask=0111,umask=0,codepage=936,iocharset=cp936 0 0
/dev/hda5       /mnt/d          vfat    rw,users,dmask=000,fmask=0111,umask=0,codepage=936,iocharset=cp936 0 0
/dev/hda6       /mnt/e          ntfs    rw,users,umask=0,iocharset=utf8 0 0
#/dev/sda1       /mnt/usb      vfat    rw,users,dmask=000,fmask=0111,umask=0,codepage=936,iocharset=cp936 0 0

zhy2111314 发表于 2005-2-4 10:35:15

ps:最后一项是u盘的,因为我用usb声卡,所以平时不用就注释掉了

wanggang 发表于 2005-2-4 22:29:10

各位老师,我是菜鸟,我没修改/etc/fstab里的内容,使用您告诉我的方法,但出现如下提示,不知什么意思,再次请教,谢谢了!
# mount -t vfat -o iocharset=cp936 /dev/hdg6/WinD
Usage: mount -V               : print version
       mount -h               : print this help
       mount                  : list mounted filesystems
       mount -l               : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...   : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using-L labelor by uuid, using-U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, sayman 8 mount .

zhy2111314 发表于 2005-2-5 15:00:58

各位老师,我是菜鸟,我没修改/etc/fstab里的内容,使用您告诉我的方法,但出现如下提示,不知什么意思,再次请教,谢谢了!
# mount -t vfat -o iocharset=cp936 /dev/hdg6/WinD


请注意红色部分,应该是/dev/hdg6 /WinD中间要有空格!

wanggang 发表于 2005-2-6 17:59:01

谢谢您的指点,我在敲命令的时候有空格,但是还是不行!
在我的BIOS里没有硬盘的数据,是不是和这个有关!

月下刀客 发表于 2005-2-6 19:20:01

各位老师,我是菜鸟,我没修改/etc/fstab里的内容,使用您告诉我的方法,但出现如下提示,不知什么意思,再次请教,谢谢了!
# mount -t vfat -o iocharset=cp936 /dev/hdg6/WinD

你看你都输了些什么?
mount   -o   ocharset=cp936    /dev/hda6    /mnt/d

wanggang 发表于 2005-2-6 19:39:21

我用#fdisk -l查看,信息如下:
Disk /dev/hdg: 20.4 GB, 20485785600 bytes
255 heads, 63 sectors/track, 2490 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   IdSystem
/dev/hdg1   *         1       832   6683008+   bWin95 FAT32
/dev/hdg2         833      248913309852+   fWin95 Ext'd (LBA)
/dev/hdg5         833      1724   7164958+   bWin95 FAT32
/dev/hdg6          1725      2422   5606653+83Linux
/dev/hdg7          2423      2488    530113+82Linux swap
输入的有错吗?

月下刀客 发表于 2005-2-6 19:45:38

:?:?:?

wanggang 发表于 2005-2-6 20:41:59

不明白,什么意思?
请指点!

wanggang 发表于 2005-2-6 21:53:35

我成功了,谢谢了!
:wink:
页: [1] 2
查看完整版本: 如何在redhat linux 9下挂载winXP下的东西