Skip to content

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

조회 수 21011 추천 수 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/8d4/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
367 linux daemon (리눅스 데몬 설명) ADMINPLAY 2014-02-26 647835
366 대용량 HDD 파티셔닝(Mass storage Partitioning) (GPT 파... ADMINPLAY 2010-04-14 73672
365 FFMPEG를 가장쉽게 설치하는 방법(ffmpeg-php 등) ADMINPLAY 2010-05-03 66443
364 rrdtool 컴파일시 에러 configure: error: Please fix the... ADMINPLAY 2009-08-08 64804
363 커널 2.6으로 업그레이드!「A to Z」 ADMINPLAY 2009-08-08 64449
362 e2fsck - 파일 시스템 복구 및 검사. - fsck file ADMINPLAY 2010-09-12 60903
361 배치파일을 이용한 백업방법 l2zeo 2010-03-31 59533
360 Maskrading ADMIN 2008-11-11 58817
359 시스템 백업과 응급 복구 ADMINPLAY 2009-05-11 58779
358 리눅스 전원부터 부팅이 되기까지의 과정이해 ADMIN 2008-11-11 57653
357 리눅스 디렉토리 구조와 파티션 관리의 기본 ADMINPLAY 2009-05-22 57604
356 hdparm 세부옵션 ADMINPLAY 2012-01-16 55166
355 CentOS 설치 - VMware 상에서 CentOS 설치하기 file l2zeo 2010-02-24 52101
354 Red Hat Linux 9 ADMINPLAY 2009-09-24 51551
353 Dell OMSA 설치 및 이용방법 ADMINPLAY 2014-08-13 49837
352 2TB이상의 Disk를 사용한 Raid6 구성 ADMINPLAY 2015-08-08 46248
351 sulinux 1.0. 서버 패키지 리스트 ADMINPLAY 2011-04-30 45664
350 ORA-01031: insufficient privileges 오류 ADMINPLAY 2010-02-24 41013
349 [APM] 리눅스에서 Apache, PHP, MySQL 등 제거 방법 ADMINPLAY 2009-06-29 39388
348 AIX 필수 명령어 ADMINPLAY 2009-12-10 39118

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234