LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to install Grub to MBR of USB drive? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-grub-to-mbr-of-usb-drive-718402/)

linus72 04-11-2009 06:38 AM

How to install Grub to MBR of USB drive?
 
I did a HD install of DSL to my USB, formatted to EXT2, 4GB.
But, when it got to the grub part I don't think it went right.
At boot I get a screen that says "grub >"
What does that mean?
How do I get it to boot, as it seems grub may already be installed.

Code:

# This sets the default entry to boot.
# Remember that GRUB counts from 0, so 1 is the second entry.

default 0
       
# This sets the length of time in seconds that grub will wait for the user to select an OS
# before it boots the default on. I reccommend at least 15 seconds.

timeout 15

# Enter the entry for DSL here. Something like this.

title DSL
kernel /boot/linux24 root=/dev/sda1 quiet vga=normal noacpi noapm nodma noscsi frugal

title DSL fb800x600
kernel /boot/linux24 root=/dev/sda1 quiet vga=788 noacpi noapm nodma noscsi frugal

title DSL fb1024x768
kernel /boot/linux24 root=/dev/sda1 quiet vga=791 noacpi noapm nodma noscsi frugal

title DSL fb1280x1024
kernel /boot/linux24 root=/dev/sda1 quiet vga=794 noacpi noapm nodma noscsi frugal

#title DSL with toram, mydsl, restore, hostname, and passwords
#kernel /boot/linux24 root=/dev/sda1 quiet vga=normal noacpi noapm noscsi frugal dma toram mydsl=hda5 restore=hda5 host=DSL1 secure

#title DSL with XFree86
#kernel /boot/linux24 root=/dev/sda1 quiet vga=normal noacpi noapm noscsi frugal dma toram mydsl=hda5/xfree restore=hda6 host=DSL1 secure

#title DSL with mydsl, restore, persistentancy, hostname, and passwords
#kernel /boot/linux24 root=/dev/sda1 quiet vga=normal noacpi noapm noscsi frugal dma toram mydsl=hda3 restore=hda3 home=hda3 opt=hda3 host=DSL1 secure

#title DSL Runlevel 2
#kernel /boot/linux24 root=/dev/sda1 quiet vga=normal noacpi noapm noscsi nodma frugal 2 base norestore

#title DSL Check filesystem(s)
#kernel /boot/linux24 root=/dev/sda1 quiet vga=normal noacpi noapm noscsi nodma frugal 2 toram legacy base norestore checkfs

#title Windows
#root (hd0,0)
#chainloader +1
#makeactive
#boot

That's the menu.lst OK-so there is no entry there-right?
How do I tell it to boot the USB?
DSL sees the USB as sda1, while my PC sees it as sdf1-does it matter?

hurry_hui 04-11-2009 11:48 AM

Quote:

At boot I get a screen that says "grub >"
What does that mean?
This means grub prompt.

To see your drive like grub see it, you need to type
Code:

grub>geometry (hd5)
or (hd0) at grub command prompt. hd0 is sda; hd5 is sdf.

at grub command prompt type
Code:

grub>find /boot/grub/stage1
to check whether grub is installed in USB drive.


Quote:

DSL sees the USB as sda1, while my PC sees it as sdf1-does it matter?
It depends on your boot sequence.

As for booting manually, you can type one of menu.lst (grub.conf) entry one line-by-one line followed by enter. When finished type boot, press enter.


All times are GMT -5. The time now is 03:34 PM.