[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cross installation of GRUB
From: |
adrian15 |
Subject: |
Re: Cross installation of GRUB |
Date: |
Thu, 18 May 2006 12:17:57 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.7 (Windows/20050923) |
Stephen Liu wrote:
Hi adrian15,
Tks for your advice
Reread my howto and you will see that in this step it is read:
setup (hd1) and not setup (hd1,0).
Where is the howto located?
I meant this:
For instructions on how to install grub on a pendrive,
please check #6 on:
http://adrian15.raulete.net/grub/tiki-index.php?page=EnFaq
Reinstalled the pendrive;
...
# ls -l /mnt/boot/grub/
total 192
-rw-r--r-- 1 root root 7456 May 10 16:14 e2fs_stage1_5
-rw-r--r-- 1 root root 7328 May 10 16:14 fat_stage1_5
-rw-r--r-- 1 root root 6592 May 10 16:15 ffs_stage1_5
-rw-r--r-- 1 root root 6592 May 10 16:15 iso9660_stage1_5
-rw-r--r-- 1 root root 8032 May 10 16:15 jfs_stage1_5
-rw------- 1 root root 753 May 10 16:22 menu.lst
-rw-r--r-- 1 root root 6752 May 10 16:15 minix_stage1_5
-rw-r--r-- 1 root root 9056 May 10 16:15 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 May 10 16:12 stage1
-rw-r--r-- 1 root root 102332 May 10 16:12 stage2
-rw-r--r-- 1 root root 6944 May 10 16:15 ufs2_stage1_5
-rw-r--r-- 1 root root 6144 May 10 16:15 vstafs_stage1_5
-rw-r--r-- 1 root root 8768 May 10 16:15 xfs_stage1_5
Here there is not grub.conf at all.
* End *
grub> find /myusb
find /myusb
(hd1,0)
grub> root (hd1,0)
root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd1)
setup (hd1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 15 sectors are
embedded.
succeeded
Running "install /boot/grub/stage1 (hd1) (hd1)1+15 p
(hd1,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded
OPTION 1)
===========
Here it detects a grub.conf when there should only be a menu.lst.
After this step I advise you to run this command:
install /boot/grub/stage1 (hd1) (hd1)1+15 p (hd1,0)/boot/grub/stage2
/boot/grub/menu.lst
(All in one line)
So that you can use menu.lst.
OPTION 2)
===========
The other "trick" that you can do is do a copy like:
# cp /boot/grub/grub.conf /mnt/boot/grub/grub.conf
So... now you do have to edit grub.conf instead of menu.lst.
After doing option 1 or option 2... the menu.lst and grub.conf should be
interpreted when booting the USB... so you should see a MENU.
# qemu -boot c -hda /dev/sdb
It prompted a "QEMU" window;
......
grub>
* End *
Something unexpected here. The mouse point disappeared compelling me
to switch to "runlevel 3" and run "shutdown -r now" to reboot the PC.
This is the normal behaviour of qemu. Just press ctrl+alt and your mouse
will be free. If your qemu version is ok... you will see the indication
in the name of the windows when the mouse cursor is in the power of qemu.
all without booting the HD. The pendrive booted with grub prompted
waiting for input.
grub>
What shall I key in herer to boot the HD, /dev/sda
If an OS installed on /dev/sdb2 (pendrive) and I want to boot it, what
shall I enter on the menu.lst.
I am not going to show you examples on how you can use menu.lst for
booting one or more OSes. Which OS are you going to install ? Windows?
Linux?
However I am going to tell you that when you boot from a usb disk with grub.
(hd0) is the usb disk.
(hd1) is your hard disk. (I suppose that in your case it was /dev/sda.
But this name does not matter to grub when it boots)
(hd0) and (hd1) are not usb pendrives or scsi hard disks. They are only
hard disks for grub. So you will have to learn how to create menu.lst
for hard disks and boot its kernels and SOs. There's a lot of
information on the internet.
However as I am a good person and I do have a lot of patience you can
try to make your own menu.lst and go back here asking for advices on
improving it.
adrian15