LinuxQuestions.org
Visit Jeremy's Blog.
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 11-20-2010, 01:57 AM   #1
J00g3
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
Dual boot; Windows 7 and Ubuntu 10.4


Hi,
had to reinstall my win7 on my Lenovo Ideapad s10-3.
Trying to use these two aproaches from the Ubutu 10.4 LiveCD:

Quote:
sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda
when I reboot the machine, I only end up in grub rescue mode.
Have also been trying this:

Quote:
sudo grub
just get an error, cannot find command


My fdisk -l output looks like this:

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x45971281

Device Boot Start End Blocks Id System
/dev/sda1 1 125 999424 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 125 250 1000448 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 250 26421 210225786+ 83 Linux
/dev/sda4 * 26422 30401 31969350 7 HPFS/NTFS

Disk /dev/sdb: 8019 MB, 8019509248 bytes
20 heads, 16 sectors/track, 48947 cylinders
Units = cylinders of 320 * 512 = 163840 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000a3cc

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 48948 7831512 b W95 FAT32
 
Old 11-20-2010, 02:12 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
You'll need the root-directory to be on /dev/sda.
Maybe just chroot into the disk install and grub-update.
 
Old 11-20-2010, 02:16 AM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I don't know about 10.04 but 10.10 will allow you to mount os if you chose the try ubuntu option once in you
can see your files in "examples". Also if your windows os is bootable download and burn gparted-live-cd
You can change your bootflag to sda1 that should get you in.
Did you try:
"os-prober"
"update-grub"
 
Old 11-20-2010, 02:18 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I don't know about 10.04 but 10.10 will allow you to mount os if you chose the try ubuntu option once in you
can see your files in "examples". Also if your windows os is bootable download and burn gparted-live-cd
You can change your bootflag to sda1 that should get you in.
Did you try:
"os-prober"
"update-grub"

I really think all you needed were these two commands
 
Old 11-20-2010, 02:18 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I don't know about 10.04 but 10.10 will allow you to mount os if you chose the try ubuntu option once in you
can see your files in "examples". Also if your windows os is bootable download and burn gparted-live-cd
You can change your bootflag to sda1 that should get you in.
Did you try:
"os-prober"
"update-grub"
 
Old 11-20-2010, 02:32 AM   #6
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Rep: Reputation: 34
try this out - boot into the rescue mode with a fedora cd. Keep going till it drops you to a black shell prompt.
issue following two commands to reinstall grub :-
chroot /mnt/sysimage
grub-install /dev/sda

(use the hard disk extn i.e sda / hda , as applicable to you)

hope it helps
 
Old 11-20-2010, 02:51 AM   #7
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
Quote:
Originally Posted by J00g3 View Post
had to reinstall my win7 on my Lenovo Ideapad s10-3.
Trying to use these two aproaches from the Ubutu 10.4 LiveCD:
See this tutorial for reinstalling grub2 to the master boot record (MBR) from the Ubuntu live CD:
https://help.ubuntu.com/community/Gr...ing%20GRUB%202
Just use the first method for reinstalling grub2 that is listed there. It should work fine.

And welcome to the LQ forums!

Last edited by tommcd; 11-20-2010 at 02:53 AM.
 
  


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
I had a windows xp pro 64 & ubuntu 10.4 dual boot in which I had to reload windows. JEBUP2JE Ubuntu 2 09-24-2010 01:35 AM
Losing Windows boot on dual boot Windows/Ubuntu machine windows22 Linux - Newbie 32 08-30-2010 10:54 PM
Want to upgrade Windows Vista to Windows 7 on a Dual Boot machine Ubuntu/Winvista. hector3rd Linux - Desktop 6 08-07-2010 06:33 PM
Ubuntu 9.04 with dual boot (Windows XP) my Ubuntu screens freeze up gribbsy Ubuntu 4 10-20-2009 02:13 AM


All times are GMT -5. The time now is 02:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration