LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help please! GRUB problems! (https://www.linuxquestions.org/questions/linux-newbie-8/help-please-grub-problems-589629/)

ookami777 10-05-2007 06:56 AM

Help please! GRUB problems!
 
Yes! I have Installed Ubuntu, and all is well, exept Ive got a small problem with GRUB. When i press enter to start with Windows instead of Ubuntu, it restarts and asks me what OS i want to use again! I'm thinking there might be a bug in the 1.5 version of GRUB but I can't be certain.

Duck2006 10-05-2007 07:15 AM

Run from the terminal

fdisk -l

and post the output

ookami777 10-05-2007 03:14 PM

out put:
"
Disk /dev/sda: 1030 MB, 1030750208 bytes
16 heads, 32 sectors/track, 3932 cylanders
Units = cylanders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 3932 1006576 e W95 FAT16 (LBA)

"

ookami777 10-05-2007 03:46 PM

what does it mean?

saikee 10-05-2007 04:38 PM

That tells us nothing except that you only list the output of your USB pen drive with 1Gb capacity with one Fat16 partition using up all the space.

The "fdisk -l" should list every partition of every hard disk in your PC. The "-l" is "-" and a small "L".

Try again.

"fdisk -l" is useful because a ntfs partition is type 7 and Linux is Type 83. If we know where they are we can advise how you can overcome the problem.

ookami777 10-05-2007 05:09 PM

Here we go i was on my Desktop before

"
Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 15960 128198668+ 7 HPFS/NTFS
/dev/hda2 15961 30023 112961047+ 83 Linux
/dev/hda3 30024 30401 3036285 5 Extended
/dev/hda5 30024 30401 3036285+ 82 Linux swap / Solari

<copy whats above>

"
whats going on? i see fileing systems, and separate patitions, the rest is foreign to me.

saikee 10-05-2007 05:15 PM

Assuming your hda is the first disk and so it will be known to Grub as (hd0). hda1 is the only Type 7 partition so Windows must be inside. It also has a "*" meaning it is an active or bootable partition. This partition is known to Grub as (hd0,0).

You have Grub and when the Brub screen first appears pressing the "c" key will get you into a Grub prompt (terminal mode with Grub, as you are talking to Grub directly).

There is no installed operating system in a PC that Grub cannot boot. So try and report these commands at Grub prompt
Code:

root (hd0,0)
chainloader +1
boot

You don't have a booting problem if you are in a Grub prompt!!!!!!!!!!!!!!!! because you can ask Grub to do amazing things.

ookami777 10-05-2007 06:31 PM

Oh crap. Ok i understand now thanks for your help but this is a windows based problem not GRUB.


All times are GMT -5. The time now is 10:29 AM.