[ltp] Partition problems?

D. Sen linux-thinkpad@www.bm-soft.com
Mon, 19 Mar 2001 10:15:27 -0500


Here are the instructions from the march issue of Linux Gazette
(http://www.linuxgazette.com):

Step 2: Installing GRUB

Installing GRUB can be broken into three separate parts:

  1.Installation of "stage1" in MBR.
  2.Setting up the address or location, "stage2".
  3.Setting up a boot menu or set of options to choose which operating oystem
to boot.

Start installing GRUB by issuing the following command:

[root@heaven /boot/grub ]# ./grub

This command probes devices to guess BIOS drives and produces an output
message. This may take a long time.

end_request: I/O error, dev 02:00 (floppy), sector 0

    GRUB  version 0.5.96.1  (640K lower / 3072K upper memory)

NOTE: Although it may seem surprising, GRUB does have minimal Bash-like line
editing is supported. For the first word, TAB lists possible
command completions. Anywhere else TAB lists the possible completions of a
device/filename. You may be surprised to see this feature.
Something like this then appears:

grub>

Now, I assume that you have installed your Linux distro in the first extended
partition in the first disk or /dev/hda5. Remember the GRUB
naming convention and rename the above to (hd0,4). Type the following command:

grub> install (hd0,4)/boot/grub/stage1 (hd0) (hd0,4)/boot/grub/stage2 p
(hd0,4)/boot/grub/menu.conf

Now let's examine this command in detail:

install
      a built-in command that tells GRUB to install
(hd0,4)/boot/grub/grub/stage1 to (hd0), the Master Boot Record.
(hd0,4)/boot/grub/stage2
      tells grub where the stage2 image is located.
p with the the following options: (hd0,4)/boot/grub/menu.conf
      sets the configuration file for displaying nice menus. I will later
discuss the structure of the configuration file.

We can also summarize that command as follows:

  1.install
  2.source_of_stage1
  3.where_to_install
  4.source_of_stage2
  5.p source_of_configuration_file

You have now completed the basic hard drive installation.
chris christensen wrote:

> Okay,
> Howto reinstall grub into the MBR ?
>
> Chris
> ----- Original Message -----
> From: "D. Sen" <dsen@research.att.com>
> To: <linux-thinkpad@www.bm-soft.com>
> Sent: Monday, March 19, 2001 8:42 AM
> Subject: Re: [ltp] Partition problems?
>
> > Have you tried booting from a boot-disk (or even the Mandrake CDROM by
> typing
> > rescue at the prompt, if you can boot from a CDROM) and mounting the linux
> > partition? If this works, I would try to re-install grub/lilo into the
> MBR.
> >
> > chris christensen wrote:
> >
> > > I think my last msg on this got lost. Trying again:
> > >
> > > Decided to enlarge my Windows partition and reinstall Mandrake 7.2
> > >
> > > Used PQ Partiion magic to delete Linux partition, enlarge Windows
> partiton
> > > and create new Linux EXT2 and swap.
> > >
> > > Installed Mandrake and let disk Drake format the new ext and swap
> partiton.
> > > It is a 12 gig drive and I am using 6 for windows, ramainder for Linux.
> > >
> > > Install went fine until restart where it hung....
> > >
> > > Restarted with power swtich, got Grub, chose Linux and as it loads I get
> "
> > > partition check
> > > hda: general protection fault:0000
> > >
> > > then several lines of hex I can't decifer, then it stops!
> > >
> > > Windows boots fine from Grub.
> > >
> > > I had this working fine last month when I installed Mandrake the first
> time.
> > >
> > > Need to save windows, so can't do a total format.
> > >
> > > Chris Christensen
> > >
> > > ----- The Linux ThinkPad mailing list -----
> > > The linux-thinkpad mailing list home page is at:
> > > http://www.bm-soft.com/~bm/tp_mailing.html
> >
> > --
> > D. Sen, Room E167
> > AT&T Labs-Research
> > Shannon Laboratory
> > 180 Park Ave.
> > Florham Park NJ 07932-0971
> > Ph: 973-360-8546
> > http://www.research.att.com/~dsen
> >
> >
> >
> > ----- The Linux ThinkPad mailing list -----
> > The linux-thinkpad mailing list home page is at:
> > http://www.bm-soft.com/~bm/tp_mailing.html
>
> ----- The Linux ThinkPad mailing list -----
> The linux-thinkpad mailing list home page is at:
> http://www.bm-soft.com/~bm/tp_mailing.html

--
D. Sen, Room E167
AT&T Labs-Research
Shannon Laboratory
180 Park Ave.
Florham Park NJ 07932-0971
Ph: 973-360-8546
http://www.research.att.com/~dsen



----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html