LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1714|回复: 4

Gentoo LiveUSB简单做法-amd64_2008-r1尝试成功

[复制链接]
发表于 2008-7-11 20:25:12 | 显示全部楼层 |阅读模式
使用官方的LiveCD的iso文件,直接做LiveUSB。
方法如下:
http://www.pendrivelinux.com/2007/09/21/usb-gentoo-20070-install/


今天下载了livecd-amd64-installer-2008.0-r1.iso.
使用这个步骤制作成功,觉得很简单,和大家分享。
发表于 2008-7-12 00:40:54 | 显示全部楼层
Gentoo livecd我都是从硬盘启动,但是通过installer安装都有问题,包括2008最终版本
回复 支持 反对

使用道具 举报

发表于 2008-7-12 01:37:48 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-12 09:38:45 | 显示全部楼层


嗯,看了一下代码,实现思路跟版主提供文档里的差不多。

这个脚本的局限性是必须使用Win机器制作这个LiveUSB盘。
而版主提供的那个是使用Linux制作的。^_^。

  1. E:\GentooUSB>type fixgt2.bat
  2. @echo off
  3. rem This batch file was created by Lance 2007 http://pendrivelinux.com
  4. rem Edited 19/09/2007 for Gentoo Linux by Brendan Jocson http://metacrome.com
  5. rem 7-Zip 1999-2007 Igor Pavlovis http://7-zip.org
  6. rem Syslinux 1994-2006 H. Peter Anvin http://syslinux.zytor.com
  7. cls
  8. echo.
  9. echo ==============================================================
  10. echo     This file will prepare your Gentoo ISO for USB boot!
  11. echo ==============================================================
  12. echo.
  13. echo.
  14. echo  Warning: Only run this file from the directory containing
  15. echo  the Gentoo ISO and no other ISO files
  16. echo.
  17. echo  This batch file is offered in hopes that it will be useful and
  18. echo  comes with absolutely no warranty. USE AT YOUR OWN RISK!
  19. echo.
  20. echo.
  21. :start
  22. echo.
  23. echo  Please enter your flash drive letter (D,E,F,G,H,I,J,K) and press Enter
  24. set /p drive=
  25. if %drive% == D goto proceed
  26. if %drive% == E goto proceed
  27. if %drive% == F goto proceed
  28. if %drive% == G goto proceed
  29. if %drive% == H goto proceed
  30. if %drive% == I goto proceed
  31. if %drive% == J goto proceed
  32. if %drive% == K goto proceed
  33. if %drive% == d goto proceed
  34. if %drive% == e goto proceed
  35. if %drive% == f goto proceed
  36. if %drive% == g goto proceed
  37. if %drive% == h goto proceed
  38. if %drive% == i goto proceed
  39. if %drive% == j goto proceed
  40. if %drive% == k goto proceed
  41. cls
  42. goto error

  43. :error
  44. echo.
  45. echo  The drive letter you entered was not recognized
  46. echo.
  47. pause
  48. cls
  49. goto start

  50. :proceed
  51. cls
  52. echo.
  53. echo Would you like to format flash drive %drive%:?
  54. echo.
  55. echo Type y or n and press Enter
  56. set /p ok=
  57. if %ok% == y goto yes
  58. if %ok% == Y goto yes
  59. if %ok% == n goto no
  60. if %ok% == N goto no
  61. cls

  62. :yes
  63. cls
  64. echo Pre-Stage Format:
  65. echo First, let's ensure that the flash drive is inserted
  66. echo.
  67. format %drive%: /FS:fat32 /V:Gentoo /Q
  68. cls
  69. goto no

  70. :no
  71. cls
  72. echo Stage 1:
  73. 7-Zip\7z x *.iso -x![BOOT] -o%drive%:
  74. cls
  75. echo Stage 2:
  76. echo Please wait while we prepare the files and copy them to your flash drive...

  77. echo.
  78. mkdir %drive%:\syslinux\win32
  79. copy syslinux\win32\*.* %drive%:\syslinux\win32
  80. copy makeboot.bat %drive%:
  81. %drive%:
  82. copy isolinux *.*
  83. rmdir isolinux /s/q
  84. ren isolinux.cfg syslinux.cfg
  85. del isolinux.bin
  86. call %drive%:\makeboot.bat

复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-12 13:31:56 | 显示全部楼层
使用i686的盘也成功了。呵呵。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表