Remove HardDrive UUID setting
RHEL7
修改以下設定前,請先備份,萬一改錯還可以透過光碟救援去還原。
/etc/fstab
檢查使用UUID之分割:
[root@localhost etc]# vim /etc/fstab /dev/mapper/rhel-root / xfs defaults 1 1 UUID=f9fef01c-c969-4595-9676-4504d3a0bf5b /boot xfs defaults 1 2 /dev/mapper/rhel-home /home xfs defaults 1 2 /dev/mapper/rhel-swap swap swap defaults 0 0
確認/boot所對應的分割位置:
[root@localhost grub2]# blkid /dev/sda1: UUID="f9fef01c-c969-4595-9676-4504d3a0bf5b" TYPE="xfs" /dev/sda2: UUID="130rd3-2hqt-Rhpk-xU3D-Fi63-KEa7-JgiNLa" TYPE="LVM2_member" /dev/mapper/rhel-root: UUID="2a0c5ae5-d39f-4ad5-a725-bbd8eb7b759a" TYPE="xfs" /dev/mapper/rhel-swap: UUID="f17eede0-14c2-46b5-b756-44d02122c50d" TYPE="swap" /dev/sr0: UUID="2014-09-15-11-54-53-00" LABEL="20140915-trusty-amd64" TYPE="iso9660" PTTYPE="dos" /dev/mapper/rhel-home: UUID="d107c5cc-eb44-4629-8899-509d962ee0a0" TYPE="xfs"
取代UUID=f9fef01c-c969-4595-9676-4504d3a0bf5b為/dev/sda1:
[root@localhost etc]# vim /etc/fstab /dev/mapper/rhel-root / xfs defaults 1 1 /dev/sda1 /boot xfs defaults 1 2 /dev/mapper/rhel-home /home xfs defaults 1 2 /dev/mapper/rhel-swap swap swap defaults 0 0
/boot/grub2/grub.cfg
[root@localhost etc]# vim /boot/grub2/grub.cfg 將UUID=xxxx都取代為blkid所找到的分割
留言
張貼留言