為啥要將ubuntu換成redhat呢,因為接下來想把EDA工具都安裝在下面。最後還是因為對顯卡驅動不滿而重裝ubuntu,但這個過程還是學到很多。
寫在前面,最重要的一點就是隨身碟的燒錄引導,折騰後發現redhat的安裝明顯比ubuntu要難不少,ubuntu只要將整個iso直接燒錄到u盤上就可以直接引導安裝了。而redhat需要注意的有,先將images下面的boot.iso提取出來然後燒錄到u盤,記得寫入syslinux引導,然後將boot.iso裡面的vmlinuz,intrid.img兩個檔案複製到u盤的根目錄(用來引導鏡像安裝),接著將整個dvd.iso複製進u盤放在根目錄,這樣就不會出現說在u盤,一般說/dev/sdb4找不到disk
driver image了。
首先遇到的第一個問題,本來找不到redhat老版本的下載如4,5(電驢被封了),就下了它的表兄弟版就是centos,我用隨身碟燒錄的是64位的centos 6,但我不知道接下來這個問題是不是跟64位有關。
安裝流程到了分區的時候出現
Partitioning errors: sda must have a gpt disk label
http://forums.fedoraforum.org/showthread.php?t=271743
上述網址有詳細的討論,摘錄一小段:
Firmware type (BIOS vs. EFI/UEFI) -- Older computers, and some new ones, use a firmware called the Basic Input/Output System (BIOS). The industry is in the process of switching to a new system, known as the Extensible
Firmware Interface (EFI) or its version 2.x variant, Unified EFI (UEFI). Many current computers have (U)EFI-enabled firmware, but these computers usually include an option to boot in the old BIOS way. Unfortunately, user interface details vary greatly, so
I can't describe precisely how to select the boot mode. The boot mode, however, is set from the firmware setup utility before you boot any OS. I've heard of systems with such poor user interfaces that there's no way to set the boot mode; the system tries to
set the boot mode automatically, and sometimes does it in a way that's unhelpful. It's possible you're suffering from this problem. (See below.)
Partition table type (MBR vs. GPT) -- Until recently, most PCs used the old Master Boot Record (MBR) partition table type. This system, however, is limited in various ways, one of which (the 32-bit sector pointers)
means that it's useless on disks bigger than 2 TiB (assuming a 512-byte sector size). Thus, a transition is underway to a new partitioning system, the GUID Partition Table (GPT). GPT uses 64-bit sector pointers, so it's got a much bigger disk size limit (8
ZiB, IIRC). Note that the MBR vs. GPT issue applies to a whole disk; you can't set just one partition to use GPT or MBR.
大概意思是bios 跟mbr關聯,而現在有種新型類似bios的efi,與此關聯的是gpt,gpt可以容納更多的分區,當硬碟容量超過2T時必須使用gpt,可能的情況是windows現在使用bios啟動的,但高版本的linux可能要求使用efi啟動,其實兩種啟動模式在啟動時是可以選擇的,但有些電腦使用者介面不好,沒有提示如何進入設定。
如何解決呢?try delete the efi file(s) (only found BOOTX64.efi in the EFI folder).但後來我找到了redhat的下載,就沒繼續裝下去,所以是否有效就不得而知了。
也可以參考官網的bug https://bugzilla.redhat.com/show_bug.cgi?id=748272
第二個問題 安裝redhat 4.8 直接enter會卡死在一個地方 kernel_thread_helper+0×7/0×10
http://www.absolutelytech.com/2010/11/10/solved-kernel_thread_helper0x70x10-during-ubuntu-boot-process/ 這上面提供瞭解決辦法,說的是ubuntu,具體到redhat,可以直接輸入linux acpi=off,然後就進去了。那acpi是個啥東東呢?ACPI Advanced Configuration & Power Interface Contents
就是進階配置與電源介面,安裝redhat的版本太老,硬體支援acpi,但作業系統不支援,所以卡在那裡,把他關閉掉就Ok了。
第三個問題 我安裝4.8最後還是卡死在分區那裡,最後裝的是5.8,雖然最初的安裝介面不需要輸入linux acpi=off,但安裝完成第一次重啟配置的時候會卡在 redhat 0 kernel panic - not syncing fatal exception
搜了很多但沒啥具體解決辦法,突然想到會不會也是因為acpi,於是在grub的啟動項編輯加上了quiet splash acpi=off,然後就真的進去了,當然你再次啟動grub添加的會不見,還得編輯grub.conf來添加上面一行。
第四個問題 中文亂碼
需要注意的是有些iso分成dvd1和dvd2,一般dvd1是系統檔案,dvd2是軟體安裝檔案,在你沒能串連網時只能使用這些來安裝軟體了,當然能連網後直接就yum了。
1、按順序安裝如下包:
中文支援
fonts-chinese-3.02-12.el5.noarch.rpm
m17n-db-common-cjk-1.3.3-46.el5.noarch.rpm
m17n-db-chinese-1.3.3-46.el5.noarch.rpm
這部以上就可以顯示中文了,下面是IME。
中文IME
scim-libs-1.4.4-39.el5.i386.rpm
scim-1.4.4-39.el5.i386.rpm
scim-chinese-standard-0.0.2-1.el5.i386.rpm
scim-tables-0.5.6-7.i386.rpm
scim-tables-chinese-0.5.6-7.i386.rpm
scim-pinyin-0.5.91-15.el5.i386.rpm
2、安裝完成後點擊 “系統-管理-語言” 選擇“簡體中文”,轉換語言環境。
最終還是停在了顯示器的驅動上,查來查去發現是因為自己的電腦是雙顯卡所至,如
lspci | grep -i vga 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 0de9 (rev a1)
仍沒找到解決辦法,每次安裝完nvidia驅動都會進不去圖形介面,我已經崩潰了,先作罷。有哪位朋友能夠提點一二的請留言。