* 查看uuid
/etc# blkid
/dev/sda1: uuid="9a1a667c1a6654f3" type="ntfs"
/dev/sda2: uuid="2ce265b9e2658842" type="ntfs"
/dev/sda4: label="lenovo_part" uuid="fc9e9e629e9e14ec" type="ntfs"
/dev/sda5: label="d" uuid="5c5efcf05efcc3b4" type="ntfs"
/dev/sda6: label="m-em-$m-^gm-dm-;m-=" uuid="629afa8d9afa5d4b" type="ntfs"
/dev/sda7: uuid="a1a95718-fe4a-471f-bfd8-5bc9af522c16" type="swap"
/dev/sda8: uuid="d2dd8fc9-1120-4160-9d3d-2a224b88ee5d" type="ext4"
* 查看分区
/etc# fdisk -l
disk /dev/sda: 500.1 gb, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
units = sectors of 1 * 512 = 512 bytes
sector size (logical/physical): 512 bytes / 512 bytes
i/o size (minimum/optimal): 512 bytes / 512 bytes
disk identifier: 0x00dc3506
device boot start end blocks id system
/dev/sda1 * 2048 411647 204800 7 hpfs/ntfs/exfat
/dev/sda2 411648 102811647 51200000 7 hpfs/ntfs/exfat
/dev/sda3 102813694 945829887 421508097 f w95 ext'd (lba)
/dev/sda4 945829888 976773167 15471640 12 compaq diagnostics
/dev/sda5 102813696 328093695 112640000 7 hpfs/ntfs/exfat
/dev/sda6 328095744 639756287 155830272 7 hpfs/ntfs/exfat
/dev/sda7 941922304 945829887 1953792 82 linux swap / solaris
/dev/sda8 639758336 941907967 151074816 83 linux
partition table entries are not in disk order
* 创建挂载点
在/media下创建c,d,e三个目录,命令如下:
sudo mkdir /media/c
sudo mkdir /media/d
sudo mkdir /media/e
* 编辑/etc/fstab文件
/etc# emacs /etc/fstab
在这个文件中加入如下信息
# 这三个是为了开机自动挂载windows下的c盘和d盘和e盘
uuid=2ce265b9e2658842 /media/c ntfs defaults,codepage=936,iocharset=gb2312 0 0
uuid=5c5efcf05efcc3b4 /media/d ntfs defaults,codepage=936,iocharset=gb2312 0 0
uuid=629afa8d9afa5d4b /media/e ntfs defaults,codepage=936,iocharset=gb2312 0 0
阅读(2096) | 评论(0) | 转发(0) |