Skip to content

디스크 UUID 변경후 하드부팅정보 수정하기

조회 수 21008 추천 수 0 2014.02.26 14:39:56
현재 하드  UUID 보는 방법은 아래와 같다..

[root@~]# blkid

/dev/sda1: UUID="abda63c5-973f-4981-9e55-5e93eeac9031" TYPE="ext4" 
/dev/sda2: UUID="6d5741e5-cbdd-4e84-8638-88e77a444194" TYPE="swap" 



새로운 UUID 생성 방법은 아래와 같다

[root@ ~]# uuidgen
2efc628d-a648-4f4a-96af-925f13e1ee70

 tune2fs /dev/sda1 -U ******   <- 생성된 UUID 값을 넣어주면 바로 바뀐다.

변경된 UUID 값으로 부팅하고 싶으면 아래 파일 부분에 붉은색 부분을 수정후 저장 한다


[root@ ~]# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/sda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-358.2.1.el6.x86_64)
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-358.2.1.el6.x86_64 root=UUID=abda63c5-973f-4981-9e55-5e93eeac9031 ro rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=ko_KR.UTF-8 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet crashkernel=auto
initrd /boot/initramfs-2.6.32-358.2.1.el6.x86_64.img



[root@I~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Wed Jun  6 02:23:29 2012
#
# 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
#
UUID=abda63c5-973f-4981-9e55-5e93eeac9031 /                       ext4    defaults        1 1
UUID=6d5741e5-cbdd-4e84-8638-88e77a444194 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



profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/261967/0f9/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수
347 SSL 패스워드 삭제 하기 ADMINPLAY 2014-04-27 5346
346 SCM - 캐시 서버 구축 (Squid in Linux) ADMINPLAY 2014-04-27 8229
345 CentOS Linux Remote Desktop 에서 로그인 화면보기 ADMINPLAY 2014-04-14 7797
344 CentOS 자동로그인 설정 ADMINPLAY 2014-04-14 8826
343 Linux Command 로 Mysql table drop 방법 ADMINPLAY 2014-04-07 5696
342 gcc Library 경로 지정 ADMINPLAY 2014-04-07 6007
341 CentOS 5.6 + NginX 0.8.54 + Django 1.3 (FastCGI) + Pyt... ADMINPLAY 2014-03-28 6163
340 CentOS 6.5 + Python2.7 + MySQL_Python-1.2.3 ADMINPLAY 2014-03-28 7943
339 python과 mysql 연동시 libmysqlclient_r.so.* 에러가 날 ... ADMINPLAY 2014-03-27 5518
338 python mysql connector 설치 및 SQLAachemy 연동 ADMINPLAY 2014-03-27 7875
337 SVN 클라이언트 명령어 ADMINPLAY 2014-03-18 7429
336 CentOS 6.X GUI 로그인 화면에서 로그인 했던 계정 리스트... ADMINPLAY 2014-03-05 16647
335 OS X 매버릭스가 NAS, 윈도우 PC 등 SMB 장비에 연결하지 ... ADMINPLAY 2014-03-04 6735
334 OS X 10.9 매버릭스의 기본 파일공유 프로토콜은 AFP가 아... ADMINPLAY 2014-03-04 10984
333 telnet 과 ssh 의 차이점 ADMINPLAY 2014-03-01 6454
332 vimrc 설정 file ADMINPLAY 2014-03-01 6082
331 Linux 마우스 휠 방향 바꾸기 (mac 처럼 마우스 휠 바꾸기) ADMINPLAY 2014-02-27 11840
» 디스크 UUID 변경후 하드부팅정보 수정하기 ADMINPLAY 2014-02-26 21008
329 linux daemon (리눅스 데몬 설명) ADMINPLAY 2014-02-26 647774
328 Strace - 시스템콜과 신호 추적 file ADMINPLAY 2014-02-25 6043

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234