LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-26-2007, 07:23 AM   #1
pradeep2002gs
Member
 
Registered: Apr 2006
Location: india->tamilnadu->madurai
Distribution: fedora,suse,ubuntu
Posts: 84

Rep: Reputation: 15
how to boot linux without a boot loader


currenty i'm using Windows XP.... i need to install the linux in my pc... but i dont need the GRUB or LILO boot loaders... is it is possible to boot the linux without the boot loader....?
please help me dudes....
 
Old 10-26-2007, 07:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
why would you not want to install grub? it'll pix up the windows installation and just automatically add it to the boot menu.
 
Old 10-26-2007, 07:38 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
is it is possible to boot the linux without the boot loader....?
If I am not mistaken, it is not possible to boot any OS without a bootloader.

You have lots of options, including putting the bootloader on a floppy.

The "booting" link below might be helpful
 
Old 10-26-2007, 08:26 AM   #4
pradeep2002gs
Member
 
Registered: Apr 2006
Location: india->tamilnadu->madurai
Distribution: fedora,suse,ubuntu
Posts: 84

Original Poster
Rep: Reputation: 15
thanks for correcting me and i was pleased to hear how to copy the GRUB boot file to floppy and how to make it as bootable
thanks a lot in advance
 
Old 10-26-2007, 08:31 AM   #5
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
This may help

http://www.enterprisedt.com/publications/dual_boot.html
 
Old 10-26-2007, 08:41 AM   #6
pradeep2002gs
Member
 
Registered: Apr 2006
Location: india->tamilnadu->madurai
Distribution: fedora,suse,ubuntu
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Duck2006 View Post
will this works for GRUB boot loader.....?
 
Old 10-26-2007, 08:48 AM   #7
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
Yes that will work.
 
Old 10-26-2007, 08:50 AM   #8
pradeep2002gs
Member
 
Registered: Apr 2006
Location: india->tamilnadu->madurai
Distribution: fedora,suse,ubuntu
Posts: 84

Original Poster
Rep: Reputation: 15
thanks buddy.....
 
Old 10-27-2007, 10:45 PM   #9
pradeep2002gs
Member
 
Registered: Apr 2006
Location: india->tamilnadu->madurai
Distribution: fedora,suse,ubuntu
Posts: 84

Original Poster
Rep: Reputation: 15
can any one suggest me how to use USB drive instead of the floppy to store the boot record....?. because it failing often,,,, or even CD also appricated......
may i use any software to create that like BRAT boot image etc....?

help me dudes
thanks in advance
 
Old 10-28-2007, 08:21 AM   #10
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
You can try super grub CD

http://supergrub.forjamari.linex.org/
 
Old 10-28-2007, 09:42 AM   #11
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Hey guys, lets get this right.

A Linux can be booted without its boot loader installed. It is easier if it got one because there would be instruction left on how it is booted.

A Grub prompt, which can be obtained from a floppy, USB pen drive and CD preloaded with Grub, is all that is needed to fire up a Linux. You can even get a Grub prompt from some Live CDs.

I define a Grub prompt before Grub load a system. If you get a Grub shell after loading a Linux the Grub inside can not be used for booting.

Assuming the Linux has no boot loader it must have a kernel in /boot. Some times an initrd file too. These two files are always in pairs with the same tail in the file names so pretty easy to identify by booting up a Live CD and mount its /boot.

These lines below are pretty standard for firing up any Linux distro. It may not always work but pretty reliable in my experience. Say you have find out its /boot is in the 3rd partition of first disk (hd0) so /boot is known to Grub as (hd0,3) and in Linux convention as sda4. You also need the root partition too which I assume to be sda6. I prefer /boot and / partition to be the same device but they can be different.
Code:
root (hd0,3)
kernel /boot/<kernel name> ro root=/dev/sda6
initrd /boot/<initrd name>
boot
Slackware family has great ready-make large kernels, with a standardized name "vmlinuz" and does not use initrd in the distribution. So you can source its kernel, say in partition (hd1,9), to boot you Linux in sda6 by
Code:
root (hd0,3)
kernel (hd1,9)/boot/vmlinuz ro root=/dev/sda6
boot
----------------------------------------------------------

Steps to make a USB pen drive boot up to a Grub prompt

(1) Boot up a Linux Live CD that has Grub
(2) Find out where it hide Grub's stage1 and stage2 by command "find / -name stage1"
(3) Plug in the USB drive, mount it and create a /boot/grub directory
(4) Copy stage1 and stage2 into this newly created directory.
(5) Assuming the pen drive is detected as disk (hd1) and has only one partition inside then invoking a Grub shell inside the boot-up Live CD Linux to set up Grub by commands
Code:
grub
root (hd1,0)
setup (hd1)
Leave the pen drive there, reboot, take the CD out, instruct the Bios to boot USB pen drive first and you will be greeted by a Grub prompt.

---------------------------------------------------
To make a bootable Grub CD

Follow Chapter 3.4 of Grub Manual. It is just copying one file and using mkisofs command.

Alternatively use the selected Live CD I mentioned above.

-----------------------------------------------------

Enjoy Grub prompt.

Do me a favour in return. Let me know if you find an installed PC system that cannot be booted up by it, as I have been searching for years but still could find one.

Last edited by saikee; 10-28-2007 at 09:45 AM.
 
Old 10-28-2007, 01:01 PM   #12
pradeep2002gs
Member
 
Registered: Apr 2006
Location: india->tamilnadu->madurai
Distribution: fedora,suse,ubuntu
Posts: 84

Original Poster
Rep: Reputation: 15
i'll have a try of that and reply u saikee thanks for such brief info
 
Old 10-28-2007, 10:07 PM   #13
pradeep2002gs
Member
 
Registered: Apr 2006
Location: india->tamilnadu->madurai
Distribution: fedora,suse,ubuntu
Posts: 84

Original Poster
Rep: Reputation: 15
i recently saw this link its much usefull related to this topic
have look at this
[URL="http://www.justlinux.com/forum/showthread.php?s=&threadid=130715"]link
 
Old 10-28-2007, 10:11 PM   #14
pradeep2002gs
Member
 
Registered: Apr 2006
Location: india->tamilnadu->madurai
Distribution: fedora,suse,ubuntu
Posts: 84

Original Poster
Rep: Reputation: 15
hope same link of saikee only,,,,,,
 
Old 10-28-2007, 11:34 PM   #15
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Bodhi, Mint-xfce
Posts: 183

Rep: Reputation: 21
There are several ways to boot Linux without Lilo or Grub.
From XP you can add commands to boot.ini to boot your Linux partition.
You can also use loadlin (from DOS) to boot your Linux.
 
  


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
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - Newbie 15 10-21-2005 11:29 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Red Hat 1 09-25-2005 08:08 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - General 1 09-25-2005 08:07 AM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-13-2004 12:40 AM
can linux boot without grub boot loader? eye Linux - Software 11 08-28-2003 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration