LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-10-2004, 07:10 PM   #1
Present
Member
 
Registered: Jan 2004
Distribution: suse/slack/gentoo/lfs (not-in-that-order)
Posts: 281

Rep: Reputation: 30
Question how to reinstall/recover grub on XFS?


i'm running suse90 and want to use XOSL (extended operating system loader) as my boot manager. when i install the os, and select to write boot image to boot sector of /boot partition (250mb 2nd partition) so that i can call it from my boot loader (worked with every other distro i tried), it only boots to a grub prompt.

-so-

i installed using default settings (writing to mbr) and installed XOSL after os was in. but now when i try to boot the /boot partition, it just stops. is there a way to reinstall grub but save all my current boot options? also, i formated /boot xfs, is this a problem?

thx

Last edited by Present; 02-10-2004 at 11:46 PM.
 
Old 02-10-2004, 07:16 PM   #2
linuxlah
Member
 
Registered: Jun 2002
Location: Batu Puteh, Malaysia
Distribution: (Mandrake 8.2) (Redhat 7.2,8.0,9.0) (Slackware 9.0,9.1)
Posts: 154

Rep: Reputation: 30
grub-install , but remember to read the man page first
 
Old 02-10-2004, 07:40 PM   #3
Present
Member
 
Registered: Jan 2004
Distribution: suse/slack/gentoo/lfs (not-in-that-order)
Posts: 281

Original Poster
Rep: Reputation: 30
if i do grub install, can i still use the existing image files? and is xfs natively supported or should i have used a different fs for /boot?
 
Old 02-10-2004, 08:25 PM   #4
Present
Member
 
Registered: Jan 2004
Distribution: suse/slack/gentoo/lfs (not-in-that-order)
Posts: 281

Original Poster
Rep: Reputation: 30
ok, i used a rescue disk, and got to grub prompt and typed:

root (hd0,0)
setup (hd0,0)

(hd0,0 is my grub partition)

rebooted.

if i try to boot the /boot partition using xosl it sends me to the grub> prompt (as it did when i was installing initially). it looks like i'm making progress, but i'm not sure how to load linux from here, and how to write a script so it will load automatically (i believe the file i want to load is vmlinuz-2.4.21-99-athlon unless the root/setup command did something).

i am using xosl for my wife's sake (she likes the gui), but i'm hoping to ditch windows soon if i can make linux friendly enough, and maybe i could just use grub as a boot loader with only a 2sec delay or something so she won't even think about it... next thing she sees is a pretty kde or gnome ;-).

dunno, i've kinda come to like xosl, lol.

thanks again for the help

Last edited by Present; 02-10-2004 at 08:28 PM.
 
Old 02-10-2004, 08:47 PM   #5
Present
Member
 
Registered: Jan 2004
Distribution: suse/slack/gentoo/lfs (not-in-that-order)
Posts: 281

Original Poster
Rep: Reputation: 30
bah,

i booted linux from command line using a cd, but cannot find the "vmlinuz" file. the /boot partition is empty now :S... ummmm, any ideas? can i make a custom boot file with menu items etc? can't be that hard.

anyone grub guru's who can point me in the direction of the files i need to reference to get the baby going again? i'm reading the grub manual but could use some insightful suggestions

umm, lmao, i think i'm just looking at the /boot the loaded with the cd.... let me try to mount the other /boot partition and see if i can find anything there...

lol

Last edited by Present; 02-10-2004 at 08:51 PM.
 
Old 02-10-2004, 10:33 PM   #6
Present
Member
 
Registered: Jan 2004
Distribution: suse/slack/gentoo/lfs (not-in-that-order)
Posts: 281

Original Poster
Rep: Reputation: 30
lmao,

the problem is that the grub install invalidates an xfs /boot partition. you can read about it at the bug report :

http://mail.gnu.org/archive/html/bug.../msg00061.html

i'll try an alternative fs for /boot
 
Old 02-10-2004, 11:12 PM   #7
Present
Member
 
Registered: Jan 2004
Distribution: suse/slack/gentoo/lfs (not-in-that-order)
Posts: 281

Original Poster
Rep: Reputation: 30
yup, different fs (ext3) worked like a charm.

Problem resolved. I would STRONGLY suggest SUSE modify the installation and Yast menu's to make it impossible to install grub on XFS if grub install WILL NOT be writing to mbr. Grub will boot fine it seems on a dedicated xfs /boot partition ONLY if it can write to mbr AND NOT the boot sector of the xfs /boot partition.

thx again

might be helpful if a moderator put XFS in the tread title in case others have similar problem... i tried to edit my first post to read "how to reinstall/recover grub on XFS?" so it would come up on searches better, but it didn't change the thread. good to have xosl and grub living peacefully together again

Last edited by Present; 02-10-2004 at 11:49 PM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
recover grub j0hn_galt Linux - Newbie 3 06-11-2005 01:26 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
how to recover GRUb of FC2 ??? executive Linux - General 1 04-18-2005 04:58 AM
GRUB to recover? allenpanther Red Hat 2 02-09-2004 07:19 PM


All times are GMT -5. The time now is 10:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration