LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-15-2008, 05:35 PM   #1
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Rep: Reputation: 16
Booting into Debian without Bootloader


Ok, I am dual-booting XP Home and Debian 4.0. I installed the base system and then asked me where to install GRUB. I have Debian on a different drive than XP. I didn't know if (hd0) was XP or Debian. So I opted out of installing it. It said I could boot into it manually by typing /dev/sdb4 root=/dev/sdb4 (or something like that). Where do I type this in? Is there a map that I can look at that tells me what device is what? Thanks.
 
Old 04-15-2008, 06:22 PM   #2
yodahome
LQ Newbie
 
Registered: Oct 2007
Posts: 5

Rep: Reputation: 0
There is (afaik) no way to boot into a linux system without a boot loader. (Same with windows, except it uses a different one and doesn't ask you about it).
You might be able to get into your Debian installation by booting from the installation cd (which uses grub). /dev/sdb4 is obviously the partition where you installed linux (4th partition on the second hard disk). If you know grub a little you should be able to tell it to boot with this parition as root. (the grub manual might be of help http://www.gnu.org/software/grub/manual/html_node/)

As a smartass-additional note, you should have just installed grub onto master boot record of hd0 (which is the first hd in your computer and therefore the first option you're offered). This is the standard way and it works for almost everybody, it does not destroy any data but it DOES replace a small portion of boot code so the bootloader can do its job.

However you can do that manually from inside debian once you're in.

If you're unsuccessful in getting into debian, just do the install process again (and install grub this time).*g*
 
Old 04-15-2008, 08:24 PM   #3
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
Ok GRUB is on the MBR of the second HD. I am wanting to have it read the Menu.lst file from a different partition. Is there a way I can have it do that? Thanks.
 
Old 04-15-2008, 09:00 PM   #4
strikeer
LQ Newbie
 
Registered: Nov 2007
Location: Bedford Heights, OH
Distribution: OpenSuSE 11.3/11.2, SLED 10.1, Knoppix, Fedora
Posts: 5

Rep: Reputation: 0
Smile

11.2 How to specify files

There are two ways to specify files, by absolute file name and by block list.

An absolute file name resembles a Unix absolute file name, using `/' for the directory separator (not `\' as in DOS). One example is `(hd0,0)/boot/grub/menu.lst'. This means the file /boot/grub/menu.lst in the first partition of the first hard disk. If you omit the device name in an absolute file name, GRUB uses GRUB's root device implicitly. So if you set the root device to, say, `(hd1,0)' by the command root (see root), then /boot/kernel is the same as (hd1,0)/boot/kernel.


Quoted from http://www.gnu.org/software/grub/man...le-name-syntax

Check that out some more may help.
 
Old 04-15-2008, 09:13 PM   #5
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
I don't think you understand. I am wanting to read a totally different menu.lst file on a different partition.
 
Old 04-15-2008, 10:14 PM   #6
strikeer
LQ Newbie
 
Registered: Nov 2007
Location: Bedford Heights, OH
Distribution: OpenSuSE 11.3/11.2, SLED 10.1, Knoppix, Fedora
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by gamewolf View Post
I don't think you understand. I am wanting to read a totally different menu.lst file on a different partition.
(hd?,?) indicates the drive and the partition [(hddrive,partition)]

Example:

hd(0,0) 1st drive and 1st partion
hd(1,0) 2nd drive and 1st partion
hd(2,1) 3rd drive and 2nd partion
and so on...

Hope this helps
 
Old 04-16-2008, 03:54 PM   #7
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
Yes, I know about that. I am wanting to GRUB on the MBR to read a totally different Menu.lst file.
 
Old 04-23-2008, 12:20 PM   #8
masinick
Member
 
Registered: Apr 2002
Location: Concord, NH
Distribution: Debian, sidux, antiX, SimplyMEPIS, Kubuntu, Mandriva, Fedora, Xandros, Arch, and many others
Posts: 560
Blog Entries: 14

Rep: Reputation: 35
IF you have GRUB installed on one disk, you can reference any boot loader or boot block on any partition of any disk on your system.

The chainloader feature of GRUB allows you to access any boot record on any partition. You use it by first specifying either root or rootnoverify, followed by the GRUB notation for the partition. For example:

root (hd1,2)
chainloader +1

points to the third partition on the second disk (both numbering schemes begin with zero.

Alternatively, you can specifically point to a bootable kernel and initial RAMdisk using a similar method. For example:

root (hd0,5)
kernel (hd0,5)/boot/vmlinuz-2.6.24.30-Linux_distro ro root=/dev/sda6
initrd (hd0,5)/boot/initrd-2.6.24.30-Linux_distro.img
boot

These are just examples. The actual settings would vary somewhat. In the second example, you do not have to specify the (hdx,y) values, (they default to the values on the root line) but I do so because it gives me more flexibility when I am editing GRUB on the fly.
 
Old 04-23-2008, 12:32 PM   #9
masinick
Member
 
Registered: Apr 2002
Location: Concord, NH
Distribution: Debian, sidux, antiX, SimplyMEPIS, Kubuntu, Mandriva, Fedora, Xandros, Arch, and many others
Posts: 560
Blog Entries: 14

Rep: Reputation: 35
GRUB link searched on Linux Questions

http://www.linuxquestions.org/questi...highlight=GRUB
is one useful place to find information about using GRUB effectively. Within that thread there is a pointer to the official GRUB documentation, which can also help you with specific details. Read them, then ask questions if there are areas that are unclear or difficult to understand.
 
Old 04-28-2008, 06:54 AM   #10
wificraig
Member
 
Registered: Jan 2008
Location: Southern Oregon
Distribution: Laptop: DesktopBSD1.6, openSuse11, Mandriva, Mepis7, BackTrack3....USB: Mandriva2009, Debian-Lenny,
Posts: 82

Rep: Reputation: 16
Reading a different menu.lst

Rather than installing Grub with the installation disk, you can run Grub in two ways...either from the Debian system you have installed, or from a live CD (like Mepis, etc) that has the Grub application.
It's been a while, but you'll open a terminal window (may need su?), and type "grub" (and enter). Then type "root (hd2,3)", or whatever your hard drive is (ie. hd2) and the partition number (ie. 3) where the 3 is partition number 4, since grub starts at 0 for the first partition. Then type "setup (hd2)" or whatever the hard drive number is. If grub was setup properly, you'll see a print out in the terminal window if grub found the correct files needed. Finally, type "quit", and you can close the terminal window. Grub will search the hard drive and partition for the /boot/grub/menu.lst file.
 
Old 04-28-2008, 07:31 AM   #11
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Read this, it should answer your questions, I put grub in its own very small partition on hd0 and chainload all my os's. You can do this with removeable drives then you can disconnect and not loose boot to other os's.

http://www.justlinux.com/forum/showt...hreadid=147959

You can also carry a Super Grub cd around with you and boot from it

Last edited by Larry Webb; 04-28-2008 at 07:34 AM.
 
  


Reply

Tags
boot, grub config


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
Booting without bootloader in MBR cyberoidx Linux - General 3 01-20-2006 10:10 PM
Booting a floppy image with a bootloader kleptophobiac Linux - Software 2 07-25-2005 06:25 AM
mandrake booting from suse's bootloader pcandpc Linux - Newbie 4 05-24-2005 11:37 PM
Booting from Floppy rather than using bootloader Zmaster115 Suse/Novell 3 01-11-2005 11:18 PM
booting vmlinuz/initrd from a bootloader bob_man_uk Linux - General 4 04-07-2004 09:47 PM


All times are GMT -5. The time now is 04:36 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