* 查看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
阅读(2145) | 评论(0) | 转发(0) |