Fixing Grub After Installing Dreamlinux OS

  • Thread starter Thread starter ForMyThunder
  • Start date Start date
  • Tags Tags
    Master
AI Thread Summary
The discussion revolves around issues related to the GRUB bootloader after installing Dreamlinux OS. Users report that the GRUB menu now loads slower than before, taking 6-8 seconds instead of the previous 1-2 seconds. Deleting the Dreamlinux partition would affect GRUB since the Master Boot Record (MBR) primarily points to the partition containing the GRUB program. To edit the /boot/grub/menu.lst file from another Linux distribution like Linux Mint or Ubuntu, users need administrative privileges. They can boot from a live CD to mount the partition and edit the file without needing the Dreamlinux password. Additionally, users can reset the MBR using tools in Linux or a Windows CD, allowing them to set a different partition as active. Chainloading is mentioned as an alternative method to manage boot options, with resources provided for further guidance.
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.
 
Back
Top