LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2008, 08:26 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Rep: Reputation: 33
grub + dualboot vista, fedora9


On my Acer 5920 I have Vista installed.
Now I've installed Fedora9 also on a different partition.
The Grub-bootloader I installed on a 200mb partition at the very eginning of the harddisk.

Now, I've already installed a dualboot setup with vista and fedora and grub as bootloader in the past. I've then even modified by hand the grub.conf-file to point to the exact location of the OS-boot.

But now that I have re-installed Fedora9 (problem with my X-server, so I re-install the whole thing) I always get the grub-commandline at startup.
grub >

I don't know why I get this commandline.
I always need to manually type :
grub > rootnoverify (hd0,2)
grub > chainloader +1
grub > boot

And then my Vista is activated...

I do not get the 'graphical' interface where I can chose between Fedora9 and Vista, and where I can edit - if necessary - the lines in grub.conf.

I've installed grub along with Fedora9. There were 2 OS detected : Fedora and Vista and I did put Vista as the default to boot.

But this time it's not like it was before... I get the grub-commandline in stead of the bootloader-interface.

Does someone know how to fix this ?

My knowledge on this is limited.

My harddisk is partitioned as followed :
partition1 : 200mb : grub
partition2 : 8GB : fedora9
partition3 : 70GB : Vista
partition4 (extended) : 180GB : data(ntfs)

Last edited by jonaskellens; 10-06-2008 at 08:29 AM.
 
Old 10-06-2008, 09:41 AM   #2
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
Quote:
Originally Posted by jonaskellens View Post
My harddisk is partitioned as followed :
partition1 : 200mb : grub
partition2 : 8GB : fedora9
partition3 : 70GB : Vista
partition4 (extended) : 180GB : data(ntfs)
To begin with, you have made a very significant mistake. Grub does not need it's own partition because there's nothing to be done with it. In other words, the partition which you refer to as grub is really something else (perhaps linux, perhaps unformatted). I don't understand where you got this idea or why you decided to partition your drive that way, or how you decided that this partition is "grub".

Grub does by necessity install a little something into the boot sector of the drive, which is 512k and NOT a partition. Since you CAN NOT format or create a boot sector, there is exactly no chance that this 200mb you refer to has anything to do with that (eg. it's not an accidently "too big" boot sector, etc).

Use fdisk /dev/hda and press p to view the partition table to find out what this 200mb qualifies for. Pressing l to see a list of possibilities, you will notice that grub is not one of them. I doubt grub requires more than 2mb on your entire hardrive, and most of that will be within your fedora9 partition.

Considering this, it's very difficult to say why grub isn't functioning the way you want, but very likely it's some part of grub.conf You should probably keep asking questions until you understand what's going on, because this knowledge will be important if something more serious goes wrong (and the chance of that is higher if you misconceptualize).
 
Old 10-06-2008, 10:16 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
In addition to posting the output of 'fdisk -l', I would suggest posting your /boot/grub/grub.conf file contents.

If you have a separate /boot partition as you indicate, the entries in the grub.conf file will be different than if grub is on the same partition as root. You can have a separate partition for '/boot/ as well as a separate partition just for 'grub'. A boot partition doesn't need grub as you could use Lilo. The fdisk and grub.conf information you post should help someone tell you what changes you need to make.
 
Old 10-06-2008, 11:04 AM   #4
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
I apologize. You can use a seperate "boot partition". I don't know why you need to though. I have two fedora7 linuxes and XP but no boot partition "just for grub". Normatively, "boot partition" refers to the partition set to boot, which would be a fully functional OS.

It looks to me like the only thing grub will use in this partition are the files normally in /boot, so it doesn't need to be more than 1mb unless it's part of something else (what???).

One possibility this presents is that in reinstalling fedora, the install did the normal thing -- using a /boot directory on your linux partition, and not a seperate partition. If a new boot sector was also installed, it could be pointing to this instead of the "boot partition" (which I so badly maligned). In other words, you could have TWO possible grub.confs now, and while you are ripping your hair out editing one (post it! and the fdisk -l), the other one is all that applies.
 
Old 10-06-2008, 11:13 AM   #5
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
Quote:
Originally Posted by mk27 View Post
I apologize. You can use a seperate "boot partition". I don't know why you need to though. I have two fedora7 linuxes and XP but no boot partition "just for grub". Normatively, "boot partition" refers to the partition set to boot, which would be a fully functional OS.

It looks to me like the only thing grub will use in this partition are the files normally in /boot, so it doesn't need to be more than 1mb unless it's part of something else (what???).
If you're using more than one Linux distro you can use a seperate /boot partition so that all can use it and makes it easier when editing grub.conf if you only have to edit one.

Also 1MB is a little small for a /boot partition. My /boot directory, with only one kernel configured, is currently at 2.5MB. Updating the kernel without removing older ones will obviously increase the size.
 
Old 10-06-2008, 11:24 AM   #6
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by yancek View Post
In addition to posting the output of 'fdisk -l', I would suggest posting your /boot/grub/grub.conf file contents.
Problem is that I do not get into my grub.conf file...

I get at startup the grub-commandprompt and there is no way to locate grub.conf or any other file to go and edit it with vi or something.


Quote:
I don't understand where you got this idea or why you decided to partition your drive that way, or how you decided that this partition is "grub".
The partition that I thought was for installing grub, I have deleted now. Grub is indeed within the Fedora-partition. However, this does not solve the problem with the grub-commandline...


EDIT :

I have erased my /boot-partition that I made and that consisted of 200MB... Not smart...

Last edited by jonaskellens; 10-06-2008 at 11:36 AM.
 
Old 10-06-2008, 11:45 AM   #7
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
Wow, I feel a little guilty now -- maybe you should have waited to erase that (but if you can still boot in, even awkwardly, then you really were not using it).

You can get fedora running, right?

Your grub.conf is probably in /boot/grub. You can edit it there after booting and the changes will be permanent.

Try: find /boot -name "grub.conf"

Then cut and paste it somehow and show it to us! Also cut n' paste the output from fdisk -l !!

ps Total-MAdMaN why would you need to edit more than one grub.conf without a seperate boot partition with multiple distos? The boot sector only uses one. The choices in the menu are NOT for alternate grub.confs...they are from the one grub.conf in use, and refer to seperate partitions. The grub.conf in use will be on ONLY ONE of them, and is set when you run "setup" to install the boot sector. I have 1 grub.conf and two distinct linux partitions.

Last edited by mk27; 10-06-2008 at 11:55 AM.
 
Old 10-06-2008, 11:51 AM   #8
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by mk27 View Post
Wow, I feel a little guilty now -- maybe you should have waited to erase that (but if you can still boot in, even awkwardly, then you really were not using it).

You can get fedora running, right?

Your grub.conf is probably in /boot/grub. You can edit it there after booting and the changes will be permanent.

Try: find /boot -name "grub.conf"

Then cut and paste it somehow and show it to us! Also cut n' paste the output from fdisk -l !!

I cannot get into fedora.

I just know that Vista is the 3rd partition, so hd0,2.
Fedora is normally on hd0,1, the 2nd partition but I cannot get into it.

fdisk is not supported on the grub-commandline

grub >find /boot
grub >file not found

I'm going to re-instal fedora9. Not create a /boot-partition, but create a LVM with /boot + / + swap in it.

Sounds allright ? I'll keep you posted :-).
 
Old 10-06-2008, 12:16 PM   #9
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
Quote:
Originally Posted by jonaskellens View Post
I cannot get into fedora.
Oh dear. I get the impression from your first post that this was the case to start with (ie, you never got it to work after you reinstalled it last time).

The grub command-line is not the bash shell command-line, and will only work with a few "grub specific" commands (and those commands don't work with bash unless you start grub first).

If you have a bootable CDROM (perhaps your install disk has a rescue mode?) you can get a normal command prompt. Then try "fdisk -l /dev/hda" (hopefully "hda" is what your hard drive registered as; notice that grub uses a different, incompatible method to refer to partitions than the bash shell).

You can also try and mount your harddisk (probably /dev/hda2) from the CDROM and examine it that way. You can even modify the grub.conf that's there this way. However, that might add to the confusion right now. After you get fedora running again, make sure you do have a bootable CDROM for rescue operations. Then try to boot from it, mount your regular partition, find your way around, and get that grub.conf in a text editor (the one on the hard drive, not on the CD!).

It may take you a number of hours but you will much better understand the shell and filesystem structure by the time you're done, which you will save you a lot of similar headaches in the future.

I'll be online for a few more hours myself
 
Old 10-07-2008, 04:07 AM   #10
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
So I re-installed Fedora9 from scratch. I'm stuborn and I wanted yet a seperate partition /boot for grub. Then a second partition for a VLM with / and swap. So I re-installed my original setup.

This time, everything works fine... No grub commandline but a working grub like it is supposed to be.

I can dualboot now between Vista and Fedora9.
Still don't know what went wrong the first time though...

Thanks for the reply !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dualboot Vista-Slackware, some questions gudgip Linux - Newbie 2 09-29-2008 03:45 PM
Dual Boot Vista/Fedora9 - Vista not booting agb81 Fedora 2 08-06-2008 12:10 PM
dual boot with xp vista and fedora9 seighalani Fedora 2 07-10-2008 05:49 PM
Desperate! Error 17 with dualboot vista + linux. Can't boot either. Kaidao Ubuntu 5 07-24-2007 11:50 PM
Vista Dualboot crazy8 Linux - Laptop and Netbook 4 07-02-2007 09:37 PM


All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration