在linux環境下,如何确定是否裝有雙系統
1、可以通過檢視引導情況
(1)進入Linux終端,進入/boot目錄。
<code> </code><code>cd /boot</code>
(2)ls檢視/boot目錄,如有grub2則進入grub2目錄(一般為grub2),如沒有則進入grub目錄。
<code> </code><code>cd grub/</code>
(3)檢視grub.cfg檔案
<code> </code><code>cat grub.cfg</code>
<code># grub.conf generated by anaconda</code>
<code>#</code>
<code># Note that you do not have to rerun grub after making changes to this file</code>
<code># NOTICE: You have a /boot partition. This means that</code>
<code># all kernel and initrd paths are relative to /boot/, eg.</code>
<code># root (hd0,2)</code>
<code># kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root</code>
<code># initrd /initrd-[generic-]version.img</code>
<code>#boot=/dev/sda</code>
<code>default</code><code>=0</code>
<code>timeout=5</code>
<code>splashimage=(hd0,2)/grub/splash.xpm.gz</code>
<code>hiddenmenu</code>
<code>title Red Hat Enterprise Linux (2.6.32-431.el6.x86_64)</code>
<code>root (hd0,2)</code>
<code>kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root nomodeset rd_NO_LUKS rd_NO_MD rd_LVM_LV=VolGroup/lv_swap crashkernel=</code><code>auto</code> <code>LANG=zh_CN.UTF-8 rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet</code>
<code>initrd /initramfs-2.6.32-431.el6.x86_64.img</code>
<code>title windows server 2008 64bits</code>
<code>rootnoverify (hd0,0)</code>
<code>chainloader +1</code>
從上面可以看出,引導着兩個系統,一個是Red Hat Enterprise Linux (2.6.32-431.el6.x86_64),一個是windows server 2008 64bits
引導兩個系統,但是不一定可以用,有可能另一個系統被破壞了,是以可以去機房進一步确認一下。開機時,可以按向下鍵,開機選系統,進入另一個系統。
2、最可靠的方法是,進入機房,檢視。
本文轉自 corasql 51CTO部落格,原文連結:http://blog.51cto.com/corasql/1731600,如需轉載請自行聯系原作者