[conspire] Help with GRUB

Paul Zander paulz at ieee.org
Wed Nov 4 14:19:01 PST 2009


Thanks everyone for their suggestions and patience.

I am moving forward in tiny steps.  Since rescuecd normally goes to root mode, I will stick with that.  Yes root is very powerful and careless keystroke can cause an unlimited number of problems.  So I will just type carefully and think before hitting enter.

I also took enough time to determine that the link Rick gave in a previous email http://lignuxer.blogspot.com/2007/02/restoring-gnu-grub_15.html, and the info typed by Tony are similar.

So, from rescue CD,  grub   find /boot/stage1  returns (hd0,4)
That matches with knowing that it is also on sda5.

So I gave the commands:
root(hd0)
setup(hd0,4)
quit

and rebooted the machine w/o the CD.

once the grub menu appeared, I gave "c" for command,
find /boot/grub/stage1)
and it returns (hd2,4)

The confusion between sda and sdc would be enough to explain the wrong partition types.

So what next?  Early I had web-site explaining the grub map command for a similar problem, but I can't seem to find it.  Or should I just edit menu.lst and replace hd0 with hd2?





--- On Wed, 11/4/09, Rick Moen <rick at linuxmafia.com> wrote:

From: Rick Moen <rick at linuxmafia.com>
Subject: Re: [conspire] Help with GRUB
To: conspire at linuxmafia.com
Date: Wednesday, November 4, 2009, 11:37 AM

Quoting Paul Zander (paulz at ieee.org):

> First I burnt a CD for Kubuntu 9.10.  Very nice interface, but I spent
> a long time searching through the applications looking for a plain
> terminal window.  I did find a command line, but it only executes one
> command and closes.  Eventually I tried the command `xterm &`.  That
> opened a terminal window.  However, it doesn't have root privileges.
> Anyone know the root password for Kubuntu running off CD?

Just do "sudo /bin/bash" to start a root-privilege shell.  If you really
need direct login as root, then run "sudo passwd root" to set a
password.  *buntu variants are really big on discouraging direct use of
the root-user login, and making people get access to root privilege
using sudo.

> Next I tried SystemRescueCD.  It starts with a big caution note.  Do
> not attempt to mount directly to /.  Instead `mkdir /mnt/mydir` and
> mount files there.  Does grub care where it is in the file system when
> following Tony's suggestions?

When you say "grub", here, what specific thing are you asking about?

There's a program called /usr/sbin/grub, which writes bootable
information to locations specified in /boot/grub/menu.lst .
SystemRescueCD has that program in a useful place on its live-CD
system; you don't need to worry about _its_ location.  You just use it.

You'll want to grab your regular menu.lst out of /mnt/mydir/boot/grub
and copy it to /boot/grub (on the live system).  Review it to make sure
it's correct, then do the usual with grub-install, and so on.

> When grub attempts to start windows, it halts on an error for unknown
> partition 0x82.  I believe that 0x82 is LinuxSwap.

That is correct.

> When grub attempts to start Debian, it halts on unknown partition type
> 0x7.

According to information in /sbin/fdisk, partition type 7 is
"HPFS/NTFS", so that's presumably your MS-Windows main (only?)
filesystem.

Again, correct the references in menu.lst, then re-run grub-install.



_______________________________________________
conspire mailing list
conspire at linuxmafia.com
http://linuxmafia.com/mailman/listinfo/conspire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://linuxmafia.com/pipermail/conspire/attachments/20091104/5f73a140/attachment.html>


More information about the conspire mailing list