红联Linux门户
Linux帮助

如何在linux下挂载windows的分区?具体点,不胜感激!

发布时间:2007-10-09 13:31:13来源:红联作者:lotus027
我是新手,“挂载”一词也是刚了解。想在linux下打开查看我在XP里的文件(电影,歌曲,文档等)。我也查了些书,按照上面的说明来,结果如下,仍不知道下一步该怎么做:希望大家多多指导下,将不胜感激!
附:(我的操作如下,有点长,说实话,按书本里操作的 我自己也看不懂~~~)
root@localhost ~]# fdisk -1
fdisk:无效选项 -- 1

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
[root@localhost ~]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 c W95 FAT32 (LBA)
/dev/sda2 1306 9729 67665780 f W95 Ext'd (LBA)
/dev/sda5 1306 3916 20972826 b W95 FAT32
/dev/sda6 3917 4438 4192933+ b W95 FAT32
/dev/sda7 4439 5332 7181023+ b W95 FAT32
/dev/sda8 5333 5345 104391 83 Linux
/dev/sda9 5346 5410 522081 82 Linux swap / Solaris
/dev/sda10 5411 6527 8972271 83 Linux
/dev/sda11 6528 9729 25720033+ b W95 FAT32
[root@localhost ~]# mkdir/mnt/wind
bash: mkdir/mnt/wind: 没有那个文件或目录
[root@localhost ~]# mkdir
mkdir: 缺少操作数
请尝试执行“mkdir --help”来获取更多信息。
[root@localhost ~]# mkdir /mnt/wind
[root@localhost ~]# mount -t vfat -0 iocharset=utf8,umask=000 /dev/hda2/mnt/wind
mount:无效选项 -- 0
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
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
[root@localhost ~]# df -lh
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda10 8.3G 4.7G 3.3G 59% /
/dev/sda8 99M 19M 76M 20% /boot
tmpfs 121M 0 121M 0% /dev/shm :time:1
文章评论

共有 5 条评论

  1. lotus027 于 2007-10-09 19:52:49发表:

    ?新内核?:0(1

  2. gxf 于 2007-10-09 19:13:27发表:

    引用:
    原帖由 lotus027 于 2007-10-9 18:47 发表
    呵呵,谢谢大家啊,我再去试一下了,二楼说的也是,我正觉得奇怪:我的硬盘是IED接口,不是SCSI接口哦,怎么系统显示的是sda而不是hda? :0(1
    总之谢谢大家了.^_^

    这是新内核的原因

  3. lotus027 于 2007-10-09 18:47:25发表:

    呵呵,谢谢大家啊,我再去试一下了,二楼说的也是,我正觉得奇怪:我的硬盘是IED接口,不是SCSI接口哦,怎么系统显示的是sda而不是hda? :0(1
    总之谢谢大家了.^_^

  4. kemen 于 2007-10-09 17:39:07发表:

    如下是我自已用的步?:
    1)用如下命令在 /mnt 上建立一?文件?:
    mkdir /mnt/win

    2)?主的 /sda1 sda5 sda6 sda7 sda11 都 是windows 的FAT32格式分?,可用如下命令?行??windows下的D?(其它?命令?似)

    mount -t vfat -o iocharset=cp950 /dev/hda5 /mnt/win

    ?入/mnt/win ?即可?到windows下D?的?容

    3)?主注意命令中的空格和大小?哦.linux 下的命令是分大小?的.

  5. xiaoyun5109 于 2007-10-09 14:13:13发表:

    mount -t vfat -o iocharset=utf8 /dev/sda5 /mnt/wind
    df -lh里面都显示的是sda,你怎么还mount /dev/hda