本教程中使用的是:
Linux(CentOS-5.5)
Windows-XP SP2
80G XP下物理硬盘(FAT32格式)
320G WIN下移动硬盘(NTFS格式)
256M手机内存卡(FAT16格式)
并联XP下物理硬盘B 到Linux 主机:
=====================================================================
可见只有:/dev/hdb 40.0GB,的分区。。。
关闭机器,接上XP下的物理硬盘B、USB插接--移动硬盘、手机内存卡。【再次开启机器】
Disk /dev/hda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 2295 18434556 c W95 FAT32 (LBA)
/dev/hda2 2296 10011 61978770 f W95 Ext'd (LBA)
/dev/hda5 2296 4845 20482843+ b W95 FAT32
/dev/hda6 4846 7395 20482843+ b W95 FAT32
/dev/hda7 7396 10011 21012988+ b W95 FAT32
值得说明的是:以上挂载物理硬盘内分区略过了/dev/hda2 只设定了/hda1 /hda5 /hda6 /hda7
/hda2 为扩展磁盘分区, /hda5 /hda6 /hda7 均在 /hda2内包含,它只相当于一个“文件夹” 如下见图解:
直接使用:mount /磁盘识别名称 /挂载点下文件系统对应文件夹名称
mount /dev/hda1 /XPdisk/hda1 也可以使用
mount -t mount -t vfat /dev/hda1 /XPdisk/hda1
注明:-t vfat 适合FAT32 - FAT16 的系统,若是ntfs文件格式使用:-t ntfs 若Linux系统不支持安装:ntfs-3g
FAT32(win98文件格式)FAT16(MSDOS文件格式)NTFS(XP-NT-2003文件格式)
Last login: Sat Dec 18 19:12:40 2010 from 192.168.1.110
[root@host ~]# mount /dev/hda1 /XPdisk/hda1
[root@host ~]# mount /dev/hda5 /XPdisk/hda5
[root@host ~]# mount /dev/hda6 /XPdisk/hda6
[root@host ~]# mount /dev/hda7 /XPdisk/hda7
[root@host ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/hdb5 19G 14G 4.6G 75% /
/dev/hdb9 7.1G 3.0G 3.7G 45% /usr
/dev/hdb8 487M 11M 451M 3% /tmp
/dev/hdb6 996M 112M 833M 12% /var
/dev/hdb4 7.2G 1.2G 5.7G 17% /home
/dev/hdb3 99M 12M 83M 12% /boot
tmpfs 125M 0 125M 0% /dev/shm
/dev/hda1 18G 12G 6.0G 66% /XPdisk/hda1
/dev/hda5 20G 19G 992M 96% /XPdisk/hda5
/dev/hda6 20G 16G 3.6G 82% /XPdisk/hda6
/dev/hda7 21G 10G 11G 50% /XPdisk/hda7
[root@host ~]#
Last login: Sat Dec 18 19:49:32 2010 from 192.168.1.110
[root@host ~]# mount -t ntfs /dev/sdb1 /Liuxinxiu-disk/sdb1
mount: unknown filesystem type 'ntfs' 此处报错:未知类型!是由于系统没有更新不支持ntsf 安装ntfs-3g即可!
[root@host ~]# mount -t ntfs-3g /dev/sdb1 /Liuxinxiu-disk/sdb1
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
[root@host ~]# mount -t ntfs-3g /dev/sdb2 /Liuxinxiu-disk/sdb2
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
[root@host ~]# mount -t ntfs-3g /dev/sdb3 /Liuxinxiu-disk/sdb3
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
[root@host ~]# mount -t ntfs-3g /dev/sdb4 /Liuxinxiu-disk/sdb4
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
[root@host ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/hdb5 19G 14G 4.6G 75% /
/dev/hdb9 7.1G 3.0G 3.7G 45% /usr
/dev/hdb8 487M 11M 451M 3% /tmp
/dev/hdb6 996M 113M 832M 12% /var
/dev/hdb4 7.2G 1.2G 5.7G 17% /home
/dev/hdb3 99M 12M 83M 12% /boot
tmpfs 125M 0 125M 0% /dev/shm
/dev/hda1 18G 12G 6.0G 66% /XPdisk/hda1
/dev/hda5 20G 19G 992M 96% /XPdisk/hda5
/dev/hda6 20G 16G 3.6G 82% /XPdisk/hda6
/dev/hda7 21G 10G 11G 50% /XPdisk/hda7
/dev/sdb1 101G 94G 6.7G 94% /Liuxinxiu-disk/sdb1
/dev/sdb2 98G 97G 907M 100% /Liuxinxiu-disk/sdb2
/dev/sdb3 50G 30G 21G 60% /Liuxinxiu-disk/sdb3
/dev/sdb4 51G 50G 997M 99% /Liuxinxiu-disk/sdb4
[root@host ~]#
[root@host ~]# mount -t vfat /dev/sda1 /mobile
[root@host ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/hdb5 19G 14G 4.6G 75% /
/dev/hdb9 7.1G 3.0G 3.7G 45% /usr
/dev/hdb8 487M 11M 451M 3% /tmp
/dev/hdb6 996M 113M 832M 12% /var
/dev/hdb4 7.2G 1.2G 5.7G 17% /home
/dev/hdb3 99M 12M 83M 12% /boot
tmpfs 125M 0 125M 0% /dev/shm
/dev/hda1 18G 12G 6.0G 66% /XPdisk/hda1
/dev/hda5 20G 19G 992M 96% /XPdisk/hda5
/dev/hda6 20G 16G 3.6G 82% /XPdisk/hda6
/dev/hda7 21G 10G 11G 50% /XPdisk/hda7
/dev/sdb1 101G 94G 6.7G 94% /Liuxinxiu-disk/sdb1
/dev/sdb2 98G 97G 907M 100% /Liuxinxiu-disk/sdb2
/dev/sdb3 50G 30G 21G 60% /Liuxinxiu-disk/sdb3
/dev/sdb4 51G 50G 997M 99% /Liuxinxiu-disk/sdb4
/dev/sda1 242M 224M 18M 93% /mobile
[root@host ~]#
全部完成,以下是通过SSH 查看Linux下文件的截图:
XP下物理硬盘B.【J:\分区】
手机内存卡:
刘新修的移动硬盘【Liuxinxiu-disk】
转载请标明出处:http://liuxinxiu.com/