LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   detect stage1.5 in GRUB (https://www.linuxquestions.org/questions/programming-9/detect-stage1-5-in-grub-471860/)

Amouse 08-08-2006 02:49 AM

detect stage1.5 in GRUB
 
My program must detect - GRUB has installed stage1.5 or not.
(GRUB can install with:
stage1-stage1.5-stage2
or:
stage1-stage2)
how can detect it?

aus9 08-08-2006 08:27 AM

ummm what error are you getting please.....or what program are you trying to use to monitor a boot up? ....its not yet clear to me what you want thanks

Amouse 08-09-2006 02:44 AM

Quote:

Originally Posted by aus9
....its not yet clear to me what you want thanks

My program must change partition (for example - resize) and correct adress in GRUB pointed to stage1.5 or stage2 (otherwise GRUB will not work).
Therefore i need know: stage1.5 installed or not.

aus9 08-09-2006 06:31 PM

if you resize any parition then you need to be careful with any MS system.....go into MS first and defrag and make sure no programs are at the end.

2) linux systems are generally ok to resize without such concerns.

3) then use a live cd to re-install grub to mbr....to point to the new location of its booting files as per tut its

(using knoppix or kanotix)
open a terminal
su
grub
root (hdX,y) .....where is /boot partition in grub speak
root (hd0)......assuming your bios detects hd0 b4 any other drive

burninGpi 08-09-2006 06:44 PM

Quote:

Originally Posted by aus9
(using knoppix or kanotix)
open a terminal
su
grub
root (hdX,y) .....where is /boot partition in grub speak
root (hd0)......assuming your bios detects hd0 b4 any other drive

accually,
Code:

su -
grub
root (hdx,y)
setup (hd0)
exit


aus9 08-10-2006 08:24 AM

oops on dup of root my apols


All times are GMT -5. The time now is 06:08 PM.