Re: grub.conf has disappeared -- FC2 / WinXP-SP2

From: KZ (kz_at_duh.org)
Date: 09/12/04


Date: Sun, 12 Sep 2004 13:16:54 GMT

On Sun, 12 Sep 2004 05:43:22 +0000, imotgm wrote:

> On Sat, 11 Sep 2004 21:04:19 -0400, Nico Kadel-Garcia wrote:
>
>
>>> Not true. After the initial install, the reference to the /boot partition
>>> in fstab can be removed, and the OS will both boot, and run, with that
>>> partition unmounted. Grub will continue to function properly. I have run
>>> this way for three years, booting 9-12 distros, at any given time, without
>>> issues.
>>
>> Perhaps I overstate. However, any operation that needs to manipulate the
>> grub.conf, such as re-arranging your hard drives or installing a new kernel
>> (such as this original poster was doing) will find itself unable to edit the
>> grub.conf and find the new kernel to be inaccessible at best. In fact, since
>> the kernel installed with "make install" will wind up in the directory
>> "/boot", not the mountable partition, you can really get into all sorts of
>> fun this way because "/etc/grub.conf" which is what people normally edit
>> actually is a symbolic link to /boot/grub/grub.conf and will be
>> inaccessible, but it won't be able to see the new kernel you just installed
>> that partition if you remount /boot to edit things.
>>
>> Fun and games, campers, fun and games.
>
> Got that "fun and games" part right. I edit the /grub/menu.lst by mounting
> the partition on /mnt/tmp, rather than /boot. I can put a stanza in to
> boot from /boot, the directory, then test the new kernel thoroughly, and
> only when it is ready for production use, copy/move it to the partition.
> In the meantime, the old kernel and /grub/menu.lst are protected from
> accidental damage by any "process" that tries to overwrite it, and
> still usable if the new kernel is borked. I, and only I, manually edit
> that which is on the partition. Nothing automatic touches it.
>
> As to /etc/grub.conf, you must be running RH, or Fedora. Mandrake has no
> /etc/grub.conf, and Suse's /etc/grub.conf is a real text document that looks
> like;
>

RH and Fedora put the grub.conf in /boot/grub. I've followed this thread
since the original post, I think what we have here is a troll. I never
dual boot a system, I just don't want any flavor of Win anywhere on the HD
of my primary workstation. I always run Windoze on a separate system. FC2
is my primary work station. WinXP Home is what my teenagers do their
school work on.

> root (hd0,9)
> install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (fd0)
> /boot/grub/stage2 0x8000 (hd0,9)/boot/grub/menu.lst quit
>
> which tells grub where to install it's files, and is nothing that
> anybody would normally edit, except to reinstall grub.
>
> In this case, it shows that grub for Suse 9.1 was installed to a floppy,
> rather than the MBR, with it's other files installed at
> /dev/hda10/boot/grub/<whatever>. This leaves a menu.lst with a stanza
> that can be copied to the real /grub/menu.lst that grub, in the MBR,
> uses on the boot partition. It is meaningless, now, as Suse 9.1 has been
> moved to hdg3.
>
> With multiple OS's, if the boot partition were mounted, each would
> overwrite the /grub/menu.lst, at will, and create havoc. The grub in the
> MBR was installed by Suse 7.2, (long gone) and the only modifications
> have been adding or subtracting stanzas from menu.lst.
>
> The boot partition has a /boot soft link in, and to, the / of the
> partition. If the partition is mounted at the /boot directory, or
> unmounted, the install path will still be /boot/grub/<whatever>.

-- 
Registered Linux User #363218


Relevant Pages

  • Re: FULLY functional install of Ubuntu 10.10 to USB stick in a WinXP enviroment
    ... the read/write permissions in order to edit the file. ... I suspect my problem may be that I did not use unetbootin to install the ... iso on the correct partition of the usb drive. ... partition and the other 2 partitions are empty. ...
    (Ubuntu)
  • Re: Boot to dos prompt?
    ... - edit boot.ini with notepad, ... partition is a working system, you might be able to start it by (on some ... >>I was able to get the pc to bbot up with the dos boot ...
    (microsoft.public.win2000.setup)
  • Re: Boot to dos prompt?
    ... >- edit boot.ini with notepad, ... >partition is a working system, you might be able to start ... >Steve Wilson wrote: ...
    (microsoft.public.win2000.setup)
  • Re: Adding an Ubuntu Partition to My Harddrive
    ... have a boot partition and a Logical Volume Group Partition consisting ... LogVol for Ubuntu / and share the existing swap space. ... with my first dual boot install? ...
    (Ubuntu)
  • Re: cant boot fresh install
    ... I didn't have install disks handy, ... invalid flag 0x0000 of partition table 4 will ... I am, indeed, certain that I ran fdisk against the correct device. ... There must be an sda1 as well, which I had assumed would be your boot partition. ...
    (Fedora)