把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狀态)
[email protected]:~$ 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.
[email protected]:~$
#重新插拔一下U盤,完成分區準備建立檔案系統
[email protected]:~$ mkfs.vfat -F 32 -n Geexbox /dev/sdb1
#-n volume-name (我想可能建立ext檔案系統也是可以的吧 )
mkfs.vfat 2.11 (12 Mar 2005)
[email protected]:~$
3.U盤資料準備
http://hi.baidu.com/cdjdd/blog/item/1b62cb86b053693d67096e96.htmlCD光牒下載下傳位址
硬碟安裝版下載下傳位址:
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
放真實機子上啟動成功。
個人感覺有液晶的顯示器比較好,至少不要調整顯示器頻率。