LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-15-2006, 04:50 PM   #1
Alan B
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Rep: Reputation: 0
another floppy boot request


I have 2 SATA drives, #1 for Windows XP, the first part of second drive as a backup for Windows (100G) and the remainder
(150G) for Fedora5 2.6.15-1.2054. On initial installation I trashed Windows and had to re-install so I want to boot from a floppy or CD. I have spent 100's of hours trying to do this, but all the archives give methods that fail. I managed to make a floppy which takes me to a GRUB command line using:
#cd /usr/share/grub/i386-redhat/
#dd if=stage1 of=/dev/fd0 bs=512 count=1
1+0 records in
1+0 records out
# dd if=stage2 of=/dev/fd0 bs=512 seek=1
254+1 records in
254+1 records out

When I type 'boot' at GRUB command, I'm told; "Kernel must be loaded before booting." Using the "find /sbin/init" command I am not told where this is to be found, and "find /vmlinuz" brings the answer "no such file"
Any help you can give would be appreciated.
Alan B
 
Old 11-16-2006, 10:51 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Can you boot your Fedora system?

If you can, just do (as "root") a grub-install /dev/fd (maybe fd1 -- not sure. No floppy on this laptop.)

If you can't, boot from your CD or DVD using linux rescue, chroot /mnt/sysimage, and then do the grub-install.
 
Old 11-16-2006, 02:11 PM   #3
Alan B
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Another floppy boot request

Yes I can boot Fedora by disconnecting my 1st hard drive. The reply I get from grub-install /dev/fd0 is: grub-install: no such command
Alan B
 
Old 11-17-2006, 10:04 AM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
See below for how to make starting Linux an option in the XP boot menu.

Were you logged in as "root?" grub-install is usually found in /sbin, but that will not be in your $PATH unless you've logged in as "root."

You can usually use the whereis command to find the path to a specific command. (And the locate command to locate any file on your system.)

By the way, a brief description of the grub-install command may be read with the man grub-install command. (Look at man less for a description of the less command that man uses to display its output.) You can also use the info grub-install command for more details about how grub-install works. (And, of course, info info for how to use the info command.)

Once you've found the command, try grub-install fd0 -- I'd forgotten that GRUB would let you use its device naming conventions as well as the system ones.

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

As an alternative to the above, you could use the XP boot loader to boot Linux for you. In order to do this, you need to create a boot image as a file on the XP C: drive and point boot.ini to that file.

First, create the boot image on a floppy as you did when you made your bootable floppy (described in your post that started this thread), except use if=/dev/hda of=/dev/media/floppy/linux.bin after mounting a FAT formatted floppy, and assuming that the XP drive is disconnected. That should create an image of the boot sector of your Fedora drive in the linux.bin file on the floppy.

Shut down Fedora, reconnect your XP drive, boot XP, re-insert the floppy, and copy linux.bin from the floppy to your C: drive.

Then edit (you may need to un-set the read-only, system, and/or hidden attributes on the file to do this) boot.ini so it looks like this:
Code:
[boot loader]
timeout=5
default=C:\linux.bin

[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP" /noexecute=optin /fastdetect
C:\linux.bin="Fedora"
(You may want to leave the "default" as-is for testing.)

Re-boot XP, and you should see an OS menu letting you boot Fedora.

Last edited by PTrenholme; 11-17-2006 at 10:16 AM.
 
Old 11-17-2006, 10:10 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,183

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
First, you need to determine your situation: do you in fact have a bootable Windows partition and/or a bootable Linux partition. The easiest way to do this is by booting a LiveCD .. the install disk of a distro, or Knoppix .. and look around. This will also give you a stable platform for installing or fixing Grub.

If you determine that you do have bootable partitions, and your only issue is installing or activating grub, then info grub, which ought to be available on a Knoppix (say...) LiveCD, will give you the information you seek; as will on-line resources. It is simply a matter of configuring /boot/grub/grub.conf, and installing the grub master-boot-record (MBR), the latter being the little piece of code that causes grub to be invoked at boot-time in the first place.

Once you know what you're dealing with, we'll be happy to help you further.
 
Old 11-17-2006, 05:56 PM   #6
Alan B
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your help.
I'm in the UK so it's too late to try tonight, but will let you know how I get on.
Alan B
 
  


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
How do I disable dhcp request at boot? EcceVery Debian 2 01-01-2006 03:07 AM
ramdisk with boot & root disk request aus9 Programming 2 10-20-2003 05:11 AM
request advice dual boot XP and RH9 eflester Linux - General 3 09-30-2003 01:22 AM
Boot Error Info. Request question. rvijay Linux - Newbie 1 09-30-2003 12:45 AM
Floppy disk fail to boot when install suse 8 with boot from floppy ffang Linux - Newbie 0 08-18-2003 09:44 PM


All times are GMT -5. The time now is 10:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration