Grub_Life

grub 에서 fstab 확인하기

grub 에서 fstab 확인하기

grub> root (hd0,1)
root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83
grub> cat /etc/fstab
cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Wed Apr 10 13:13:27 2013
#
# 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=a07e67d6-0994-4a74-b828-bbe6cb462be5 /                       ext4    defaults        1 1
UUID=d651a019-05f3-4d5f-b32e-ec51b6a882d9 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

 

 

root (hd0,1) 은 어떻게 확인할까요?

아래 파일을 확인하면 됩니다.

 

root@localhost ~ [0.04 0.01]> cat /etc/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,1)
#          kernel /boot/vmlinuz-version ro root=/dev/sda2
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-431.3.1.el6.x86_64)
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.32-431.3.1.el6.x86_64 ro root=UUID=a07e67d6-0994-4a74-b828-bbe6cb462be5 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
    initrd /boot/initramfs-2.6.32-431.3.1.el6.x86_64.img
title CentOS (2.6.32-358.6.2.el6.x86_64)
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.32-358.6.2.el6.x86_64 ro root=UUID=a07e67d6-0994-4a74-b828-bbe6cb462be5 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
    initrd /boot/initramfs-2.6.32-358.6.2.el6.x86_64.img
title CentOS (2.6.32-358.el6.x86_64)
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.32-358.el6.x86_64 ro root=UUID=a07e67d6-0994-4a74-b828-bbe6cb462be5 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
    initrd /boot/initramfs-2.6.32-358.el6.x86_64.img

댓글

댓글 본문
작성자
비밀번호
graphittie 자세히 보기