Board logo

標題: How to make a bootable USB flash drive? -- able to install CentOS [打印本頁]

作者: 角色    時間: 2010-8-8 16:00     標題: How to make a bootable USB flash drive? -- able to install CentOS

本帖最後由 角色 於 2010-8-10 05:37 編輯

为了安装多Asterisk server,这个Bootable USB flash drive能让你简化一些tasks,不然你要拿一个CDROM,floppy disks等等。如果你有一个Bootable USB flash drive,那么救机时也大派用场。

但是安装一个bootable USB drive,可能中间会出现各类不同的问题,所以这幅帖子是用来集中讨论怎样建立一支bootable USB flash drive。


角色
作者: 角色    時間: 2010-8-8 16:00

本帖最後由 角色 於 2010-8-8 17:42 編輯

大家先参考下面帖子:
http://www.themudcrab.com/acronis_grub4dos.php#tagInstall

我用Kingston和Sandisk,都不成功,听过bubblestar很多USB flash drive牌子都可以,如imation。

不过我在想,为什么?是否我的系统的简体就出问题呢?如果全用英文系统不知道是否有改善?

角色
作者: 角色    時間: 2010-8-8 16:01

本帖最後由 角色 於 2010-8-15 21:58 編輯

为了解决不能启动问题,在网上我寻找了一些资料,终于给我找到答案。

1) 下载下面两个软件 fbinst.zip and grldr.zip
fbinst.exe是一个program,它让你的USB flash drive与mainland board的USB driver的沟通起来很大的作用。
Extract the files into a single directory.

fbinst.zip (24.32 KB)

grldr.zip (114.7 KB)

2) 用editor,creat a filename fb.txt as follows:
  1. default 0
  2. timeout 5
  3. text "Please choose menu"
  4. text "F1. grldr"
  5. menu F1 grldr grldr
複製代碼
3) Using an editor to creat another file of name menu.lst
  1. timeout 10
  2. default 0

  3. title CommandLine
  4. commandline

  5. title Reboot
  6. reboot

  7. title Halt
  8. halt
複製代碼
4) format USB flash drive using Windows formating application

5) Assume hd1 is the USB flash drive device name, excute the following commands in a command prompt.

fbinst (hd1) format  
(If problems occur, you may use fbinst (hd1) format --force)

fbinst (hd1) add grldr .\grldr

fbinst (hd1) add-menu fb.cfg .\fb.txt

6) Using Windows application to copy menu.lst to the root directory of the USB flash drive

A bootable USB flash drive is ready for booting. You may see the following message if your configuration is correct.

Command line
Reboot
Halt

Another member named jianliulin write a GUI too based fbinst to facilitate the file management in USB flash drives
FbinstTool_V 1.509.part2.rar (181.05 KB)
FbinstTool_V 1.509.part1.rar (488.28 KB)

1) Format the USB flash drive
Select fat32, force, align as follows:
0015.png

menu.lst 是怎样写,可以参考一下链接:
http://www.telecom-cafe.com/view ... &extra=page%3D1

其他参考:
bean fbinst : http://bbs.znpc.net/viewthread.php?tid=5669
BURG: http://www.burgloader.com/bbs/index.php?board=4.0

附件: grldr.zip (2010-8-8 17:00, 114.7 KB) / 下載次數 816
http://www.telecom-cafe.com/forum/attachment.php?aid=133&k=f75ab4c190943bd58539a23876344a56&t=1714036791&sid=9w9Clj

附件: fbinst.zip (2010-8-8 17:00, 24.32 KB) / 下載次數 738
http://www.telecom-cafe.com/forum/attachment.php?aid=134&k=48b44f7006e4ba54311e89eea8e2e09e&t=1714036791&sid=9w9Clj

附件: FbinstTool_V 1.509.part2.rar (2010-8-8 18:09, 181.05 KB) / 下載次數 707
http://www.telecom-cafe.com/forum/attachment.php?aid=136&k=736d50358a0f46514ac5db73c3e96982&t=1714036791&sid=9w9Clj

附件: FbinstTool_V 1.509.part1.rar (2010-8-8 18:09, 488.28 KB) / 下載次數 722
http://www.telecom-cafe.com/forum/attachment.php?aid=137&k=fa6f9b92310c64e3b6ecf2dc3bcc30de&t=1714036791&sid=9w9Clj

圖片附件: 0015.png (2010-8-8 18:12, 13.98 KB) / 下載次數 638
http://www.telecom-cafe.com/forum/attachment.php?aid=138&k=7e6dcc1e71cb771766a5ae5908eb565b&t=1714036791&sid=9w9Clj


作者: 角色    時間: 2010-8-8 16:01

本帖最後由 角色 於 2010-8-8 21:57 編輯

USB Flash Drive Collection

Sandisk Cruzer Contour Z8, 16G卖人民币265元
http://item.taobao.com/item.htm?id=4698110760
作者: 角色    時間: 2010-8-8 16:04

备用帖子。
作者: 角色    時間: 2010-8-8 16:04

备用帖子。
作者: 角色    時間: 2010-8-8 16:05

备用帖子。
作者: 角色    時間: 2010-8-8 16:06

备用帖子。
作者: 角色    時間: 2010-8-8 16:08

备用帖子。
作者: 角色    時間: 2010-8-8 16:11

备用帖子。
作者: bubblestar    時間: 2010-8-8 18:27

本帖最後由 bubblestar 於 2010-8-9 00:03 編輯

It surprises me that the latest USB pendrives are not bootable.  Most usb keys like imation, sandisk, TDK, Transend, you name it, can do.

The following, at least but not last, is Recommended USB Flash Pen Drives for Portable Linux installation that you can use.

You may also use and download HP USB Format tool to make the USB Flash Drive bootable and restore to its original state.

USB Tools and Help

Actually, all the above can be found in the site http://www.pendrivelinux.com/ which I highly recommend to those interested parties. The site is updated almost every day.  Please visit frequently.
作者: bubblestar    時間: 2010-8-8 23:14

It is REQUIRED that your flash drive contain a formatted partition! Some flash drives ship formatted "superfloppy" (without a partition table). Those drives will need to be reformatted to use a partition, so they can be detected by BIOS as a Hard Drive. If you are not presented with a Boot Menu as pictured above, or the menu is found at (fd0) instead of (hd0,0) the problem is likely that you are trying to boot the flash drive as a superfloppy. You should reformat your flash drive using one of the methods listed HERE, then reinstall MultiBootISOs, and attempt to boot using the USB-HDD or USB-ZIP BIOS option or see if the drive shows up as a selectable hard disk in your Boot Menu.
作者: 角色    時間: 2010-8-8 23:23

本帖最後由 角色 於 2010-8-8 23:31 編輯

Thank bubblestar's advice. I remember that I did not do any parition on my USB flash drive. I just use the format command (either Windows or HP format tool) to format my USB flash drive. I shall consider your advice that at least one paritition is given to my USB flash drive before formating it.

I have a question that in the past, I did use the HP formatting tool to format my USB flash drive. However I did not use any fdisk partition software to partition my USB flash drive. Have you made any partition in your USB flash drive after formatting your USB flash drive?

YH
作者: bubblestar    時間: 2010-8-9 00:01

I rarely use fdisk partition software.  Actually, HP formatting tool is quite enough.  Sometimes, I even do not need this tool and the flash drive can be recognized by BIOS.  

The point is that we have to make sure the newly bought flash drive is not a "superfloppy".  If it is the case, we just use the HP formatting tool as advised to make this workout.  Windows formatting tool is not the best choice, in fact.
作者: dreamy2k    時間: 2010-8-9 00:13

哈哈哈!!今次我安裝CENTOS都系用USB去安!!我下載了個很好用的USB TOOL好簡單甘就用到USB INSTALL LINUX
作者: 角色    時間: 2010-8-9 00:29

本帖最後由 角色 於 2010-8-9 00:32 編輯

回復 14# bubblestar

I am able to make my both USB flash drives to be bootable with MultiBootISOs-v1.6.exe program. However I am not able to install GRUB4DOS program using the link . Any advice to fix this problem.

YH
作者: 角色    時間: 2010-8-9 00:30

本帖最後由 角色 於 2010-8-9 00:49 編輯

回復 15# dreamy2k

你把CentOS安装在USB flash drive上?

你有什么tools呢?


角色
作者: dreamy2k    時間: 2010-8-9 01:02

不是!!是用USB INSTALL CENTOS去HDD里
作者: 角色    時間: 2010-8-9 01:09

本帖最後由 角色 於 2010-8-9 01:13 編輯

你的意思吧CentOS的iso放在USB flash drive里?成功吗?你用什么tools,还有你的USB是哪个牌子和型号呢?

我怎样做也不成功,只要是CDROM问题,如果USB flash drive能被看成为CDROM就好,但是怎样做,它有些path需要CDROM这一类的要求。

角色
作者: dreamy2k    時間: 2010-8-9 01:17

对呀!!我系公司整的!!是但乜牌子的USB手指的OK!!只系個PROGRAMM會用你的ISO去BULID個BOOT LOADER之后去到INSTALL時話整比電腦知道個ISO系邊就OK!!

我系因為部SERVER無CDROM又借吾到USB CDROM回來先甘做
作者: 角色    時間: 2010-8-9 07:50

我想起我以前是安装AsteriskNOW 1.7才遇到问题,等我用它的ISO image再试一试就知道。

角色
作者: ckleea    時間: 2010-8-9 09:20

我想起我以前是安装AsteriskNOW 1.7才遇到问题,等我用它的ISO image再试一试就知道。

角色 ...
角色 發表於 2010-8-9 07:50



    Should not be able to install Centos into a USB stick. For Ubuntu, you can install into a USB hard disk, use grub to install other. In my case, I boot up with a Grub, then select a hackintosh. There is way to allow boot XP from USB but I have not tried before.
作者: bubblestar    時間: 2010-8-9 10:12

是什麼 USB TOOL 呢? 可以分享一下嗎? 是否在說 Pendrivelinux 的 Multiboot 那一個呢? 它確實是非常實用。
作者: 角色    時間: 2010-8-9 10:24

回復 23# bubblestar

你说的网站,我测试过,在我的Intel ATOM D510MO板是可以用,不关是单boot,还是multi boot都可以。但是他的menu.lst是linux,所以一般editor不能edit,不知道你是否有在DOS下,去edit unix的text file呢?

角色
作者: 角色    時間: 2010-8-9 10:33

建基于Sandisk Extreme Contour的手指,我知道是什么写的速度感念。所以可以这样说,真的快速的flash是以1G/min为准,所以Sandisk的写入速度是1X,那么一般的flash只有0.2X的写入速度。

不知道你们的flash写入是多少X呢?

角色
作者: 角色    時間: 2010-8-9 11:34

我可以用USB flash drive 安装CentOS 5.5 Final,安装时不选CDROM,而选Hard Drive。不过安装时系统吧我的USB flash drive的MBR更加了,要用它才能boot起新装的CentOS,如果拔走USB flash drive,那么就会用旧的启动系统,而且我的USB flash drive再不能做其他安装盘用途,因为MBR被改写了。

我要重新安装过我My USB flash drive,可以用fbinstTool,把整个都format,data全没有了。但是用fbinst(用fbinst (hd1) format --force)就没有这个问题。

角色
作者: ckleea    時間: 2010-8-9 11:51

我可以用USB flash drive 安装CentOS 5.5 Final,安装时不选CDROM,而选Hard Drive。不过安装时系统吧我的U ...
角色 發表於 2010-8-9 11:34


明白,原來如此。但 Ubuntu 就不需要,直接裝,直接用。但係你裝Centos 加 Asterisk 的目的是甚麼?我裝Ubuntu 做隨身應用文書和上網。
作者: 角色    時間: 2010-8-9 12:04

主要是有些codecs需要source codes,然后compile才能做成,在一般的情况下是不需要的,我直接用AsteriskNOW 1.7 Option 4 (Asterisk 1.4 + Asterisk-GUI 2.0)就非常好了。

角色
作者: ckleea    時間: 2010-8-9 12:24

正常情況,你可以如下,
1. 你的 asterisk server 可以裝 sources codes, library and compiler
2. download sources into /usr/src
3. ./configure and make menuselect. Add what you want
4. make (but do not "make install")
5. find out the .so  in the codecs directory
6. copy to the appropriate directory of your asterisk.
7. maintain your asterisk with RPM
因為CPU 唔同,係唔同機compile,可能唔 work
作者: dreamy2k    時間: 2010-8-9 12:52

unetbootin
http://unetbootin.sourceforge.net/

好簡單的!!系WINDOWS上整就OK!!!
作者: ckleea    時間: 2010-8-9 12:55

勁!非常簡單。
作者: bubblestar    時間: 2010-8-9 13:25

Pendrivelinux  都有圖文教學


真的很簡單, click 幾 click OK
作者: dreamy2k    時間: 2010-8-9 14:45

我想問你們整完有無試去安裝呀?
作者: 角色    時間: 2010-8-9 16:22

Pendrivelinux里的single boot and multiboot我都试过,没有问题。在GRUB4DOS里有问题的,在Pendrivelinux都没有问题,说明它的software非常robust。

角色
作者: dreamy2k    時間: 2010-8-9 16:35

因為我第一次安裝時一直都安吾到!!之后我把整個ISO放入手指里就OK!!我想問下大家有無甘的情況
作者: 角色    時間: 2010-8-9 16:36

当然把整个ISO放入去,难度你extract ISO,然后在放入里面吗?


角色
作者: dreamy2k    時間: 2010-8-9 17:29

不知道怎樣說
我先用PROGRAMM EXTRACT ISO去USB手指的




歡迎光臨 電訊茶室 (http://www.telecom-cafe.com/forum/) Powered by Discuz! 7.2