| View previous topic :: View next topic |
| Author |
Message |
Xargo n00b

Joined: 07 Jun 2007 Posts: 6
|
Posted: Sun Jun 10, 2007 5:29 pm Post subject: [SOLVED] Problem after the Reinstallation of Vista |
|
|
Hello,
On my notebook, both Vista and Gentoo were running really fine.
Unfortunately I had to reinstall Vista and I forgot to save the MBR, of course (foolish newbie mistake).
No I have got the problem, that I can not boot back into Gentoo.
Before the reinstall I was using GRUB and everthing worked fine. If I now set the boor device with gparted to the Vista partition, Vista boots on its own.
If I set the boot flag to my gentoo boot partition, nothing happens.
I tried following commands in that order, after I booted my system by the gentoo installation disk:
| Code: | mount /dev/sda3 /mnt/gentoo
mount /dev/sda2 /mnt/gentoo
mount -t /proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
grep -v rootfs /proc/mounts > /etc/mtab
grub-install --no-floppy /dev/sda
exit
umount /mnt/gentoo/dev /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
reboot
|
After the reboot I get the Errorcode don't really see grub, just a white cursor blinking. But I can choose the gentoo boot position if I use the cursor-keys blind.
Unfortuneately I get the grub error 15: Can not find file or something like that (searching for my kernel image).
My Kernel image is at the same place as before and in the chroot environment I see it, at the same place.
It is still the same grub.conf, as I used it before the reinstallation.
If I press a key, I can see the entries of the grub.conf, but not the nice splashimage I saw before.
In the meantime I tried:
| Code: | | grub-install --root-directory=/boot /dev/sda |
Then I get just a grub promt and no menu (which I can't see otherwise )
Unfortunately, I am pretty new to Linux and gentoo and don't know what to do.
Can you help me please.
If you need further details, let me know.
Thank you very much. I don't want to reemerge and configure all the stuff, I already installed.
Greetings Xargo
Last edited by Xargo on Mon Jun 11, 2007 7:57 pm; edited 1 time in total |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27174 Location: 56N 3W
|
Posted: Sun Jun 10, 2007 6:36 pm Post subject: |
|
|
Xargo,
Explain your partition layout please.
| Code: | | grep -v rootfs /proc/mounts > /etc/mtab | looks a bit odd
The manual install
| Code: | grub --no-floppy
root (hdx,y)
setup (hdx)
quit | may be better
x,y is grubspeak for your /boot partition, or your / if you don't have a real partition for boot _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
Xargo n00b

Joined: 07 Jun 2007 Posts: 6
|
Posted: Sun Jun 10, 2007 8:41 pm Post subject: |
|
|
My Partition Layout looks like this:
Primary sda1 (Vista,ntfs)
Primary sda2 (gentoo-boot, ext2)
Primary sda3 (gentoo,ext3)
Extended sda4
logical sda5 (Vista-tools, ntfs)
logical sda6 (stuff, fat32)
I used the
| Code: | | grep -v rootfs /proc/mounts > /etc/mtab |
because I read it in the Gentoo Handbook. (Something with file system??)
If I don't use this and install grub manually, then I get again grub itself after boot. (The thing the the promt...)
The manual install looked like this:
| Code: | root (hd0,1)
setup (hd0) |
Thanks for your help
Okay, if I enter:
| Code: | root (hd0,1)
kernel /kernelimage root=/dev/sda3
boot |
I get my gentoo running again. But I wood prefer to use grub with the grub.conf entries, cause it's much easier to handel.
How can I get grub, to use the config file again?
Thanks |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27174 Location: 56N 3W
|
Posted: Mon Jun 11, 2007 7:49 pm Post subject: |
|
|
Xargo
If you get the grub prompt, it sounds as if the grub.conf is missing or is corrupt somehow.
Can your post the output of with your boot mounted and your grub.conf file.
Favorites for this sort of behaviour are a missing symlink or a typo in grub.conf before the first title entry. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
Xargo n00b

Joined: 07 Jun 2007 Posts: 6
|
Posted: Mon Jun 11, 2007 7:57 pm Post subject: |
|
|
Thank you for your help.
I found the mistake.
After the new installation of Grub in the MBR, there was one /boot to less...
I mean after the first installation, the path looked like
| Code: | | (hd0,1)/boot/grub/... |
This time it was just
Don't ask me why...
Thanks much for your ideas. The first thing I made, was to save my new MBR
Xargo |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27174 Location: 56N 3W
|
Posted: Mon Jun 11, 2007 8:20 pm Post subject: |
|
|
Xargo,
grub.conf is usually written with /boot/ in all the full pathnames so it can work regardless of the existence of a real boot partition or not.
/boot is then a directory on the root partition.
For this to work, a symbolic link is made in /boot which shows as boot -> .
Thats boot pointing to itself - this is needed when you have a real /boot.
You have the symlink missing for some reason. Maybe when you emerged grub /boot was not mounted ?
Anyway, what you have is perfectly correct. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
|
|
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
|
|