LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-30-2004, 05:32 PM   #1
diesel_travis
LQ Newbie
 
Registered: Mar 2004
Location: upstate NY, USA
Distribution: Windows Server 2003 x86_64
Posts: 7

Rep: Reputation: 0
Question Fedora Core 2 x86_64 boot disk?


I'm trying to install FC2 onto one of my partitions and I don't want to overwrite the windows bootloader stuff. I currently have Win ME, Win XP, and Win Server 2003 x86_64 beta installed. During setup I didn't see - although I may have missed it - an option to install GRUB onto a floppy, it only allowed me to install it to the hard drive. I finished the install without installing a boot loader hoping there would be a later option to create a boot disk (floppy/cd). I never came across an option to do this but finished installing anyway. For some reason this has been a big barrier for me every time I've attempted to install Linux in the past as well (SuSE/FreeBSD/Gentoo/SuSE).

Is there a way to create a bootdisk still? or is there a way to boot to the OS from the install CD (i think i was able to do this with SuSE)?

Thanks in advance for the help!
-Travis
 
Old 07-30-2004, 10:44 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Try using the option 'rescue' when you boot up with the install disk.

Your best bet may be to read one of the many NT-Linux boot howto's on how to use the NTLDR to boot into linux. A search for 'NT Grub Boot Howto' on this site or google will give you the instructions. Because the kernel is now to large to fit on a floppy, you could create a bootable floppy instead that contains just the boot loader. Selecting the floppy drive as the boot device and running grub-install should do that. Then you can use it in the meantime to boot up linux, or in the future as an emergency boot disk.

I think that fc2 has a program called mkrescue which will produce a rescue disk cdrom image file that you can burn to cd. ( mkrescue is a script written for the distro, but it is common for the distro's to have written one ). Call it as 'mkrescue --iso' to produce a rescue cd image. One of the options is to boot from the hard drive, so it also functions as a boot disk if neccessary.
 
Old 07-31-2004, 01:31 AM   #3
diesel_travis
LQ Newbie
 
Registered: Mar 2004
Location: upstate NY, USA
Distribution: Windows Server 2003 x86_64
Posts: 7

Original Poster
Rep: Reputation: 0
Question kernel... Error 15: File not found

thanks jschiwal! I now have successfully installed grub onto my linux partition (hd9) and onto my floppy (fd0). Now I just need to know what to use for the kernel command on the boot floppy. I found this tutorial: http://www.linuxforums.org/tutorials...th-GRUB-2.html And they use:
Code:
kernel /boot/vmlinuz-2.2.17 root=/dev/hda8 video=matrox:vesa:261
I think mine would be:
Code:
kernel /boot/x root=/dev/hda9
I just have no idea what x is.

Thanks!
 
Old 08-01-2004, 11:10 AM   #4
diesel_travis
LQ Newbie
 
Registered: Mar 2004
Location: upstate NY, USA
Distribution: Windows Server 2003 x86_64
Posts: 7

Original Poster
Rep: Reputation: 0
Question grub on my floppy

i booted from the dvd into linux rescue. I ran "uname -r" and "ls /boot/vmlinuz-*" and found out I was running 2.6.5-1.358, but in grub when i run:
Code:
kernel /boot/vmlinuz-2.6.5-1.358 root=/dev/hda9
I get: Error 15: File not found

Actually if I just type in "kernel /boot/" and hit tab, nothing pops up. Now I'm really confused.
 
Old 08-01-2004, 04:05 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Look in the /boot directory to identify the full filename of the kernel that you are using. There may also be a link with a shorting name that you could use instead, traditionally 'linux' or 'vmlinuz'.

Use the -l option, ie: ls -l /boot

Also, if you can get Linux running, there should be a place in the system utilities areas that will write a grub boot disk with the proper values for you.

Since you want to use the NTLDR to load in linux, after fixing and testing your boot disk, you still need to copy the first block from the boot disk to a file on floppy. This way you can boot into windows and copy the file to your NTFS C:\ drive.
 
Old 08-01-2004, 07:45 PM   #6
diesel_travis
LQ Newbie
 
Registered: Mar 2004
Location: upstate NY, USA
Distribution: Windows Server 2003 x86_64
Posts: 7

Original Poster
Rep: Reputation: 0
/boot

Well, I can't boot into Linux fully, but I can boot from the install DVD using "linux rescue". Then after a few questions I get to a prompt that says "sh-2.05b# ".

After I run "chroot /mnt/sysimage" I ran "ls -l /boot/" and this is what it lists:
total 2477
-rw-r--r-- 1 root root 40071 May 8 09:24 config-2.6.5-1.358
drwxr-xr-x 2 root root 1024 Jul 30 22:07 grub
-rw-r--r-- 1 root root 723247 Jul 30 01:21 initrd-2.6.5-1.358.img
drwx------ 2 root root 12288 Jul 29 21:19 lost+found
-rw-r--r-- 1 root root 288962 May 8 09:24 System.map-2.6.5-1.358
-rw-r--r-- 1 root root 1452280 May 8 09:24 vmlinuz-2.6.5-1.358

Any ideas if I can run anything that will generate a grub disk from this command line?

thanks.
 
Old 08-02-2004, 11:21 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
I believe to create a boot floppy ( grub only boot floppy ) the command is
grub-install /dev/fd0 after mounting your floppy disk.
---
However, you could finish the process so you don't need to use the boot floppy to boot up.

Install the grub loader into the partition that contains your /boot partition. If you don't have a separate partition for /boot then the command would be:

grub-install /dev/hda9.

Now copy the first 512 bytes of the partition boot record to a file on floppy disk. This is the file that the NTLDR will use to boot into linux.

Mount the floppy drive if it's not mounted (assumes /mnt/floppy exists):
mount -t msdos /dev/fd0 /mnt/floppy

Copy the first 512 bytes to a file on the floppy disk:
dd if=/dev/hda9 of=/mnt/floppy/linux.bin bs=512 count=1

Reboot into Windows XP

Copy the linux.bin file from the floppy disk to C:\

Change the attributes of c:\boot.ini, so it is r/w and unhidden.
attrib -R -S -H C:\boot.ini.

Type in 'edit c:\boot.ini' and add a line at the bottom:
c:\linux.bin="Linux"

If you want you can change the default selection in a line near the top to "Linux"

Save the file and change the attributes back:
attrib +R +S +H c:\boot.ini


That's it. Now you should be able to select 'Linux' from the NTLDR's menu.

Last edited by jschiwal; 08-02-2004 at 11:24 PM.
 
Old 08-07-2004, 12:59 AM   #8
Vorbizz
LQ Newbie
 
Registered: Aug 2004
Distribution: Fedora Core 2
Posts: 7

Rep: Reputation: 0
This is how I created my boot floppy with my 2.6.5-1.358 kernel under FC2. It worked for me, maybe it will work for you...
[list=1][*]Format a floppy in Ext2FS. (The floppy should not be mountedto format it.)
Quote:
# mke2fs /dev/fd0
[*]Mount the floppy and create the directories /boot and /boot/grub on it.
Quote:
# mount -t ext2 /dev/fd0 /mnt/floppy
# mkdir /mnt/floppy/boot
# mkdir /mnt/floppy/boot/grub
[*]Copy stage1 and stage2 from the Grub's directory. (*stage1_5 aren't necessary.)
Quote:
# cp /usr/share/grub/i386-redhat/stage1 /mnt/floppy/boot/grub
# cp /usr/share/grub/i386-redhat/stage2 /mnt/floppy/boot/grub
(If the files don't exist, just search for them with whereis grub.)

Let's copy also the kernel image.
Quote:
# cp /boot/vmlinuz-2.6.5-1.358 /mnt/floppy/boot
[*]Unmount the floppy.
Quote:
# umount /dev/fd0
[*]Now we are going to install Grub on the floppy.
Quote:
# grub
Probing devices to guess BIOS drives. This may take a long time.

GRUB version 0.91 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub> root (fd0)
Filesystem type is ext2fs, using whole disk

grub> setup (fd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... no
Running "install /boot/grub/stage1 d (fd0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.

grub> quit
Now, Grub is installed on the floppy.[*]Let's create a multiple choice menu for loading FC2 and Windows XP.

Re-mount the floppy.
Quote:
# mount -t ext2 /dev/fd0 /mnt/floppy
In a text editor, like gEdit, create a text file /mnt/floppy/boot/grub/menu.lst . In it, that is what we are going to type:
Quote:
title Fedora Core 2 (kernel 2.6.5-1.358)
root (fd0)
kernel /boot/vmlinuz-2.6.5-1.358 ro root=/dev/hdb9

title Windows XP
rootnoverify (hd0,0)
chainloader +1
Save and exit. Reboot your computer to see if the floppy is working [/list=1]
 
  


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
Fedora Core 4 x86_64 on a Shuttle XPC SN25P with an AMD 64 X2 (Dual core) gwiesenekker Linux - Hardware 4 12-06-2005 11:53 PM
Fedora Core 2 boot disk devinWhalen Fedora 5 10-15-2005 10:51 PM
Name of Boot kernel on Fedora core 3 disk 1. Hartford Fedora 0 02-18-2005 01:43 PM
Need a boot disk to load Fedora Core 3 duclu Linux - Newbie 17 01-20-2005 11:50 AM
Need a boot disk to load up Fedora Core 3 duclu Fedora 5 12-07-2004 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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