LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-31-2007, 08:58 PM   #1
DumberDrummer
LQ Newbie
 
Registered: Mar 2006
Distribution: Gentoo
Posts: 8

Rep: Reputation: 0
Create a Floppy/CD to boot into a hard drive install?


Ok, I recently took an old POS box and decided to turn it into a fileserver. In the process of installing linux, I noticed that the hard drive, while detected under the install CD, was NOT detected under BIOS. This puts forth the problem of being unable to boot from that hard drive.

I've done everything I can to get this drive detected, and it simply won't be. So the question I have is, is there a way to install grub or something to a floppy with IDE support so it will boot into it, or chainload to the grub on the drive's MBR or something?

I've already tried several different boot/rescue CDs, including a CD with grub installed that worked as advertised, but apparently relies on the BIOS for hard drive info.

any help would be greatly appreciated.
 
Old 01-31-2007, 09:56 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You can do this, but it may or may not be automated for you depending on the distribution.

For example, Slackware will give you that option on install. To either install LILO to the MBR of the drive, or install it to a floppy which you would then boot the computer with.

For all the details on doing this manually, you can look right here on the LQWiki.
 
Old 01-31-2007, 10:54 PM   #3
DumberDrummer
LQ Newbie
 
Registered: Mar 2006
Distribution: Gentoo
Posts: 8

Original Poster
Rep: Reputation: 0
Nothing at all on that page works. I tried grub and lilo and the other one previously, and Gujin doesn't detect my hard drive either
 
Old 01-31-2007, 10:57 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
That is pretty strange. What sort of errors do you get when you are using LILO? I am almost positive that does not use the BIOS for anything.

You couldn't get it to work with Smart Boot Manager either?
 
Old 02-01-2007, 08:11 AM   #5
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
Get a GRUB floppy image and boot with that.

Then use GRUB to discover and boot the kernel and initrd on the hard drive.

First hit on google: http://www.linuxjournal.com/article/4622

It'll go something like this in GRUB's command line:
root (hd0,0)
kernel /<hit tab a lot to find and fill out vmlinuz> ro root=/dev/hda1 vga=1
initrd /<hit tab a lot to find matching initrd.*.img>
boot
 
Old 02-01-2007, 08:12 AM   #6
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
Old school:
dd if=/boot/vmlinuz of=/dev/fd0
There was some tool to modify the vmlinuz binary to change boot and root stuff. I've forgotten it.

Trivia:
Linus originally made the kernel itself a bootloader. It has never since changed. With a carefully crafted kernel yo can even flash it to the motherboard's bios!
 
Old 02-01-2007, 05:31 PM   #7
DumberDrummer
LQ Newbie
 
Registered: Mar 2006
Distribution: Gentoo
Posts: 8

Original Poster
Rep: Reputation: 0
dgar, as stated, GRUB doesn't work....

I tried LILO again, and apparently the boot.b file that it calls for is missing? Lilo is for sure installed, but I can't create a boot disk following these instructions.
 
Old 02-01-2007, 06:27 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I am amazed by the statement that the Bios can't detect the hard disk but an installation CD can.

The installation CD relies on the information from the Bios.

For creating a bootable CD just follow the Chapter 3.1 of the Grub Manual. In a nutshell it involves dd two files called stage1 and stage2 files into a floppy. The stage1 and stage2 can be "sourced" from any Linux Live CD that supports Grub.

When you boot up this Grub floppy just type
Code:
geometry (hd0)
geometry (hd1)
geometry (hd2)
which will display all the partitions of the 1st disk (hd0), 2nd disk (hd1) and 3rd disk (hd2) and so on.

If Grub can't see it you haven't got one chance in hell to boot it by Grub.

At this point Grub is loaded but no Linux kernel around. Thus Grub deals directly with your hardware.

---------------------
If you claim the installation CD can see your hard disk that mean you can install a Linux inside, right?

You can ask the Linux boot loader to duplicate a bootable floppy.

If it is a Lilo the command is
Code:
lilo -b /dev/fd0
If it is a Grub the the equivalent command is
Code:
grub-install /dev/fd0
The above is a copy of the boot loader to allow a user to boot the installed Linux from a floppy.

Last edited by saikee; 02-01-2007 at 06:34 PM.
 
Old 02-01-2007, 07:16 PM   #9
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
I would also double-check the master/slave settings on all hard drives and cdroms.

I've seen even correctly jumpered drives in combination of certain cdrom drives not work --even on different channels.

I would concentrate on the see-drive-in-bios issue first. Try a bare-metal boot: remove everything but memory, cpu, vga card, and a the target drive all alone on the ribbon cable. Then try reseting the bios ( pull the battery if you have to )
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot Floppy and Firewire Hard Drive WickedSick Linux - Newbie 0 08-02-2006 12:57 PM
FC3: No option to create boot floppy during install haertig Fedora 2 12-06-2004 12:08 AM
boot from floppy drive then insall linux redhat9 from HARD DRIVE Shiraz Ahmed Linux - Software 0 08-23-2004 05:11 AM
How do i create a boot floppy to install Redhat from HD? lava Linux - Distributions 11 03-29-2003 03:51 AM
Can boot from floppy, would like to boot from Hard Drive Mike32940 Linux - Newbie 5 02-08-2003 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:42 PM.

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
Open Source Consulting | Domain Registration