Hello :-) I work hard right now on grub :-). so two subjects: * there is a new flavor of grub, now what one is used on 10.1 (0.9... or 1.9...)? * there is a problem with grub (old flavor, don't know for the new), when the MBR is erased for some reason (windows install, for example), grub don't works anymore. Yast have an option to correct this, but it's very hard to find (under repair) - of course installation yast, given your linux don't boot no more :-(. however it's often possible to boot the linux install, for example with a grub boot disk. but then it's not clear how to fix grub. needs launching yast and founding the option to write back the MBR. could it be possible to write with yast, when writing the initial grub configuration a small script ("grub-mbr"?) to rewrite the mbr without lauching yast? If this could be run from a rescue cd, it would be even better (you know, like "lilo", or chroot /mnt lilo) Mandrake used to have such thing right from the install cd boot menu... thanks jdd -- http://www.dodin.net http://dodin.org/galerie_photo_web/expo/index.html http://lucien.dodin.net http://fr.susewiki.org/index.php?title=Gérer_ses_photos
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 jdd wrote: ...
* there is a new flavor of grub, now what one is used on 10.1 (0.9... or 1.9...)?
yast2 --install lftp lftp \ ftp://ftp.gwdg.de/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/src lftp> ls grub* grub-0.97-8.src.rpm
* there is a problem with grub (old flavor, don't know for the new), when the MBR is erased for some reason (windows install, for example), grub don't works anymore.
It's not a "problem with grub". It's a problem with Windows. grub is stored in the MBR, so when the MBR is just overwritten by Windows, obviously, grub is not in the MBR any more. Use the installation CD and select "boot installed system", then log in as root and grub < /etc/grub.conf should do. (not sure about this, as I haven't used Windows for years, my MBR hasn't been overwritten since quite some time ;)) If someone can confirm or correct, please do so.
Yast have an option to correct this, but it's very hard to find (under repair) - of course installation yast, given your linux don't boot no more :-(.
Blame Windows, not grub or Linux. Although I agree, the repair option is really hard to find, far from being obvious. Maybe the repair mode should be moved to the GRUB menu of CD 1 (could be done, as you can set variables in the grub menu entry that will be passed as environment variables, AFAICR). The rescue system is very helpful for experienced users, but is pretty useless for beginners (having YaST2 with ncurses frontend on the rescue system would be great though).
however it's often possible to boot the linux install, for example with a grub boot disk. but then it's not clear how to fix grub. needs launching yast and founding the option to write back the MBR.
could it be possible to write with yast, when writing the initial grub configuration a small script ("grub-mbr"?) to rewrite the mbr without lauching yast? If this could be run from a rescue cd, it would be even better (you know, like "lilo", or chroot /mnt lilo)
Well it also depends on where you choose to put grub.
It can also be installed into the activated partition, or on a floppy,
etc...
It's not that simple.
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\
Pascal Bleser wrote:
grub-0.97-8.src.rpm
ok so old one.
* there is a problem with grub (old flavor, don't know for the new), when the MBR is erased for some reason (windows install, for example), grub don't works anymore.
It's not a "problem with grub". It's a problem with Windows.
no. I quoted windows to go fast, but there are many ways of erasing grub on linux (I did this twice on two hours :-()
Use the installation CD and select "boot installed system", then log in as root and
grub < /etc/grub.conf
so the info is in /etc/grub.conf. nice.
should do.
I will try next time (for today I give up - all is restored :-)
Well it also depends on where you choose to put grub. It can also be installed into the activated partition, or on a floppy, etc... It's not that simple.
I mean of reparing an install. with lilo it's trivial I begin a page there (sorry for non french readers) http://fr.opensuse.org/Utiliser_les_disquettes as I'm on this subject, I pretty sure it's possible to lauch linux from a rescue cd with such a thing as mounting root, chrooting and using a command a forgot what one?? thanks grub.conf is the main part, wrtiting a small script if necessary, is easy jdd -- http://www.dodin.net http://dodin.org/galerie_photo_web/expo/index.html http://lucien.dodin.net http://fr.susewiki.org/index.php?title=Gérer_ses_photos
Pascal Bleser wrote:
Use the installation CD and select "boot installed system", then log in as root and
grub < /etc/grub.conf
this works perfectly and could be added usefully on some early script or documented :-) (I'll do that for the french wiki) nice, thanks jdd -- http://www.dodin.net http://dodin.org/galerie_photo_web/expo/index.html http://lucien.dodin.net http://fr.susewiki.org/index.php?title=Gérer_ses_photos
participants (2)
-
jdd
-
Pascal Bleser