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 11-15-2011, 04:34 AM   #1
theprince.munyaradzi
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Rep: Reputation: Disabled
grub rescue


having messed up my grub by going to windows recovery and exiting without completing it, ihave followed all the instructions i have received to try and fix it. the sudo fdisk -l command gives me the following
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: 0xf89f2357

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13055 104857600 7 HPFS/NTFS
/dev/sda2 13055 15013 15728640 1b Hidden W95 FAT32
/dev/sda3 15013 30400 123592705 f W95 Ext'd (LBA)
/dev/sda4 30400 30402 16384 ef EFI (FAT-12/16/32)
/dev/sda5 15013 18549 28399320+ 7 HPFS/NTFS
/dev/sda6 18549 21765 25832448 83 Linux
/dev/sda7 21765 22025 2086912 82 Linux swap / Solaris
/dev/sda8 22025 23427 11264000 7 HPFS/NTFS
/dev/sda9 23427 30400 56006656 7 HPFS/NTFS

Disk /dev/sdb: 987 MB, 987758592 bytes
31 heads, 30 sectors/track, 2074 cylinders
Units = cylinders of 930 * 512 = 476160 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2075 964540+ c W95 FAT32 (LBA)

how do i proceed? i want to restore my system to the dual boot that used to work so well before.....
i would really appreciate it if anyone could give me the step by step commands i need to follow until the grub and my system ( the one operating on windows 7 starter and linux mint11 ) to its original state
 
Old 11-15-2011, 05:13 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
The very first thing is to save all the files you want from the hd before going any further.


The next thing I would do is restore windows (if it does not work) which if a restore cd is used may rewrite the entire hd.


The second thing I would do is try and restore the grub and the mbr.
Here is a great tutorial that explains how to with the steps to take.
Read Section 12

grub2
 
Old 11-15-2011, 07:42 AM   #3
theprince.munyaradzi
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
which device should i mount/ i tried to follow the instructions to reinstall grub but now it says cannot find file i tried to mountsda6' 7 and 2 on separate occasions
 
Old 11-15-2011, 09:08 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
The only Linux partition you have is sda6. sda2 is a windows partition, boot maybe?? and sda7 is a swap partition. It would be helpful if you posted the actual commands you use and the output as otherwise we have absolutely no idea what you did and what did or didn't work. You would create the mount point, mount the partition and install grub:

Quote:
sudo mkdir /mnt/sda6
sudo mount -t ext4 /dev/sda6 /mnt/sda6
sudo grub-install --root-directory=/mnt/sda6 /dev/sda
Enter each line above separately and hit the Enter key after each.
This should work but not knowing what you did previously and the output you got, who knows?? You may have messed up your windows by mounting sda2 previously. What file does it say it cannot find. Posting actual error messages would be helpful.
 
Old 11-15-2011, 11:54 AM   #5
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
You can download boot_info_script from http://bootinfoscript.sourceforge.net/ and run it as root. The output will be stored in RESULTS.txt in that folder which you can post here. It will clarify all the partitions as well as grub and booting info.
 
  


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
GRUB error: unknown filesystem, grub rescue magnecticfield Linux - Newbie 28 07-30-2013 04:35 AM
[SOLVED] Recurring Grub rescue mode after update-grub harris4got Linux - Software 6 04-23-2012 10:30 AM
[SOLVED] Uninstall GRUB(2?) from Grub Rescue prompt. Zssfssz Linux - General 1 11-07-2011 06:04 PM
Problem with GRUB: partition not found. Grub Rescue?? genoboss Ubuntu 117 01-04-2011 08:56 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 03:01 PM


All times are GMT -5. The time now is 12:34 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