LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2009, 02:48 PM   #1
MCRan
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Rep: Reputation: 0
Question Dual booting Suse and Vista, Vista installed after Suse


Hi guys,
After installing Vista I can't access my linux! Both Suse and Vista are installed on the same hard drive in different partitions. Now after searching 4 a few solutions on the web I realise that I have to edit the /mnt/boot/gru/menu.lst file in Rescue mode. Now that's where my problem is; After accessing the file using the command: "vim /mnt/boot/grub/menu.lst" in Rescue mode, I'm not sure how to edit and save changes on that file, I just need to know perhaps the keys I have 2 hit (or commands) in order to edit, save and reboot in Rescue Mode.
Help will be greatly appreciated.
 
Old 10-04-2009, 02:59 PM   #2
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,796

Rep: Reputation: 213Reputation: 213Reputation: 213
If not Vim...

If you boot directly into openSUSE as root, or Switch User to root under Leave in the Kicker menu, you can open the file "/boot/grub/menu.lst" with either Kate or KWrite and edit menu.lst directly as a document. Save the session as you would any other document and the the changes should be made.

Last edited by thorkelljarl; 10-04-2009 at 03:11 PM.
 
Old 10-04-2009, 03:13 PM   #3
j_jerry
Member
 
Registered: Sep 2009
Distribution: fedora 11
Posts: 318

Rep: Reputation: 46
You need to re-install the MBR; try installing grub using the rescue

If the suse rescue have a mbr fixing option, do it
 
Old 10-04-2009, 07:34 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,225

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
If you installed vista after Suse then vista overwrote Grub in the master boot record and you will need to re-install Grub to the MBR. Use your install or any Linux CD and open a terminal as root, run the command fdisk -l (lower case Letter L) and post that partition information here so someone can tell you the necessary commands. Installing vista after Linux and overwriting the mbr, you can edit the menu.lst file forever and it won't change anything. Re-installing Grub to the mbr is very easy, just a few lines.
 
Old 10-05-2009, 03:54 AM   #5
MCRan
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thx 4 the feedback guys...
When I run the "fdisk -l" in Rescue mode I get the following:

Device Boot Start End Blocks Id System
/dev/sda1 * 409 3820 27406890 7 HPFS/NTFS
/dev/sda2 3821 7296 27920970 f W95 Ext'd (LBA)
/dev/sda3 5369 7296 15485952 7 HPFS/NTFS
/dev/sda5 3821 4082 2104452 82 Linux Swap/Solaris
/dev/sda6 4083 4794 5719108+ 83 Linux
/dev/sda7 4795 5368 4610623+ 83 Linux

------------------------------------------------------------------------
Now, apparently I have 2 edit that menu.lst file before I install GRUB. I got the solution from the Novell website, and it says I have to edit that file by adding the following 2 the end of menu.lst:
title windows
rootnoverify (hd0,0)
chainloader (hd0,0)+1
--------------------------
Now, the file (as seen in Rescue mode using "vim" command) already has similar lines like this:
###Don't change this comment-YAST2 identifier: original name: Windows ###
title Windows
rootnoverify (hd0,5)
chainloader (hd0,0)+1

------------------------
So I wonder if I have 2 change or delete these already existing lines (above) or just add new lines at the end of the file without changing anything else.
Please provide me with commands I'm supposed 2 use as well

Last edited by MCRan; 10-05-2009 at 04:07 AM. Reason: typos
 
Old 10-05-2009, 03:58 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
You just need to over write the mbr with the grub bootloader that has been messed up by windows loader.
Boot into rescue mode and type

grub-install /dev/sda

I guess this can be done with other distros disk as well if you do not have a Suse disk. You can use Ubuntu Live cd, boot from it and give the commands as said.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Dual Booting issue with suse and vista kishore15 Linux - Laptop and Netbook 4 03-29-2009 03:18 PM
Installing gentoo dual boot with vista (Vista installed first) aspedisca Linux - Laptop and Netbook 1 01-02-2009 09:02 AM
Dual Booting Ubuntu 8.10 with Vista Installed First George Jeng Linux - Newbie 2 11-04-2008 01:13 AM
Fedora and Vista Dual Boot (vista installed first) firekid1239 Linux - Newbie 10 05-04-2008 09:35 PM
Dual booting Vista and Suse 10.1 problems SWnerd525 SUSE / openSUSE 14 05-29-2007 02:40 AM


All times are GMT -5. The time now is 08:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration