一、需要了解到一个命令
------------------------------
1、fdisk -l (查看磁盘分区情况)
[root@localhost javier]# /sbin/fdisk -l
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot
Start
End Blocks Id System
/dev/hda1
*
1
1148 9221278+ 7 HPFS/NTFS
/dev/hda2
1149 4864
29848770 f W95 Ext'd (LBA)
/dev/hda5
1149 3061
15366141 b W95 FAT32
/dev/hda6
3062
3074 104391 83 Linux
/dev/hda7
3075 4864
14378143+ 8e Linux LVM
2、mount (磁盘分区的挂载命令)
mount 挂载磁盘分区的用法:
mount -t 文档格式 -o 选项参数 磁盘分区 挂载点目录名
3、df -lh (磁盘使用情况的命令)
[root@localhost javier]# df -lh
Filesystem 容量 已用 可用 已用% 挂载点
/dev/mapper/VolGroup00-LogVol00
12G 4.6G 6.7G 41% /
/dev/hda6
99M 14M 80M 15% /boot
/dev/shm
371M 0 371M 0% /dev/shm
/dev/hdc
2.6M 2.6M 0 100% /media/cdrecorder
/dev/hda5
15G 14G 1.1G 93% /mnt/windowsD
二、NTFS和FAT32格式文档系统的加载
-----------------------------------
1、建立挂载点的目录
[root@localhost javier]# mkdir /mnt/windowsC (这个目录用来挂载NTFS的C盘)
[root@localhost javier]# mkdir /mnt/windowsD (这个目录用来挂载FAT32的D盘)
2、执行mount命令进行挂载
NTFS:
[root@localhost javier]#
mount -t ntfs -o nls=utf8,umask=000 /dev/hda1 /mnt/windowsC
(把/dev/hda1 挂载到 /mnt/windowsC中,能够看到/dev/hda1也就是c盘里面到内容)
FAT32:
[root@localhost javier]#
mount -t vfat -o iocharset=utf8,umask=000 /dev/hda5 /mnt/windowsD
(把/dev/hda5 挂载到 /mnt/windowsD中,能够看到/dev/hda5也就是D盘里面到内容)
3、能够用df -lh看是否挂载成功
三、开机自动加载挂好到分区
------------------------
在/etc/fstab文档中加入;
/dev/hda1 /mnt/windowsC ntfs umask=000,nls=utf8 0 0
/dev/hda5 /mnt/windowsD vfat umask=000,iocharset=utf8 0 0
四、将磁盘分区放在javier用户的桌面
---------------------
[javier@localhost ~]$ ln -s /mnt/windowsC/ ~javier/Desktop/windowsC
[javier@localhost ~]$ ln -s /mnt/windowsD/ ~javier/Desktop/windowsD
注:假如文本文档出现乱码,把他改为utf8格式
------------------------------
1、fdisk -l (查看磁盘分区情况)
[root@localhost javier]# /sbin/fdisk -l
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot
Start
End Blocks Id System
/dev/hda1
*
1
1148 9221278+ 7 HPFS/NTFS
/dev/hda2
1149 4864
29848770 f W95 Ext'd (LBA)
/dev/hda5
1149 3061
15366141 b W95 FAT32
/dev/hda6
3062
3074 104391 83 Linux
/dev/hda7
3075 4864
14378143+ 8e Linux LVM
2、mount (磁盘分区的挂载命令)
mount 挂载磁盘分区的用法:
mount -t 文档格式 -o 选项参数 磁盘分区 挂载点目录名
3、df -lh (磁盘使用情况的命令)
[root@localhost javier]# df -lh
Filesystem 容量 已用 可用 已用% 挂载点
/dev/mapper/VolGroup00-LogVol00
12G 4.6G 6.7G 41% /
/dev/hda6
99M 14M 80M 15% /boot
/dev/shm
371M 0 371M 0% /dev/shm
/dev/hdc
2.6M 2.6M 0 100% /media/cdrecorder
/dev/hda5
15G 14G 1.1G 93% /mnt/windowsD
二、NTFS和FAT32格式文档系统的加载
-----------------------------------
1、建立挂载点的目录
[root@localhost javier]# mkdir /mnt/windowsC (这个目录用来挂载NTFS的C盘)
[root@localhost javier]# mkdir /mnt/windowsD (这个目录用来挂载FAT32的D盘)
2、执行mount命令进行挂载
NTFS:
[root@localhost javier]#
mount -t ntfs -o nls=utf8,umask=000 /dev/hda1 /mnt/windowsC
(把/dev/hda1 挂载到 /mnt/windowsC中,能够看到/dev/hda1也就是c盘里面到内容)
FAT32:
[root@localhost javier]#
mount -t vfat -o iocharset=utf8,umask=000 /dev/hda5 /mnt/windowsD
(把/dev/hda5 挂载到 /mnt/windowsD中,能够看到/dev/hda5也就是D盘里面到内容)
3、能够用df -lh看是否挂载成功
三、开机自动加载挂好到分区
------------------------
在/etc/fstab文档中加入;
/dev/hda1 /mnt/windowsC ntfs umask=000,nls=utf8 0 0
/dev/hda5 /mnt/windowsD vfat umask=000,iocharset=utf8 0 0
四、将磁盘分区放在javier用户的桌面
---------------------
[javier@localhost ~]$ ln -s /mnt/windowsC/ ~javier/Desktop/windowsC
[javier@localhost ~]$ ln -s /mnt/windowsD/ ~javier/Desktop/windowsD
注:假如文本文档出现乱码,把他改为utf8格式