LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 11-25-2009, 08:52 AM   #1
Michio
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
[Ubuntu 9.10] Installed windows 7, grub is messed up


Installed windows 7, and it replaced grub. Booted from live CD, reinstalled grub, navigated to /boot/grub/, and there isn't a stage1 directory or a menu.lst file.
 
Old 11-25-2009, 08:58 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Please tell us you partition setup and exactly how you installed grub. For example, I always use the grub shell method:

Suppose that your linux / is on partition sda2, and there is no separate partition for /boot.
Code:
grub    ##starts the grub shell
root (hd0,1)   ##tells grub where /boot is  (drive 1, partition 2)
setup (hd0)    ##installs grub to the MBR of drive #1
 
Old 11-25-2009, 12:58 PM   #3
Michio
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
How do I figure out what partition my root is on?

Does this help any?

http://imgdump.org/fVTspgPAs7/r5PFpmUylYrVTs.png

Last edited by Michio; 11-25-2009 at 12:59 PM.
 
Old 11-25-2009, 01:12 PM   #4
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by Michio View Post
Installed windows 7, and it replaced grub. Booted from live CD, reinstalled grub, navigated to /boot/grub/, and there isn't a stage1 directory or a menu.lst file.
If you install UBUNTU 9.10 using the default GRUB than you have GRUB2
that means that you do not have a menu.lst .
But you do have grub.cfg
And if you have GRUB2 remember that sda is still hd0 but the first partition is 1 so it starts with (hd0,1)
Why do have a unallocated space of about 20 G , if you allocated it you're partition number can change

Last edited by ronlau9; 11-25-2009 at 01:25 PM.
 
Old 11-25-2009, 02:31 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by Michio View Post
How do I figure out what partition my root is on?

Does this help any?

http://imgdump.org/fVTspgPAs7/r5PFpmUylYrVTs.png
Well, the only Linux partition (other than swap) is sda3, so that's certainly where I would expect to find "/" and "/boot".

Off-topic: What's the unallocated space for? The way this disk is setup, it's doubtful that you will be able to use it (except to expand sda1 and 2.)
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I messed up with up Grub....I can not log in Windows or Ubuntu need help badly dstar101 Linux - Newbie 14 03-24-2008 01:31 PM
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 06:11 PM
Grub Disappeared When I Installed Windows Xp mesh2005 Linux - General 6 05-11-2006 01:26 AM
GRUB is gone... After installed Windows... d_kote23 Linux - Newbie 9 08-27-2004 01:36 AM
GRUB has installed itself over Windows Gramphos Red Hat 3 09-25-2003 03:36 PM


All times are GMT -5. The time now is 12:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration