LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-08-2006, 02:49 AM   #1
Amouse
LQ Newbie
 
Registered: May 2006
Posts: 5

Rep: Reputation: 0
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?
 
Old 08-08-2006, 08:27 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 08-09-2006, 02:44 AM   #3
Amouse
LQ Newbie
 
Registered: May 2006
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 08-09-2006, 06:31 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 08-09-2006, 06:44 PM   #5
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
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
 
Old 08-10-2006, 08:24 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
oops on dup of root my apols
 
  


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
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
Grub install error 31 while setting up stage1.5 netadptr0719 Linux - Software 1 01-21-2006 03:51 PM
grub error 21 stage1.5 wxman2 SUSE / openSUSE 2 08-27-2005 10:45 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:29 AM.

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
Open Source Consulting | Domain Registration