红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

把Geexbox安装到U盘并启动成功

发布时间:2008-09-15 00:40:19来源:红联作者:ufnhliou
准备工作:系统ubuntu-livecd+虚拟机VM+GeexBox 1.1 RC2 DIY 简体中文硬盘安装版

1.用虚拟机VM启动ubuntu-livecd,让虚拟机连接U盘

2.U盘分区准备(请确认你的U盘是否是/dev/sdb,操作请确认U盘处于umount状态)

ubuntu@ubuntu:~$ sudo fdisk /dev/sdb

Command (m for help): p

Disk /dev/sdb: 1027 MB, 1027604480 bytes
255 heads, 63 sectors/track, 124 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 86 690763+ 6 FAT16
/dev/sdb2 87 124 305235 83 Linux

Command (m for help): d
Partition number (1-4): 1

Command (m for help): d
Selected partition 2
#删除原有的分区,为了重新分区
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-124, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-124, default 124): +30M
#建立新分区30M,对于Geexbox够了
Command (m for help): a
Partition number (1-4): 1
#设为启动分区
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 6
Changed system type of partition 1 to 6 (FAT16)
#将分区设为FAT16

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
ubuntu@ubuntu:~$
#重新插拔一下U盘,完成分区准备建立文件系统
ubuntu@ubuntu:~$ mkfs.vfat -F 32 -n Geexbox /dev/sdb1
#-n volume-name (我想可能建立ext文件系统也是可以的吧 )
mkfs.vfat 2.11 (12 Mar 2005)

ubuntu@ubuntu:~$

3.U盘数据准备

http://hi.baidu.com/cdjdd/blog/item/1b62cb86b053693d67096e96.html光盘下载地址

硬盘安装版下载地址:
1. 4:3版 http://www.ultraic.com/files/geexbox-1.1-rc2-custom-zh_CN.exe我用的是这个版本

双击安装到任意盘。生成3个文件boot+geexbox+grldr。只需要boot和geexbox拷贝到U盘就可以了。

4.如何使U盘启动

sudo apt-get install mbr
在u盘上建立mbr:sudo install-mbr /dev/sdb
然后grub
>root (hd0,0)
为了确认是否是正确的U盘可以
>cat (hd0,0)/boot/grub/menu.lst
然后在mbr上安装grub
>setup (hd0)
#这一步是需要stage等文件的。在安装好的ubuntu/boot/grub/下面有这些文件拷贝到U盘的/boot/grub/下,再次执行setup(hd0)成功。

>quit

5.修改menu.lst

添加一下字符

title GeeXboX
root (hd0,0)
kernel /boot/grub/vmlinuz
initrd /boot/grub/initrd.gz
boot

放真实机子上启动成功。

个人感觉有液晶的显示器比较好,至少不要调整显示器频率。
文章评论

共有 0 条评论