Error 15: File not found for Redhat
Error 15: File not found
root (hd0,0)
kernel /vmlinuz-2.6.18-155.el5 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.18-155.el5.img
Solution:
1.按任意鍵返回之後,選擇以下內容後按E進行編輯,給root指定正確的LABLE
kernel /vmlinuz-2.6.18-155.el5 ro root=LABEL=/ rhgb quiet
2.編輯完成之後,按enter
3.確認無誤後,按b,啟動系統。
Grub下進行載入Kernel方法(輸入過程中按tab可以獲得提示):
根據具體情況,進行設定
在選單介面按'c'進入grub命令列介面
grub>root (hd0,0)
grub>setup (hd0)
grub>cat (hd0,0)/grub/grub.conf
grub>kernel (hd0,0)/vmlinuz-2.6.18-155.el5 ro root=LABEL=/
grub>initrd (hd0,0)/initrd-2.6.18-155.el5.img
grub>boot
Remark:
相關問題的處理方法:
####################################
誤刪除/boot目錄下檔案
####################################
# mount -o loop -t iso9660 rhel-server-5.4-i386-dvd.iso /media/cdrom/
# cd Server/
Install Kernel
#rpm -ivh kernel-2.6.18-155.el5.i686.rpm --root=/ --force
warning: kernel-2.6.18-155.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID 897da07a
Preparing... ########################################### [100%]
1:kernel ########################################### [100%]
# ls -l
total 5452
-rw-r--r-- 1 root root 953487 Jun 20 2009 System.map-2.6.18-155.el5
-rw-r--r-- 1 root root 68762 Jun 20 2009 config-2.6.18-155.el5
-rw------- 1 root root 2567076 Nov 19 09:18 initrd-2.6.18-155.el5.img
-rw-r--r-- 1 root root 107331 Jun 20 2009 symvers-2.6.18-155.el5.gz
-rw-r--r-- 1 root root 1855412 Jun 20 2009 vmlinuz-2.6.18-155.el5
Install grub
---------------
# cd /sbin
# grub-install /dev/sda
create grub.conf
--------------------
vi /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 have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.18-155.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-155.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-155.el5.img
參照以上進行更改
create link
---------------------------
ln -s ./grub.conf menu.lst
# ls -l menu.lst
lrwxrwxrwx 1 root root 11 Nov 19 10:37 menu.lst -> ./grub.conf
從網路下載splash.xpm.gz/也可以自己製作,並copy 開機圖象到/boot/grub
mount /dev/sdb /mnt/usbdevice/
cd /mnt/usbdevice/
cp splash.xpm.gz /boot/grub/
####################################
誤刪除/boot分割槽
####################################
1.透過redhat的安裝cd啟動,選擇linux rescue
2. 選擇啟動網路,指定IP地址(可以透過FTP從其他伺服器上下載軟體和配置檔案,很重要)
3.#chroot /mnt/sysimages
4. 透過#fdisk /dev/sda建立被刪除的分割槽:/dev/sda1
5. 重新啟動後重復1-3步驟,然後#mkfs -t ext3 /deb/sda1,在sda1分割槽上建立檔案系統
6.mount分割槽裝置/dev/sda1到/boot (千萬不要忘了這一步啊)
7.ftp另外的伺服器得到kernel-2.6.18-128.el5.i386.rpm檔案到本地伺服器上
8.#rpm -ivh kernel-2.6.18-8.el5.i686.rpm --root=/ --force
重新建立核心啟動檔案。在/boot目錄下出現:vmlinuz-2.6.18-8.el5和initrd-2.6.18-8.el5.img
9.在/sbin/下執行#grub-install /dev/sda,安裝grub
10.將/boot/grub/grub.conf檔案恢復
11.如果不能恢復,啟動時可以手動執行
root (hd0,0)
kernel /vmlinuz-2.6.18-128.el5
initrd /initrd-2.6.18-128.e15.img
boot
沒有成功
12.換成kernel /vmlinuz-2.6.18-128.el5 ro root=LABEL=/ rhgb quiet命令,也沒有沒有成功啟動
13.後來發現我的是使用了VG,改為/vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
就可以了。
14.OS啟動到一定階段出現: “fsck.ext3:unable to resolve 'LABEL=/boot'”,“An error occurred during the file system check”。系統無法繼續啟動。
15.再次透過cd啟動,chroot之後把/etc/fstab檔案中的LABEL=/boot一行去掉,系統就可以正常啟動了
16.分析第15步驟的原因為/dev/sda1的卷標不對,透過以下命令重新新增捲標:#e2label /dev/sda1 /boot
然後恢復第16步被刪除的/etc/fstab檔案中的LABEL=/boot一行。系統可以正常啟動,並且boot分割槽也被自
動mount上了
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/789833/viewspace-1041877/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- redhat系統伺服器重啟後提示An error occurred during the file system check.Redhat伺服器Error
- Newline required at end of file but not foundUI
- Flutter在iOS裝置執行報錯fatal error: 'Flutter/Flutter.h' file not foundFlutteriOSError
- mysql RSA private key file not foundMySql
- Android:Unexpected lock protocol found in lock file. Expected 3, found 0.AndroidProtocol
- ERROR: No abbreviations files found in ...nonbreaking_prefixesError
- [PM2][ERROR] Process XXX not foundError
- More than one file was found with OS independent path
- Solaris syntax error: unexpected end of fileError
- React Native 報錯 'config.h' file not foundReact Native
- Binary XML file line #2: Error inflatingXMLError
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- ERROR: freetype2 not found using pkg-configError
- go tool compile 報錯 could not import sync (file not found)GoCompileImport
- fatal error: libmemcached/memcached.h: No such file or directoryErrorIBM
- fatal error: openssl/sha.h: No such file or directoryError
- fatal error: sys/cdefs.h: No such file or directoryError
- error: #error This file requires compiler and library support for the ISO C++ 2011 standard.ErrorUICompileC++
- 15-錯誤處理(Error)Error
- Error executing Jupyter command 'notebok': [Errno 'jupyter-notebok' not found] 2Error
- PHP 5.4 編譯 configure: error: libXpm.(a|so) not found.PHP編譯Error
- 【ASM】Oracle RAC css啟動報錯"Duplicate voting file found"ASMOracleCSS
- MySQL 5.6複製報錯Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND;MySqlError
- 解決 Error: ENOSPC: System limit for number of file watchers reachedErrorMIT
- error: pathspec ‘myupstream‘ did not match any file(s) known to gitErrorGit
- ERROR 1290:The MySQL server is running with the --secure-file-priv optionErrorMySqlServer
- ssh-add 報錯:Error connecting to agent No such file or directoryError
- mysql-python安裝時Environment Error: mysql_config not foundMySqlPythonError
- mac php8安裝swoole 'pcre2.h' file not foundMacPHP
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- 【MySQL】ERROR 1878 (HY000): Temporary file write failure.MySqlErrorAI
- OGG-15050 Error loading Java VM runtime library: (2 No such file or directory)ErrorJava
- Ubuntu下 fatal error: Python.h: No such file or directory 解決方法UbuntuErrorPython
- docker mysql mysqld: Error on realpath() on ‘/var/lib/mysql-files‘ No such file or directoryDockerMySqlError
- ubuntu進行make時報錯error: Neither flex nor lex was found.UbuntuErrorFlex
- Failed: error reading separator after document # 1: bad JSON array format - found no opening brackAIErrorJSONORM
- 測試中出現ERROR StatusLogger No log4j2 configuration fileError
- MySQL 報錯 ERROR 1290 (HY000): running with the --secure-file-privMySqlError
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI