Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I have gentoo installed and I want to install windows also
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
rado3105
Apprentice
Apprentice


Joined: 14 Jul 2007
Posts: 293

PostPosted: Thu Dec 04, 2008 2:41 pm    Post subject: I have gentoo installed and I want to install windows also Reply with quote

Hi, what needs to be done to install(except partitioning) win xp on existing gentoo system. I was looking for /boot/grub/grub.conf, but grub configuration file ist not there.
Back to top
View user's profile Send private message
monsm
Guru
Guru


Joined: 26 Sep 2007
Posts: 467
Location: London, UK

PostPosted: Thu Dec 04, 2008 3:12 pm    Post subject: Reply with quote

That is a bit strange. See if you have a /boot/grub/menu.lst instead

In there you should have an entry like this in order to boot windows:
Code:
title windows
        rootnoverify (hd0,0)
        chainloader +1


The hd0,0 should be your windows partition (1st partition on 1st hd in this case).


Mons
Back to top
View user's profile Send private message
rado3105
Apprentice
Apprentice


Joined: 14 Jul 2007
Posts: 293

PostPosted: Thu Dec 04, 2008 3:17 pm    Post subject: re Reply with quote

Code:
r-c r-c # cd /boot
r-c boot # ls
System.map                   config                   vmlinuz
System.map-2.6.25-gentoo-r7  config-2.6.25-gentoo-r7  vmlinuz-2.6.25-gentoo-r7
Back to top
View user's profile Send private message
jstead1
Guru
Guru


Joined: 01 Aug 2003
Posts: 427
Location: Oswego, NY where the snow is deep

PostPosted: Thu Dec 04, 2008 11:32 pm    Post subject: Reply with quote

If you are using grub, there needs to be a menu.lst (grub.conf is a link to menu.lst)

The only thing that I can figure is that where grub is looking for the menu.lst file (and obviously finding it, since you can boot) is not your /boot directory.

This could be from having grub in a partition mounted as /boot when grub is installed on the boot sector, and then not mounting that partition as /boot when you are looking for menu.lst (or grub.conf)

So my question is, did you set up /boot in a separate partition when you installed grub. If so, are you mounting that partition on /boot when you are looking for menu.lst (or grub.conf)?

The files you have in /boot now, might be from installing kernels in /boot, without mounting your boot partition
Just curious, when you
# uname -a
do you get 2.6.25-gentoo-r7 as your kernel?
If not, you are definitely not booting from that kernel in your /boot
If it does match, it still may not be booting from that file, but you would need to reboot and get to the grub edit mode on boot. I can't remember just how much you'll see, but if you can see the
root (hd0,1)
that tells you where grub is looking for boot files
_________________
jim
Back to top
View user's profile Send private message
rado3105
Apprentice
Apprentice


Joined: 14 Jul 2007
Posts: 293

PostPosted: Fri Dec 05, 2008 11:55 am    Post subject: re Reply with quote

Code:
r-c r-c # uname -a
Linux r-c 2.6.25-gentoo-r7 #1 SMP Tue Sep 30 01:24:39 CEST 2008 i686 AMD Athlon(tm) XP 1800+ AuthenticAMD GNU/Linux


How to get to grub menu edit after boot?
Back to top
View user's profile Send private message
monsm
Guru
Guru


Joined: 26 Sep 2007
Posts: 467
Location: London, UK

PostPosted: Fri Dec 05, 2008 7:36 pm    Post subject: Reply with quote

As Jim is indicating, you probably haven't mounted the boot partition. So we need to find it.

Try posting the output of "fdisk -l /dev/hda" run in root terminal. If that returns an error, try "fdisk -l /dev/sda". If you have more than 1 harddrive you should maybe try to change the 'a' in those to 'b' and post those too.

Secondly, post your /etc/fstab file: "cat /etc/fstab"

Hopefully then we can find the boot partition and get it mounted to /boot

Mons
Back to top
View user's profile Send private message
rado3105
Apprentice
Apprentice


Joined: 14 Jul 2007
Posts: 293

PostPosted: Fri Dec 05, 2008 8:54 pm    Post subject: re Reply with quote

Code:
r-c r-c # fdisk -l /dev/hda

Disk /dev/hda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x19657db4

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          12       96358+  83  Linux
/dev/hda2           12040       12161      979965   82  Linux swap / Solaris
/dev/hda3              13        2444    19535040   83  Linux
/dev/hda4            2445       12039    77071837+  83  Linux


cat /etc/fstab
Code:
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1      /boot      ext2      noauto,noatime   1 2
/dev/hda3      /      ext3      noatime      0 1
/dev/hda2      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
/dev/hda4               /media/disk     ext3            defaults        0 2
//192.168.76.4/WD1TB /media/WD1TB       cifs          username=guest,password=guest        0 0
#/dev/fd0      /mnt/floppy   auto      noauto      0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm         /dev/shm   tmpfs      nodev,nosuid,noexec   0 0
Back to top
View user's profile Send private message
monsm
Guru
Guru


Joined: 26 Sep 2007
Posts: 467
Location: London, UK

PostPosted: Fri Dec 05, 2008 9:39 pm    Post subject: Reply with quote

Looks like it is all correct to me. Boot partition is mounted on /boot. So there should have been a /boot/grub folder. Don't see how grub can boot without that.

Are you sure you actually use Grub? I have never used Lilo so I don't know what it is supposed to look like or where its configuration is.
Jim?

Mons
Back to top
View user's profile Send private message
rado3105
Apprentice
Apprentice


Joined: 14 Jul 2007
Posts: 293

PostPosted: Fri Dec 05, 2008 9:58 pm    Post subject: re Reply with quote

Yes I use grub, and during gentoo installation I used manual installation.

Code:
r-c r-c # cd /boot
r-c boot # ls
System.map                   config                   vmlinuz
System.map-2.6.25-gentoo-r7  config-2.6.25-gentoo-r7  vmlinuz-2.6.25-gentoo-r7


I dont know why it is not there. I am not sure, but could it be in MBR, I dont know now where I installed it.
Back to top
View user's profile Send private message
jstead1
Guru
Guru


Joined: 01 Aug 2003
Posts: 427
Location: Oswego, NY where the snow is deep

PostPosted: Sat Dec 06, 2008 2:12 am    Post subject: Reply with quote

I think your problem may be you do not have your boot partition mounted. (the fdisk command shows that you have a boot partition, and your fstab shows you have a boot partition, but neither means it is actually mounted)
It is noauto in your fstab (as recommended by the install guide). This means it is not mounted when linux starts. Grub uses it to start linux. Not mounting boot is advisable to avoid boot corruption, if it isn't mounted, you can't screw it up. When you update your kernel, or want to change grub boot options, you need to mount your boot partition.

If you want to see if you have /dev/hda1 already mounted, do
Code:
#df


If you find you need to mount boot
Code:
#mount /boot


If you see files in /boot without /dev/hda1 mounted, the files are in /boot on your / directory on /dev/hda3

You really shouldn't have other files in a directory you are going use as a mount point. I am not sure how linux handles this, especially if there happen to be files with the same names. It would be interesting to experiment, but I sure wouldn't experiment with my boot partition. So if you use df and find you do not have hda1 mounted on /boot, and you see files in /boot, you should move those files out of /boot, mount /boot and copy them back into /boot, backing up any files that have the same name. You should do this because, I am not sure which vmlinuz grub is loading, the one in /boot on hda3, or the one in hda1.

If you reboot, and the vmlinuz that grub loads is a different one, and it doesn't work, you can get to the other one by using the edit command from the grub menu at boot. (at boot, you hit e and you go to the edit menu) if you named the other vmlinuz, to vmlinuz1, then you just make that change at the edit command, and you should be all set.
_________________
jim
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum