LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-11-2009, 10:31 AM   #1
irkkaaja
Member
 
Registered: Oct 2008
Posts: 44

Rep: Reputation: 16
odd GRUB issues


I'm trying to reinstall grub to my disk after installing winxp in an unallocated partition (which deleted it to begin with).
I followed the directions here more or less exactly, but I get thrown into a GRUB prompt instead of seeing a menu.

I can't figure out how to boot from the prompt or configure GRUB to show a menu.

For what it's worth, /dev/sda1 points to winxp in a primary partition and /dev/sda5 points to Zenwalk 6.2 in a logical partition
 
Old 10-11-2009, 12:57 PM   #2
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
You need a configuration file for grub so that it knows what kind of OSes it can boot. Usually it's placed under /boot/grub/menu.lst . You can find out more here:

http://www.gnu.org/software/grub/man...#Configuration

Note: In the line of the root partition, sda1 would be written as

Code:
root (hd0,0)
And sda5 would be

Code:
root (hd0,4)
-A
 
Old 10-11-2009, 01:19 PM   #3
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 52
To manually boot your OS from grub prompt:

for windows
Code:
rootnoverify (hd0,0) [press ENTER]
chainloader +1 [press ENTER]
boot [press ENTER]
for zenwalk
Code:
root (hd0,4) [press ENTER]
kernel /boot/[press TAB to see available kernel, type the one you want][insert space]root=/dev/sda5 [type another options here or just press ENTER]
boot [press ENTER]
Btw, you might want to add 'initrd' line before 'boot' in zenwalk stanza.

CMIIW
 
Old 10-11-2009, 02:37 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
If you boot into a rescue system from the install CD:

linux # rescue

There is usually an option to reinstall grub, update grub, and/or install grub. I'm not sure about slackware. I haven't used that distro recently. But rescue is a pretty standard of part of install CDs. You can also boot from a linux live cd, and chroot to the root partition of the hard drive, and install grub:

From a Knoppix CD, say you mount the hard drive root at /mnt/hda2. You launch a terminal window, and:

chroot /mnt/hda2

and the root in your hard drive installation becomes the root in the live cd. Then you can reinstall grub to the proper root partition. There are also some live CDs just for rescue. Grub should find the Windows installation and put it in the menu choices.
 
Old 10-11-2009, 04:50 PM   #5
irkkaaja
Member
 
Registered: Oct 2008
Posts: 44

Original Poster
Rep: Reputation: 16
Grub is configured, and winxp boots fine; however, zenwalk panics on boot, complaining that none of the available drivers will mount the root filesystem. I know the fs isn't corrupted, though, because it mounts just fine (as xfs) from a livecd, so, er, what's up with that?

menu.lst contains:

Code:
title   Zenwalk
root    (hd0,4)
kernel  /boot/vmlinuz
For what it's worth, /boot/vmlinuz is a symlink ->vmlinuz-2.6.30.5. Zenwalk boots by default from LILO, not GRUB, same as Slackware, so there might be some finagling required to make it work with GRUB, though I'm not sure what that would be.
 
Old 10-11-2009, 05:11 PM   #6
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
Quote:
Originally Posted by irkkaaja View Post
Grub is configured, and winxp boots fine; however, zenwalk panics on boot, complaining that none of the available drivers will mount the root filesystem. I know the fs isn't corrupted, though, because it mounts just fine (as xfs) from a livecd, so, er, what's up with that?
Usually when that happened to me, it was because I had compiled a kernel where the support for my fs was not built into the kernel, but compiled as a module - of course conveniently stored on the same file system it was supposed to open. Kind of like locking your car keys into the car..

Either that, or you need an initrd image. But I get along very well without one in Slackware, so I suppose you should as well.

So my suggestion: Check whether you have a kernel image on the system with built-in XFS support. The kernel config files are usually stored in /boot (Search for the line with CONFIG_XFS_FS, and see if it's set to "y"), and see if that kernel boots up. If you don't have any, (re)compile one yourself.

Good luck!

-A
 
  


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
Several odd issues with Fedora 9 PreacherBill Fedora 2 08-06-2008 03:05 PM
Odd Server Issues with DHCP Corallis Linux - Networking 1 04-25-2006 03:42 PM
Fresh SUSE 10.0 Install, Odd Issues Ignition331 SUSE / openSUSE 6 12-03-2005 09:15 PM
odd resulution issues speel Linux - General 4 05-30-2005 05:54 PM
Odd solution to Mouse scroll wheel issues. WhiteChedda Mandriva 0 09-30-2003 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:43 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