LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   system cannot direct boot from HDD, using floppy grub to boot? (https://www.linuxquestions.org/questions/linux-newbie-8/system-cannot-direct-boot-from-hdd-using-floppy-grub-to-boot-633811/)

hocheetiong 04-07-2008 11:15 PM

system cannot direct boot from HDD, using floppy grub to boot?
 
Hi, my system cannot direct boot from hdd, so i have try to using super grub disk(floppy disk)to manual boot with below command:

root (hd0,0)
kernel /vmlinuz-2.5.18 ro root=LABEL=/
initrd /initrd-2.5.18.img


I success boot into linux system. But when restart the system, than need again manually issue the command to boot it, How to edit the super grub disk to automatic boot to system or other grub to automatic boot into my system.


propose: Harddisk cannot automatic boot, need floppy or cd to boot, want to automatic boot from floppy or cd than direct boot to my hdd.


Thank.

digvijay.gahlot 04-07-2008 11:31 PM

After you login as linux root. Insert an empty floppy after it is mounted issue the command.

# mkbootdisk <linux-version>

It will make a boot floppy for ur linux. One thing is that it used to work for redhat 9 when the linux image was small. May not work for new versions.

hocheetiong 04-08-2008 04:33 AM

The linux version is latest, mkbootdisk cannot fit into floppy disk.
 
Hi, mkbootdisk to make a boot disk, but this system is latest linux system, then floppy disk cannot fit. How to use floppy grub to boot, than automatic boot into harddisk system:

This is my system linux kernel and initrd file:

root (hd0,0)
kernel /vmlinuz-2.6.10
initrd /initrd-2.6.10.img


I think sure have a way to edit the grub on floppy disk, than can direct automatic boot my hdd.

Thank.

marquardl 04-08-2008 01:10 PM

grub.conf
 
Change the default entry on the floppy in file grub.conf or add another entry like:

Code:

title AnyNameWillDo
        root (hd0,0)
        kernel /vmlinuz-2.6.10 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.10.img

My example has an LVM setup (/dev/VolGroup00/LogVol00). Obviously you must change the path to your hard disk (maybe something like /dev/sda1).

This way booting starts from floppy, but will load the system from the hard disk.

Bye,
M

Linux Archive


All times are GMT -5. The time now is 01:33 PM.