Fixing Grub After Installing Dreamlinux OS

  • Thread starter Thread starter ForMyThunder
  • Start date Start date
  • Tags Tags
    Master
Click For Summary

Discussion Overview

The discussion revolves around issues related to the GRUB bootloader after installing Dreamlinux OS, including its performance, editing the configuration file from other Linux distributions, and the implications of deleting the Dreamlinux partition on GRUB functionality.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant notes that the GRUB menu now takes longer to load after installing Dreamlinux and questions the impact of deleting the Dreamlinux partition on the GRUB bootloader.
  • Another participant clarifies that deleting the partition would prevent GRUB from functioning properly, as the MBR primarily contains a pointer to the partition with the GRUB program.
  • There is a suggestion to edit the /boot/grub/menu.lst file from any Linux boot disk by mounting the existing partition.
  • One participant expresses uncertainty about chainloading and requests resources for understanding it better.
  • Another participant mentions the need for administrative privileges to edit the menu.lst file and suggests using a live CD to mount the partition if the password is unavailable.
  • There are mentions of tools and commands available in both Linux and Windows for resetting the MBR and setting active partitions.

Areas of Agreement / Disagreement

Participants express various viewpoints on the functionality of GRUB and the implications of partition management, with no clear consensus on the best approach to resolve the issues raised.

Contextual Notes

Some participants reference technical details about the MBR and GRUB configuration, but there are unresolved assumptions regarding the specific commands and tools needed for editing and resetting the bootloader.

ForMyThunder
Messages
149
Reaction score
0
I installed the Dreamlinux OS and chose the option to write grub to the Master Boot Record during installation and now the grub menu loads slower than it used to. If I were to delete the partition containing Dreamlinux, would that effect the grub bootloader? Also, I want to be able to edit the /boot/grub/menu.lst file from Linux Mint or Ubuntu (doesn't matter which) instead of having to log into Dreamlinux, so how would I go about doing this?
 
Computer science news on Phys.org
Do you mean it takes longer to load the menu or the menu stays up for longer?
There is a setting in the grub menu.lst to set the timeout

If you delete the partition grub won't be able to run, there is only 256 bytes in the MBR, it's mostly just a pointer to the partition with the grub program installed.
You can mount the existing partition and edit menu.lst from any linux boot disk
 
mgb_phys said:
There is only 256 bytes in the MBR, it's mostly just a pointer to the partition with the grub program installed.
The MBR is just the first sector on the first "active" disk in the boot list. It's 512 bytes long. The BIOS just reads this into memory at location 7c00 (hex), and jumps to the code at 7c00.

Microsoft partition sector code typically relocates itself to 600 (hex) in memory, scans partitions in it's list for a boot sector, then reads that in at 7c00 (hex), repeating the boot cycle. Eventually the code reads in some type of loader, Dos and Win9x loading MSDOS.SYS and IO.SYS, or for Windows 4.0 or later NTLDR.

During install of NT 4.0 or later, any active 16-bit OS boot sector is backed up into a 512 byte file called something like BOOTSECT.DOS. On a multi-boot system, if the user chooses a Dos or Win9X parition to boot from, NTLDR will read in BOOTSECT.DOS into 7c00 and continue the boot process. Win98 will rename betwewn two versions of MSDOS.SYS and IO.SYS between DOS and Windows version if you use it's menu to reboot in MSDOS mode.
 
Last edited:
mgb_phys said:
You can mount the existing partition and edit menu.lst from any linux boot disk

Alternatively, you can use grub to chainload Mint or Ubuntu. Then you can just use Ubuntu's menu.lst file.
 
mgb_phys:
The grub menu takes about 6-8 seconds to load, where it used to take 1-2 seconds. When I try to mount the partition and edit the menu.lst file, it says I need to have administration capabilities to edit it. I take that to mean I need to be logged in as root on the Dreamlinux partition.

How can I edit the MBR to point to a different partition?

daniel_i_l:

I have no idea what chain loading is much less how to do it. Could you offer me a website or something that would give me a definition and instructions?
 
Yes you need admin to edit boot.lst, you could boot from a live CD and then mount the partition if you don't have the password.
You can reset the MBR using either the tools in linux or there is a restore option in fdisk (something like fixmbr?)
Alternatively you can use a windows CD, select rescue mode and there is a fixmbr command.

Then you can set any partition to be active, in windows use the control-panel->admin tools->local disk admin, select a prtition and set active.
In linux use fdisk /dev/sda (or whatever) and use the a command to toggle active paritions - note only one should be active.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
3K
  • · Replies 21 ·
Replies
21
Views
3K
Replies
2
Views
6K
  • · Replies 123 ·
5
Replies
123
Views
20K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
3K
  • · Replies 24 ·
Replies
24
Views
11K
Replies
2
Views
4K
Replies
2
Views
3K