Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-30-2004, 06:32 PM
|
#1
|
LQ Newbie
Registered: Mar 2004
Location: upstate NY, USA
Distribution: Windows Server 2003 x86_64
Posts: 7
Rep:
|
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
|
|
|
07-30-2004, 11:44 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
07-31-2004, 02:31 AM
|
#3
|
LQ Newbie
Registered: Mar 2004
Location: upstate NY, USA
Distribution: Windows Server 2003 x86_64
Posts: 7
Original Poster
Rep:
|
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!
|
|
|
08-01-2004, 12:10 PM
|
#4
|
LQ Newbie
Registered: Mar 2004
Location: upstate NY, USA
Distribution: Windows Server 2003 x86_64
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
08-01-2004, 05:05 PM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
08-01-2004, 08:45 PM
|
#6
|
LQ Newbie
Registered: Mar 2004
Location: upstate NY, USA
Distribution: Windows Server 2003 x86_64
Posts: 7
Original Poster
Rep:
|
/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.
|
|
|
08-03-2004, 12:21 AM
|
#7
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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-03-2004 at 12:24 AM.
|
|
|
08-07-2004, 01:59 AM
|
#8
|
LQ Newbie
Registered: Aug 2004
Distribution: Fedora Core 2
Posts: 7
Rep:
|
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.)
[*]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.
[*]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]
|
|
|
All times are GMT -5. The time now is 11:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|