• Welcome to Valhalla Legends Archive.
 
Main Menu

GRUB

Started by hismajesty, January 12, 2004, 06:12 AM

Previous topic - Next topic

hismajesty

Last night, I installed Fedora Linux on my normal Windows XP machine. After it was all said and done and I needed to reboot. Upon rebooted I was taken to GRUB as I had expected. However, I'm not sure which command to enter in order to start either Windows/Linux; thus, I'm computerless :P. I'm on my school computer now and was wondering what I would need to insert. I know I need to do kernel, then boot..but not sure how to format the kernel command. Again, I'm running Windows XP and Fedora Core.

Thanks  :)

Thing

GRUB(8)                        FSF                        GRUB(8)



NAME
      grub - the grub shell

SYNOPSIS
      grub [OPTION]...

DESCRIPTION
      Enter the GRand Unified Bootloader command shell.

      --batch
             turn on batch mode for non-interactive use

      --boot-drive=DRIVE
             specify stage2 boot_drive [default=0x0]

      --config-file=FILE
             specify              stage2             config_file
             [default=/boot/grub/menu.lst]

      --device-map=FILE
             use the device map file FILE

      --help display this message and exit

      --hold wait until a debugger will attach

      --install-partition=PAR
             specify stage2 install_partition [default=0x20000]

      --no-config-file
             do not use the config file

      --no-curses
             do not use curses

      --no-floppy
             do not probe any floppy drive

      --no-pager
             do not use internal pager

      --preset-menu
             use the preset menu

      --probe-second-floppy
             probe the second floppy drive

      --read-only
             do not write anything to devices

      --verbose
             print verbose messages

      --version
             print version information and exit

REPORTING BUGS
      Report bugs to <[email protected]>.

SEE ALSO
      The full documentation for grub is maintained as a Texinfo
      manual.   If  the  info  and  grub  programs  are properly
      installed at your site, the command

             info grub

      should give you access to the complete manual.



grub (GNU GRUB 0.93)      December 2002                   GRUB(8)
That sucking sound you hear is my bandwidth.

hismajesty

#2
well according to GRUB> help then
GRUB> kernel --no-mem-option --type=Linux

would that be right? because it's saying I need to specify a file but according to help I think that's it. hmm, I dunno what would I would put for the file path for either windows/linux either.

Edit: I'm in auto-cad now, I'll check this post again during lunch. If I don't have a fix for it by the time I leave I guess I'll just either 1) reinstall linux tonight so and pay more attention to the grub section or 2) check again in the morning.

thanks

iago

If it wants a drive, try /dev/hda0,/dev/hda1, ... /dev/hda9, see if any of those work :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


hismajesty

OK, also I was wondering why I see GRUB as command lineish, but a lot of pictures from google had a GUI.  ::) I know, I'm a spoiled Windows kid who thinks everything needs a GUI. :P Thanks, iago..I'll write that down.

wut

grub actually names hard drives as (hdDisk,Partition) counting from 0.  e.g. /dev/hda1 would translate to (hd0,0) or /dev/hdb1 (hd1,0)

hismajesty

ugh, I hate to ask you to hold my hand through this, but what exactly should I type after grub> ?

Hitmen

#7
My grub used a GUI until I nuked linux at which time it decided to act like yours :P

hismajesty

You used Mandrake Linux though, maybe it's different between the two.

Adron

Having no GUI might mean that it's not finding its files...

hismajesty

Well, I still can't boot linux but I was able to boot Windows using a help thing I found at school yesterday. (Naturally I left my notebook at school so I spent 3 hours slamming my keyboard because I was so frustrated yesterday.) Anyway, here is what I had to do...

grub> unhide (hd0,0)
grub> hide (hd0,1)
grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> makeactive
grub> boot


I also saw via:
grub> help terminal
that there IS a graphical mode but when I did
grub> terminal graphics
it said 'Device is not initialized yet'  And unlike the serial terminal there is no command (that I could see) to initialize graphical mode.

cipher

I would suggest that you tell us more about how you have your partitions setup so we can better help you figure out what GRUB commands you will need in order to boot your Linux kernel. From the looks, and from what you described, your first Partition holds a Windows OS, but I'd like to know more about the other Partitions so I can give a more specific answer. If you'd like me to help you on AIM you can get a hold of me @ ciph3rd.
-cipher

hismajesty

Well, it's all on one harddrive.
[    Windows (about 83 gigs)         ] [      Linux 30 some gigs    ] [ Linux Swap (500 MB)   ]

cipher

sounds like you'll want to do something like:
grub> root (hd0,1)
grub> setup (hd0)
and then you'd either want to do a:
grub> makeactive (not sure on this)
grub> boot
see if that works.


hismajesty

Quote from: cipher on January 13, 2004, 07:21 PM
sounds like you'll want to do something like:
grub> root (hd0,1)
grub> setup (hd0)
and then you'd either want to do a:
grub> makeactive (not sure on this)
grub> boot
see if that works.



I'll try next time I restart, but I'd like to find out how to make it graphical. (Since somehow (I'm thinking my mom) broke the other computer beyond bootablity (maybe just a fuse :P) my mom/sister or somebody may want to get on and in case for some odd reason the computer isn't on, I don't think they'd understand the commands and stuff) :)