标签:
参考:http://linuxso.com/linuxrumen/3658.html
参考:http://www.jb51.net/os/RedHat/213998.html
查看磁盘UUID信息
[root@Linux]# blkid
/dev/mapper/vg_tsprlswebserv-lv_root: UUID="3dedb8a7-69c5-44d7-b590-e70a0b1b3c9a" TYPE="ext4"
/dev/sdb1: UUID="e85dd659-bb20-4d12-a8bc-16130efc04ea" TYPE="ext4"
/dev/sda1: UUID="97f12da1-c972-4508-9028-9b98cde34a34" TYPE="ext4"
/dev/sda2: UUID="cKJ1xc-8mci-0d89-DNaR-5IAG-2JOv-V1G1q9" TYPE="LVM2_member"
/dev/mapper/vg_tsprlswebserv-lv_swap: UUID="aa4589df-1d47-4060-a419-9c4432c3bb9a" TYPE="swap"
/dev/mapper/vg_tsprlswebserv-lv_home: UUID="17a62039-4676-45ce-8eb9-1914e2d4820c" TYPE="ext4"
编辑系统分区表
[root@Linux]# vi /etc/fstab
添加如下信息:(每个域的详细说明参见:http://www.cnblogs.com/wrencai/p/4581856.html)
UUID=e85dd659-bb20-4d12-a8bc-16130efc04ea /tsp ext4 defaults 1 2
编辑后的信息如下:
#
# /etc/fstab
# Created by anaconda on Thu Aug 21 17:17:19 2014
#
# Accessible filesystems, by reference, are maintained under ‘/dev/disk‘
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_tsprlswebserv-lv_root / ext4 defaults 1 1
UUID=97f12da1-c972-4508-9028-9b98cde34a34 /boot ext4 defaults 1 2
UUID=e85dd659-bb20-4d12-a8bc-16130efc04ea /tsp ext4 defaults 1 2
/dev/mapper/vg_tsprlswebserv-lv_home /home ext4 defaults 1 2
/dev/mapper/vg_tsprlswebserv-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
保存退出;重启系统,确认自动挂载成功。
标签:
原文地址:http://www.cnblogs.com/wrencai/p/4581868.html