Solved

Booting Fedora from Grub Boot Disk on Dual-Boot (XP) Machine

Posted on 2004-04-28
8
2,218 Views
Last Modified: 2013-12-06
Hello,

I installed Fedora Core 1 on an XP machine, intending to create a boot disk, as I had for RedHat 8. But when I got to that point in the installation process, I was informed that the kernel would not fit on a floppy disk. So I created a grub boot disk. I tested it on my old RedHat 8 (also dual-boot) machine and it works fine.

But I have yet to successfully boot Fedora.

My boot partition is /dev/sda3, (hd0,2) on grub.
My root partition is /dev/sda6, (hd0,5) on grub.

This is what I have tried:

----------
grub> root (hd0,5)
    Filesystem type is extfs, partition type 0x83

grub> kernel (hd0,2)/vmlinuz root=/dev/sda6
    [Linux-bzImage, setup=0x1400, size=0x1305b5]

grub> boot

.
.
.
kmod: failed to exec /sbin/modprobe -s -k block-major-8, errno=2
VFS: Cannot open root device "sda6" or 08:06
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 08:06
----------

Any ideas will be appreciated.

TIA,

s1m0ne
0
Comment
Question by:s1m0ne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10936681
Your problem is the fact that you have a scsii drive. Scsii modules need to be loaded in an intial ramdisk before linux can access the filesystem. Im guessing your old system has an ide drive. Why not just install fedora and use grub to dual boot? Its pretty painless.
0
 
LVL 8

Accepted Solution

by:
da99rmd earned 200 total points
ID: 10936815
I have the same config on my machine, and the problem for me where that the disk had diffrent hd numbers when started and when i booted it up.
I think this have some thing to do with bios setup.
Try doing a find for for a file on your root partition and get the hd number of it.

are you sure about the sda6 partition number ?

And i think
you should write like this:
root (hd0,2)
kernel /vmlinuz root=/dev/sda6
initrd /initrd-2.4.*-*.*.img
then boot

/Rob
0
 
LVL 1

Author Comment

by:s1m0ne
ID: 10944854
Rob,

That did it! Thanks a lot!

You'll get the points. I'll increase them if you can tell me how to automate the process.

s1m0ne
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 8

Assisted Solution

by:da99rmd
da99rmd earned 200 total points
ID: 10946789
Just add this to your grub.conf on the disk 3.5" or on the computer /etc/grub.conf:
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz

title Red Hat Linux (Newest)
   root (hd0,2)
   kernel /vmlinuz ro root=/dev/sda6
   initrd /initrd-2.4.*-*.*.img

title Windows XP
      rootnoverify (Put XP patition number here)
      chainloader +1
#End

If you dont want to boot from disk just make it a double boot system by typing:
grub-install /dev/hda (if you have a first ide disk intsalled)
Type this after you have edited the /etc/grub.conf

/Rob

0
 
LVL 1

Author Comment

by:s1m0ne
ID: 10956456
Rob,

That looks promising, but I am having trouble getting my floppy to mount. (And there is no /etc/grub.conf on the computer -- which I am guessing would be relevant only if I were intending to install grub as the boot loader on the computer, which I am not -- at least not at this time.)

Since I created the grub boot disk in the first place using mke2fs, that would make the filesystem ext2, right?

But when I try:

# mount -t ext2 /dev/fd0 /mnt/floppy

I get:

mount: wrong fs type, bad option, bad superblock on /dev/fd0,
       or too many mounted file systems

If I omit '-t ext2' then I get:

mount: you must specify the filesystem type

In fstab I have:

/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0

Any ideas?

Thanks for your continuing help.

s1m0ne
0
 
LVL 8

Expert Comment

by:da99rmd
ID: 10975367
Nope it should work fine i can mount my boot disk but i think i got fat on my disk dooh.
But it should mount as a ext2 disk to but its usaly best to have fat on all boot disks.
So try making it fat and then install grub on it.

/Rob
0
 
LVL 1

Author Comment

by:s1m0ne
ID: 11038090
Rob,

How did you create your grub boot disk?

I used 'cat stage1 stage2 > /dev/fd0' but that seems to overwrite the filesystem. So even if I use mkfs.vfat instead of mke2fs, the result is (apparently) the same.

s1m0ne
0
 
LVL 1

Author Comment

by:s1m0ne
ID: 11084047
Rob,

I finally got it working. Here is what I did:

$ fdformat /dev/fd0
$ /sbin/mkfs -t vfat /dev/fd0

# mount /dev/fd0
# mkdir -p /mnt/floppy/boot/grub
# cp /usr/share/grub/i386-redhat/stage* /mnt/floppy/boot/grub
# umount /mnt/floppy

# /sbin/grub

grub> root (fd0)
grub> setup (fd0)
grub> quit

# cd /mnt/floppy/boot/grub
# vi grub.conf

And then I typed in the lines from the grub.conf you gave in your answer of 4/29/2004.

It works great now! Thanks again!

s1m0ne
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question