LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-11-2009, 06:38 AM   #1
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,071

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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?
 
Old 04-11-2009, 11:48 AM   #2
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 51
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.

Last edited by hurry_hui; 04-11-2009 at 11:56 AM. Reason: Adding manual booting
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frugal install of GRUB based distro on a USB flash drive from Windows/DOS ? kumarkumar Linux - Newbie 3 06-02-2008 04:26 PM
How do I re-install Grub onto the MBR? satyakb Mandriva 5 04-11-2008 10:50 AM
re-install grub to mbr nomb Fedora 1 11-19-2007 10:09 AM
Grub in MBR no Linux installed can't access hard drive bookmonger Linux - Software 13 02-14-2006 07:06 AM
install lilo/grub on a USB flash drive? flystar06 Linux - General 3 06-14-2005 08:48 PM


All times are GMT -5. The time now is 04:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration