grub安裝(轉)
grub安裝(轉)[@more@]在grub下, 磁碟的命名是bsd格式,
hd0是第一個盤,hd1第二個盤, hd1可能是hdb也可能是hdc也可能是sda
hd0,0是第一分割槽, hd0,0 是 /dev/hda1 hd0,1 是 /dev/hda2 .... hd0,5 是 /dev/hda6....
grub的有一個自己的命令介面,在啟動時,安c可以進入, 或者在linux下直接執行grub出現命令介面.
grub下的命令支援tab補全. 也可以用tab對檔名進行補全.
在grub命令介面, 常用的幾個命令有:
root (hd0,0) ;指定/dev/hda1做為根
kernel /boot/vmlinuz root=.... ;指定要調入的核心 以及引數
initrd /boot/initrd.img ;指定ramfs啟動映像
boot ;開始啟動
;上面幾條可以從一個不能啟動硬碟恢復啟動.
setup ;此命令,可以用於在grub命令介面向硬碟安裝grub啟動支援.
faq:
問:我已經在用檔案複製 在/dev/hdc6 建立了一個linux系統,如何讓它可以啟動?
答:將grub安裝到mbr,以下命令,
#:grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub>root (hd1,5) ;指定根是/dev/hdc6
Filesystem type is ext2fs, partition type 0x83
grub>setup --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
....
grub>quit
直接用grub-setup來安裝:
grub-setup hd1
製作一個grub軟盤:
grub-floppy /dev/fd0
hd0是第一個盤,hd1第二個盤, hd1可能是hdb也可能是hdc也可能是sda
hd0,0是第一分割槽, hd0,0 是 /dev/hda1 hd0,1 是 /dev/hda2 .... hd0,5 是 /dev/hda6....
grub的有一個自己的命令介面,在啟動時,安c可以進入, 或者在linux下直接執行grub出現命令介面.
grub下的命令支援tab補全. 也可以用tab對檔名進行補全.
在grub命令介面, 常用的幾個命令有:
root (hd0,0) ;指定/dev/hda1做為根
kernel /boot/vmlinuz root=.... ;指定要調入的核心 以及引數
initrd /boot/initrd.img ;指定ramfs啟動映像
boot ;開始啟動
;上面幾條可以從一個不能啟動硬碟恢復啟動.
setup ;此命令,可以用於在grub命令介面向硬碟安裝grub啟動支援.
faq:
問:我已經在用檔案複製 在/dev/hdc6 建立了一個linux系統,如何讓它可以啟動?
答:將grub安裝到mbr,以下命令,
#:grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub>root (hd1,5) ;指定根是/dev/hdc6
Filesystem type is ext2fs, partition type 0x83
grub>setup --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
....
grub>quit
直接用grub-setup來安裝:
grub-setup hd1
製作一個grub軟盤:
grub-floppy /dev/fd0
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617731/viewspace-952728/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- grub安裝心得(轉)
- GRUB安裝方式(轉)
- 使用安裝盤修復GRUB (轉)
- GRUB安裝,配置及使用匯總(轉)
- 用安裝盤來修復GRUB(轉)
- debian3下grub安裝(轉)
- GRUB丟失,怎樣用安裝盤修復(轉)
- Grub安裝、配置以及使用例項彙總講解(轉)
- Linux下Grub開機管理程式安裝簡介(轉)Linux
- Debian中Grub安裝和修改Grub啟動時的背景圖片簡單步驟(轉)
- 求助:安裝紅帽子重引導後出現GRUB Hard Disk Error(轉)Error
- Linux mint系統安裝出現grub2安裝失敗,開機進入grub問題處理Linux
- 已有一個LINUX系統用GRUB引導硬碟安裝紅旗(轉)Linux硬碟
- 透過GRUB(包括WINGRUB)命令列模式引導Linux的安裝(轉)命令列模式Linux
- grub詳解(轉)
- 天龍八步-》打造debian-desktop-》安裝基本系統與grub(轉)
- GRUB入門教程(轉)
- GRUB安裝後啟動進入GRUB命令環境後,如何進入系統的解決方法
- GRUB學習筆記(轉)筆記
- 玩轉grub的開機引導(轉)
- 給GRUB加上密碼鎖(轉)密碼
- GRUB選單隱藏的解除(轉)
- OpenBSD安裝(轉)
- GCC 安裝(轉)GC
- (轉)Nginx安裝Nginx
- JDK安裝(轉)JDK
- svn安裝【轉載】
- YUM安裝MYSQL(轉)MySql
- ANT安裝、配置(轉)
- JBoss的安裝(轉)
- 硬碟安裝 Mandriva(轉)硬碟
- 安裝MySQL(UNIX)(轉)MySql
- Chinput 安裝指南(轉)
- 五筆安裝???(轉)
- jive安裝指南 (轉)
- 安裝:SuSE Linux FTP版安裝指南(轉)LinuxFTP
- 使用grub2和u盤不燒錄iso安裝fedora 26 x86_64
- Linux啟動流程與Grub的配置(轉)Linux