顯示具有 grub 標籤的文章。 顯示所有文章
顯示具有 grub 標籤的文章。 顯示所有文章

2009年8月3日 星期一

New Method of GRUB4DOS to Create a Bootable USB Stick

1. download grub4dos from http://download.gna.org/grub4dos/ and fbinst from
http://download.gna.org/grubutil/

2. if you are using vista, remember to run cmd as administrator

3. display help message

fbinst.exe -h

4. get the device number of usb storage

fbinst.exe -l

5. format the device

fbinst.exe (hd1) format --force --extended 4M

it will create mbr with 8mb primary(default) and 4mb extended area of hidden space, and a normal fat partition
you can format as usb-zip instead by --zip
because mbr and partition have been changed, unplug and plug the device for the following steps

6. extract grldr from grub4dos then copy it to device

fbinst.exe (hd1) add grldr c:\grldr

7. extract ldlinux.bin from http://www.kernel.org/pub/linux/utils/boot/syslinux/ then copy it to device with the parameter, --syslinux because syslinux must be put in extended data area

fbinst.exe (hd1) add --syslinux ldlinux.bin c:\ldlinux.bin

8. copy ntldr, NT boot loader to device

fbinst.exe (hd1) add ntldr c:\ntldr

9. create a text file named fb.txt

default 0
timeout 5
text "F1: GRUB"
menu F1 grldr grldr
text "F2: SYSLINUX"
menu F2 syslinux ldlinux.bin
text "F3: NTLDR"
menu F3 grldr ntldr

10. put it into your device as menu

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

11. you can show disk information to check these files

fbinst (hd1) info

2008年12月13日 星期六

VirtualBox Open Source Edition on Ubuntu

1. install open source edition of virtualbox and its module

sudo apt-get install virtualbox-ose virtualbox-ose-modules-generic

2. from console output or /var/log/apt/term.log, you can see there is no matching virtualbox-ose module for kernel 2.6.24-22. virtualbox-ose-modules-generic is linked to kernel 2.6.24-21 so apt-get installs linux-image-2.6.24-21-generic automatically.

in short, we have to change default boot number of grub to kernel 2.6.24-21

sudo vi /boot/grub/menu.lst
--
default n

3. scim conflicts with virtualbox-ose. it results keyboard is locked in both host and guest os when you press key or mouse which is captuered in guest os. below is the solution

sudo apt-get install scim-bridge-client-qt
im-switch -z en_US -s scim-bridge

4. reboot then done

5. before sharing folders between host and guest, you must install Guest Additions. once installed it, go to Devices -> Shared Folders.. to set your sharing folders. if guest os is windows, run

net use x: \\vboxsvr\FolderName

2008年10月16日 星期四

Change boot loader of Ultimate Boot CD to grub on a USB stick

1. use hp formatting tool to format usb flash drive as USB-HDD because the formatting function of window will make it as USB-ZIP

2. repeat step 1 ~ 3 in Change boot loader of Slax to grub on a USB stick if your usb stick is not bootable

3. download iso image of ubcd from http://www.ultimatebootcd.com/download.html and extract it

4. download converted grub menus then
delete syslinux, isolinux folders, menus folder and boot.catalog
copy grldr, grub.exe, memdisk, new downloaded menus folder and menu.lst to the iso root directory

5. rebuild the iso

mkisofs -R -b grldr -no-emul-boot -boot-load-size 4 -allow-lowercase -o ubcd411.iso d:\ubcd411


4. copy the new iso to the usb stick then edit menu.lst and add below

title Ultimate Boot CD
find --set-root /ubcd411.iso
map /ubcd411.iso (hd32)
map --hook
root (hd32)
chainloader (hd32)

2008年4月30日 星期三

Change boot loader of Slax to grub on a USB stick

1. downloadgrub4dos from https://gna.org/projects/grub4dos/ and grubinst from
http://download.gna.org/grubutil/

2. run grubinst_gui.exe to install grub into USB

3. extract grldr to root directory of USB

4. create a text file named menu.lst which lists boot menu

find --set-root /boot/vmlinuz

title Slax Graphics mode (KDE)
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 changes=/slax/
initrd /boot/initrd.gz

title Slax Always Fresh
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4
initrd /boot/initrd.gz

title Slax Copy To RAM
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw copy2ram autoexec=xconf;telinit~4
initrd /boot/initrd.gz

title Slax Graphics VESA mode
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=telinit~4 changes=/slax/
initrd /boot/initrd.gz

title Slax Text mode
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw changes=/slax/
initrd /boot/initrd.gz

title Run Memtest86 utility
kernel /boot/mt86p