LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 12-10-2009, 08:37 PM   #1
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
Grub


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]#

And what about triple booting?

Last edited by siawash; 12-10-2009 at 08:38 PM.
 
Old 12-10-2009, 08:53 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 12-10-2009, 08:56 PM   #3
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
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! :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub drops to grub prompt on boot, but can use commands to find menu... fix? greenmuzz Linux - Software 7 06-07-2009 03:07 AM
Grub, Stage1, and GRUB/BIOS detection of external hard drive godfigure Linux - Newbie 1 03-10-2009 02:51 AM
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 02:19 AM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration