返回列表 發帖
本帖最後由 角色 於 2011-9-4 20:38 編輯

刚才我用YUMI去install CentOS 5.6的ISO,看看YUMI是否能变成一个CDROM,然后去安装CentOS 5.6,但是不成功,安装中途,CentOS安装软件发现手指不是CDROM,它不像Virtual ROM (Zalman ZM-VE200),可以彻底看成ROM去安装软件。

角色

TOP

回復 16# 角色

還是ZM-VE200簡單、方便、快捷!
Welcome to my TaoBao shop: http://mandymak520.taobao.com/

TOP

终于我Bootable的grub4dos,终于bubblestar兄提议的MultiBootISOs,做成了,下一步就是把自己常用的ISO(当然是经过测试的ISO),不然分分钟不成功。

角色

TOP

My menu.lst for sharing:
  1. default 0
  2. timeout 30
  3. color NORMAL HIGHLIGHT HELPTEXT HEADING
  4. splashimage=/splash.xpm.gz
  5. foreground=FFFFFF
  6. background=000000

  7. # Suggested by Erhan Sohail
  8. title MBR on 1st Hard Drive (HDD)
  9. map (hd0) (hd1)
  10. map (hd1) (hd0)
  11. map --hook
  12. chainloader (hd0)+1
  13. rootnoverify (hd0)

  14. title GRUB Command Line
  15. commandline

  16. title Reboot
  17. reboot

  18. title Shutdown
  19. halt

  20. title
  21. root

  22. title + My Multiboot Operating System on HDD
  23. configfile /menu/mosh.lst

  24. title
  25. root

  26. title Acronis True Image Home 2011 EN (14,6868)
  27. map --mem /acronis/ATIH2011AMB14EN.iso (hd32)
  28. map --hook
  29. chainloader (hd32)
  30. boot

  31. title Acronis True Image Home 2010 EN (13,7046)
  32. map --mem /acronis/ATIH2010AMB13EN.iso (hd32)
  33. map --hook
  34. chainloader (hd32)
  35. boot

  36. title Acronis Disk Director 11 Home EN (00,216)
  37. map --mem /acronis/ADD11HAMBEN.iso (hd32)
  38. map --hook
  39. chainloader (hd32)
  40. boot

  41. title AVIRA AntiVir Rescue CD (Virus Scanner)
  42. find --set-root /avira/vmlinuz
  43. kernel /avira/vmlinuz edd=off vga=ask initrd=/avira/initrd.gz ramdisk_size=133551 root=/dev/ram0 rw console=/dev/vc/4
  44. initrd /avira/initrd.gz

  45. title BackTrack 4 Final (Penetration Testing)
  46. find --set-root /bt-boot/vmlinuz
  47. kernel /bt-boot/vmlinuz BOOT=casper boot=casper persistent rw splash
  48. initrd /bt-boot/initrd.gz
  49. boot

  50. title 3 BackTrack 5 (1024x768) Persistent\nType startx to run GUI once booted PERSISTENT
  51. kernel /BT5/casper/vmlinuz  file=/cdrom/preseed/custom.seed live-media-path=BT5/casper boot=casper locale=en_US.UTF-8 keyb=us   textonly noprompt vga=791-- persistent
  52. initrd /BT5/casper/initrd.gz

  53. title Balder DOS image (FreeDOS)
  54. find --set-root /balder10.img
  55. map --unsafe-boot /balder10.img (fd0)
  56. map --hook
  57. chainloader --force (fd0)+1
  58. rootnoverify (fd0)

  59. title Floppy (fd0)
  60. chainloader (fd0)+1
  61. rootnoverify (fd0)

  62. title DOS
  63. find --set-root /io.sys
  64. chainloader /io.sys

  65. title Windows 98 Boot Disk
  66. map --mem (hd0,0)/win98/win98sec.img (fd0)
  67. map --hook
  68. chainloader (fd0)+1
  69. rootnoverify (fd0)

  70. title Windows NT/2K/XP
  71. find --set-root /ntldr
  72. chainloader /ntldr

  73. title Install Windows 7
  74. root (hd0,0)
  75. chainloader (hd0,0)/bootmgr

  76. title Clonezilla
  77. root (hd0,0)
  78. kernel /clonezilla/live/vmlinuz live-media-path=clonezilla/live bootfrom=/dev/sd boot=live union=aufs noprompt ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=791 ip=frommedia
  79. initrd /clonezilla/live/initrd.img

  80. title Clonezilla live on harddrive
  81. root (hd0,0)
  82. kernel /clonezilla/live/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=788 ip=frommedia nosplash live-media-path=/clonezilla/live bootfrom=/dev/sd toram=filesystem.squashfs
  83. initrd /clonezilla/live/initrd.img
  84. boot

  85. title Ghost 11.5
  86. find --set-root /ghost/ghost.img
  87. map --mem /ghost/ghost.img (fd0)
  88. map --hook
  89. chainloader (fd0)+1
  90. rootnoverify (fd0)
  91. boot

  92. title Hirens Boot CD 14.0\nISO file must be contiguous
  93. find --set-root --ignore-floppies --ignore-cd /HBCD/HirensBCD.14.0.iso
  94. map /HBCD/HirensBCD.14.0.iso (0xff)
  95. map --hook
  96. root (0xff)
  97. chainloader (0xff)

  98. title Memtest86+
  99. find --set-root /mt420.iso
  100. map --mem /mt420.iso (hd32)
  101. map --hook
  102. root (hd32)
  103. chainloader (hd32)

  104. # Suggested by Greg Steer
  105. title Offline NT Password & Registy Editor
  106. find --set-root /cd100627.iso
  107. map /cd100627.iso (hd32)
  108. map --hook
  109. chainloader (hd32)

  110. title Parted Magic 6.6
  111. find --set-root /pmagic-6.6.iso
  112. map --heads=0 --sectors-per-track=0 /pmagic-6.6.iso (hd32)
  113. map --hook
  114. root (hd32)
  115. kernel /pmagic/bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=10 loglevel=0 keymap=us iso_filename=/pmagic-6.6.iso
  116. initrd /pmagic/initramfs
  117. map --unmap=0:0xff

  118. # Suggested by Deb
  119. title Partition Wizard 6
  120. find --set-root /pwhe6.iso
  121. map /pwhe6.iso (hd32)
  122. map --hook
  123. root (hd32)
  124. chainloader (hd32)

  125. # Suggested by Relst
  126. title Run a Linux OS from the Internet
  127. kernel /gpxe.lkrn

  128. title SPFDISK
  129. map --mem /SPFDISK.IMA (fd0)
  130. map --hook
  131. root (fd0)
  132. chainloader +1
  133. boot

  134. # Suggested by Gino Pilotino
  135. title System Rescue CD 2.3.0
  136. find --set-root /systemrescuecd/isolinux/rescuecd
  137. kernel /systemrescuecd/isolinux/rescuecd subdir=systemrescuecd setkmap=us docache
  138. initrd /systemrescuecd/isolinux/initram.igz

  139. title Ultimate Boot CD 511
  140. find --set-root /ubcd511.iso
  141. map /ubcd511.iso (hd32)
  142. map --hook
  143. root (hd32)
  144. chainloader (hd32)

  145. title GParted 0.9.0-6
  146. root (hd0,0)
  147. kernel /gparted/live/vmlinuz live-media-path=gparted/live bootfrom=/dev/sd boot=live union=aufs noswap noprompt ip=frommedia
  148. initrd /gparted/live/initrd.img

  149. title Redo Backup 0.9.8\nType exit and press ENTER and repeat again if it does not boot
  150. find --set-root --ignore-floppies /redobackup098.iso
  151. map --heads=0 --sectors-per-track=0 /redobackup098.iso (0xff) || map --mem --heads=0 --sectors-per-track=0 /redobackup098.iso (0xff)
  152. map --hook
  153. root (0xff)
  154. kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper vga=791 iso-scan/filename=/redobackup098.iso floppy.allowed_drive_mask=0 splash --
  155. initrd /casper/initrd.gz

  156. title TrueCrypt Rescue Disk
  157. map (hd0) (hd1)
  158. map (hd1) (hd0)
  159. map --mem /TrueCrypt.iso (hd32)
  160. map --hook
  161. chainloader (hd32)

  162. title Trinity Rescue Kit
  163. kernel /TRK/kernel.trk vollabel=MULTIBOOT ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 trkmenu
  164. initrd /TRK/initrd.trk

  165. title Try Ubuntu i386 without installing
  166. find --set-root /ubuntu-11.04-desktop-i386.iso
  167. map /ubuntu-11.04-desktop-i386.iso (0xff) || map --mem /ubuntu-11.04-desktop-i386.iso (0xff)
  168. map --hook
  169. root (0xff)
  170. kernel /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed noprompt boot=casper persistent iso-scan/filename=/ubuntu-11.04-desktop-i386.iso quiet splash --
  171. initrd /casper/initrd.lz

  172. title Install Ubuntu i386
  173. find --set-root /ubuntu-11.04-desktop-i386.iso
  174. map /ubuntu-11.04-desktop-i386.iso (0xff)  || map --mem /ubuntu-11.04-desktop-i386.iso (0xff)
  175. map --hook
  176. root (0xff)
  177. kernel /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed noprompt boot=casper only-ubiquity iso-scan/filename=/ubuntu-11.04-desktop-i386.iso quiet splash --
  178. initrd /casper/initrd.lz
複製代碼

TOP

I can tell you that I have a bootable DVD that contains even more complicated programs. But at the end, I use just a few. Mostly the backup and restore programs.

TOP

Same as ckleea C-Hing,only a few will be used in real life.  Most of the ISOs or programs are just for testing and I'm just playful.

TOP

安装MultiBootISOs的files图片:

2011-9-4 21-33-19.png

The cotents of menu.lst
  1. default 0
  2. timeout 30
  3. color NORMAL HIGHLIGHT HELPTEXT HEADING
  4. splashimage=/splash.xpm.gz
  5. foreground=FFFFFF
  6. background=000000

  7. # Suggested by Erhan Sohail
  8. title Boot First Hard Drive (HDD)
  9. map (hd0) (hd1)
  10. map (hd1) (hd0)
  11. map --hook
  12. chainloader (hd0)+1
  13. rootnoverify (hd0)

  14. title Restart
  15. reboot

  16. title Shutdown
  17. halt

  18. title --- Custom MultiBoot Entries ---
  19. root

  20. title Parted Magic (Partition Tools)
  21. find --set-root /pmagic.iso
  22. map --heads=0 --sectors-per-track=0 /pmagic.iso (hd32)
  23. map --hook
  24. root (hd32)
  25. kernel /pmagic/bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=10 loglevel=0 keymap=us iso_filename=/pmagic.iso
  26. initrd /pmagic/initramfs
  27. map --unmap=0:0xff
複製代碼
角色

TOP

其实用MultiBootISOs主要你不是用boot ISOs,而是利用它的GRUB4DOS,然后去boot某些partition。如果公司的人用PC,很少用Linux,然后大部分都是用Windows,但是为了要行Linux系统,阿么我们可以在不影响本身的Boot Sector,如果要用的时候就把手指插上去,然后reboot就搞定,还有自己的系统,如果hard drive的Bootable死掉,那么你再去boot就比较麻烦。

角色

TOP

本帖最後由 bubblestar 於 2011-9-4 22:36 編輯

所以我會用另一頁做sub-menu,專門設定成Boot up 1st HDD,2nd HDD,1st partition、2nd、3rd partition..... like this as follow:

title <- Return to Main Menu
configfile /menu.lst

title
root

# Suggested by Erhan Sohail
title MBR on 1st Hard Drive (HDD)
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
chainloader (hd0)+1
rootnoverify (hd0)

title Windows 7 (1st HDD hd0,0)
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
rootnoverify (hd0,0)
chainloader +1

title My Server
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
rootnoverify (hd0,3)
chainloader +1

title CentOS (1st HDD hd0,5)
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
rootnoverify (hd0,5)
chainloader +1

title Asterisk (1st HDD hd0,6)
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
rootnoverify (hd0,6)
chainloader +1

title Asterisk14 (1st HDD hd0,7)
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
rootnoverify (hd0,7)
chainloader +1

title Elastix2 (1st HDD hd0,8)
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
rootnoverify (hd0,8)
chainloader +1

title Ubuntu (1st HDD hd0,9)
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
rootnoverify (hd0,9)
chainloader +1

title
root

title Grub2 Menu
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img

TOP

hd0 : 是first boot device
hd1 : 是second boot device

一般没有Bootable USB thumb drive,hd0一般指first boot device = first hard drive

但是如果有Bootable USB thumb drive插入时
hd0 :是指Bootable USB thumb drive
hd1 :是指hard drive

去boot,那个hard drive是,要把那个drive从(hdx)转到(hd0),才能继续boot。

角色

TOP

现在把hard drive的menu.lst,copy到手指里的/menu/menu-d515.lst。
在把/menu/menu-d515.ls里的hd0改到hd1。
  1. default 0
  2. timeout 30
  3. color NORMAL HIGHLIGHT HELPTEXT HEADING
  4. splashimage=/splash.xpm.gz
  5. foreground=FFFFFF
  6. background=000000

  7. # Suggested by Erhan Sohail
  8. title Boot First Hard Drive (HDD)
  9. map (hd0) (hd1)
  10. map (hd1) (hd0)
  11. map --hook
  12. chainloader (hd0)+1
  13. rootnoverify (hd0)

  14. title + D515 PC
  15. configfile /menu/menu-d515.lst

  16. title Restart
  17. reboot

  18. title Shutdown
  19. halt

  20. title --- Custom MultiBoot Entries ---
  21. root

  22. title Parted Magic (Partition Tools)
  23. find --set-root /pmagic.iso
  24. map --heads=0 --sectors-per-track=0 /pmagic.iso (hd32)
  25. map --hook
  26. root (hd32)
  27. kernel /pmagic/bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=10 loglevel=0 keymap=us iso_filename=/pmagic.iso
  28. initrd /pmagic/initramfs
  29. map --unmap=0:0xff
複製代碼
/menu/menu-d151.lst contains
  1. # grub.conf generated by anaconda
  2. #
  3. # Note that you do not have to rerun grub after making changes to this file
  4. # NOTICE:  You do not have a /boot partition.  This means that
  5. #          all kernel and initrd paths are relative to /, eg.
  6. #          root (hd0,6)
  7. #          kernel /boot/vmlinuz-version ro root=/dev/sda7
  8. #          initrd /boot/initrd-version.img
  9. #boot=/dev/sda
  10. #default=5
  11. #timeout=20
  12. #splashimage=(hd1,6)/boot/grub/splash.xpm.gz
  13. #hiddenmenu

  14. title <- Return to Main Menu
  15. configfile /menu.lst

  16. title
  17. root



  18. title CentOS ( Asterisk 1.4 + Asterisk-GUI 2.0 ) /dev/sda6
  19.         root (hd1,5)
  20.         kernel /boot/vmlinuz-2.6.18-194.11.3.el5 ro root=LABEL=Asterisk-1.4+GUI
  21.         initrd /boot/initrd-2.6.18-194.11.3.el5.img

  22. title Asterisk 1.4
  23. root (hd1,6)
  24. kernel /boot/vmlinuz-2.6.18-194.11.3.el5 ro root=LABEL=Asterisk-1.4
  25. initrd /boot/initrd-2.6.18-194.11.3.el5.img

  26. title Asterisk 1.6 + FreePBX
  27. root (hd1,7)
  28. kernel /boot/vmlinuz-2.6.18-194.3.1.el5 ro root=LABEL=/12
  29. initrd /boot/initrd-2.6.18-194.3.1.el5.img

  30. title Asterisk 1.6
  31. root (hd1,8)
  32. kernel /boot/vmlinuz-2.6.18-194.11.1.el5 ro root=LABEL=/1
  33. initrd /boot/initrd-2.6.18-194.11.1.el5.img

  34. title Elastix 2.0
  35. root (hd1,9)
  36. kernel /boot/vmlinuz-2.6.18-194.3.1.el5 ro root=LABEL=Elastix-2.0
  37. initrd /boot/initrd-2.6.18-194.3.1.el5.img

  38. title Asterisk 1.8 CentOS (2.6.18-238.el5)
  39. root (hd1,11)
  40. kernel /boot/vmlinuz-2.6.18-238.el5 ro root=LABEL=Asterisk-1.8
  41. initrd /boot/initrd-2.6.18-238.el5.img

  42. title CentOS 5.5a
  43. root (hd1,13)
  44. kernel /boot/vmlinuz-2.6.18-194.8.1.el5 ro root=LABEL=CentOS-5.5a
  45. initrd /boot/initrd-2.6.18-194.8.1.el5.img

  46. title CentOS 5.5b
  47. root (hd1,14)
  48. kernel /boot/vmlinuz-2.6.18-194.8.1.el5 ro root=LABEL=CentOS-5.5b
  49. initrd /boot/initrd-2.6.18-194.8.1.el5.img

  50. title Windows 7 EN
  51.         unhide (hd1,0)
  52.         hide (hd1,1)
  53.         rootnoverify (hd1,0)
  54.         chainloader +1

  55. title Windows 7 SC
  56.         hide (hd1,0)
  57.         unhide (hd1,1)
  58.         rootnoverify (hd1,1)
  59.         chainloader +1
複製代碼

TOP

现在有了手指,就算hard drive的boot有问题,现在都可以用手指boot起,然后从手指去boot那一个partition就可以。

角色

TOP

角色兄的menu-d151.lst 寫法跟我的寫法有些不同,各有好處。

角色兄很忠實地列出每個Partition 的kernel 及 initrd 的名稱位置,確保不會攪亂,但當upgrade 到另外一個新的Kernel 或需要改成另一版本的ISO,便需要每次都同步更改他的 menu-d151.lst 的內容以作配合,否則會有機會Boot 不到機。

而我的版本,只 (有些取考) 列出要Boot 機 的HARD DISK DRIVE 及 哪個 partition 序列,所以無論你upgrade CentOS 4、5、6 之後,都不需要修改相對應的Kernel and Initrd 的名稱位置。

大家可以跟據自己使用習慣作設定。

TOP

不管怎样,起码我们有一个参考点,不然的话都不知道怎样gettting started,有了这个reference,大家可以随自己的思路然后设计自己的GRUB4DOS的menu.lst,最重要是如果hard drive的boot出现问题,而你又不能用那个hard drive的menu.lst去boot机,那么你的手指的menu.lst就大派用场。

角色

TOP

终于我的手指GRUB4DOS发挥作用了,昨晚安装一个CentOS 5.6在某个partition,它自己有自己的boot和grub,所以一boot机,hard drive的MBR就指向那个partition,那么我向起其他partition就不可以,那么我怎样boot起其他partition呢?

那么我就用我之前起得Bootable USB的grub4dos,那么电脑启动后再执行USB的MBR,然后指向USB里德menu.lst,之后我就可以按照menu.lst里boot起其他hard drive的partition。

角色

TOP

返回列表