PDA

View Full Version : Master Boot Record


ForMyThunder
Aug5-09, 11:17 PM
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?

mgb_phys
Aug6-09, 12:40 AM
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

Jeff Reid
Aug6-09, 03:19 AM
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.

daniel_i_l
Aug6-09, 07:10 AM
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.

ForMyThunder
Aug6-09, 05:09 PM
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?

mgb_phys
Aug6-09, 05:52 PM
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.

daniel_i_l
Aug7-09, 03:13 AM
mgb_phys:
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?

This should give you all you need:
http://www.brunolinux.com/05-Configuring_Your_System/Multiboot_grub.html