Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I recently installed Mandriva 64 bit 2010 on my new machine.I have two hard drives. The primary drive is storing windows 7. SDA, and Linux on SDB.
I always thought you put grub in the root when your using stand alone linux and in master boot record of sdb if you have a dual boot. But the install only worked when I put grub in master boot record of SDA where windows is stored. So my question is what happens if grub becomes corrupted.? Would I have to reinstalled windows?
Here is my menu list
Code:
[root@localhost boot]# cat /grup
cat: /grup: No such file or directory
[root@localhost boot]# cd /grub
bash: cd: /grub: No such file or directory
[root@localhost boot]#
[root@localhost boot]# cd grub
[root@localhost grub]# ls
device.map install.sh* menu.lst.example stage2
device.map.old install.sh.old* menu.lst.old ufs2_stage1_5
e2fs_stage1_5 iso9660_stage1_5 minix_stage1_5 vstafs_stage1_5
fat_stage1_5 jfs_stage1_5 reiserfs_stage1_5 xfs_stage1_5
ffs_stage1_5 menu.lst stage1
[root@localhost grub]# cat menu.lst
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd1,4)/boot/gfxmenu
default 0
title linux
kernel (hd1,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=c57aa7a1-3fa7-49ca-8478-d9762aaad10b resume=UUID=cbc0f4f2-fbd0-414d-90e1-cca612949c18 splash=silent vga=788
initrd (hd1,4)/boot/initrd.img
title linux-nonfb
kernel (hd1,4)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=c57aa7a1-3fa7-49ca-8478-d9762aaad10b resume=UUID=cbc0f4f2-fbd0-414d-90e1-cca612949c18
initrd (hd1,4)/boot/initrd.img
title failsafe
kernel (hd1,4)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=c57aa7a1-3fa7-49ca-8478-d9762aaad10b failsafe
initrd (hd1,4)/boot/initrd.img
title windows
root (hd0,0)
makeactive
chainloader +1
title desktop 2.6.31.5-1mnb
kernel (hd1,4)/boot/vmlinuz-2.6.31.5-desktop-1mnb BOOT_IMAGE=desktop_2.6.31.5-1mnb root=UUID=c57aa7a1-3fa7-49ca-8478-d9762aaad10b resume=UUID=cbc0f4f2-fbd0-414d-90e1-cca612949c18 splash=silent vga=788
initrd (hd1,4)/boot/initrd-2.6.31.5-desktop-1mnb.img
title desktop 2.6.31.6-1mnb
kernel (hd1,4)/boot/vmlinuz-2.6.31.6-desktop-1mnb BOOT_IMAGE=desktop_2.6.31.6-1mnb root=UUID=c57aa7a1-3fa7-49ca-8478-d9762aaad10b resume=UUID=cbc0f4f2-fbd0-414d-90e1-cca612949c18 splash=silent vga=788
initrd (hd1,4)/boot/initrd-2.6.31.6-desktop-1mnb.img
[root@localhost grub]#
No, you won't have to re-install windows. You will need a windows install disk so that you can run fixmbr to restore the windows mbr.
As for grub becoming corrupted, that would most likely happen if you go fiddling about with partitions, and the partition table in the mbr no longer reflects the actual partition scheme.
The safest procedure to follow when installing operating systems is to make a copy of your mbr before installing another OS. Then you have a backup that you can restore if things go badly.
As for triple booting, when you install the third OS, be careful to specify installing grub to the root partition of the new OS, and not to the mbr. When the installation is complete, open file /boot/grub/menu.lst (grub.conf on some distros) and copy the menu entry for the new OS. Then mount the partition of the first Linux you installed, and paste that menu entry into the menu.lst of that OS. When you reboot, the third OS should be listed.
These questions have been addressed many times in these boards. Use the search feature to find out more about them.
I have always put grub in the mbr. I don't think a corrupt mbr is a particularly valid concern, but you can always back it up if you're worried.
I have had up to a 4-way boot using grub in the mbr -- for Linux, it's as easy as pie. For windows, no big deal either, just chainload the boot code on the windows partition. As for having to reinstall windows: no -- in fact, doing so will automatically cream grub in your mbr. But, if you've made that backup, and have the same partition layout, then you don't have to worry! :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.