LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-20-2009, 04:33 AM   #1
UbuntuIdiot
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Rep: Reputation: 0
Fixing GRUB Error 17 on Linux Mint


OK, here's my story.



I have Windows Vista SP1 installed on my HP G-series notebook. I decided to dual-boot it with Linux Mint, just to try it out. Unfortunetely, there were some graphic errors (or so it seemed) and I was never able to use it beyond the LiveCD. Obviously after I was tired of researching the internet looking for solutions I decided to get rid of it.


So I went into Computer>Management and deleted my Mint partition (Healthy Primary 2.33 GB) yeah I know it's small, that's probably what was causing the problems.

Fearing for GRUB errors I decided not to delete this other partition which was 77 MB cause I thought maybe that was the GRUB.

Sure enough, I started it up and there it was GRUB error 17. After this I spent hours on the phone with HP support which didn't offer me anything. So I booted up my Windows recovery disk (I don't have the installation disk because it came pre-installed with the laptop) and it just took forever to load the files then came up with something trying to identify my hard drive. I waited and waited but after a while I just turned it off.

Fortunetely I did manage to boot up the Mint LiveCD. So my question is, given this exact situation how can I repair the GRUB from the Linux Mint CD without formatting.

Thank you.
 
Old 10-20-2009, 04:39 AM   #2
sacx
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Grub error 17 means you messed up the partition table order or you deleted the boot grub folder.

So you need to install grub again. The best is to get a live cd and reinstall the grub.
Reinstalling means you should know the partition numbers (or new partitions number if they changed)

Or if you want to keep only windows, boot the windows from CD go to recovery console and there run fdisk /mbr (If I remember well)


Regards

Last edited by sacx; 10-20-2009 at 04:42 AM.
 
Old 10-20-2009, 01:50 PM   #3
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,069

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
To FIX VISTA MBR: Boot up from Vista Installation DVD and select Repair Your Computer option (its below Install Icon). Select Windows Vista -- Command Prompt.
Execute this at command prompt:
Code:
bootrec.exe /fixmbr
bootrec.exe /fixboot

You only have the Recovery CD? Then it won't work. Try downloading EasyBCD from this site to do it:

http://neosmart.net/dl.php?id=1

Before trying anything with EasyBCD, read the instructions on this page:

http://neosmart.net/wiki/display/EBC...r+with+EasyBCD

Never used vista so I've never used EasyBCD but have read about a number of users who have had success with it.

Grub Error 17: Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB

Grub doesn't mount or recognize ntfs partitions. You can use your Mint CD to restore Grub but if you deleted the partition with Mint on it, most of the Grub boot files were on that partition. Assume you were booting with Grub previously? Open a terminal after loading the Mint CD and run the command: sudo su fdisk -l (lower case Letter L) and post output here.
 
Old 10-20-2009, 04:00 PM   #4
UbuntuIdiot
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
Open a terminal after loading the Mint CD and run the command: sudo su fdisk -l (lower case Letter L) and post output here.
I got "Unknown id: fdisk"


EDIT: I apologize, I typed both the commands on the same line lol silly me.

Anyway here you go

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x918990b4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 37161 298495701 7 HPFS/NTFS
/dev/sda2 37162 37487 2618595 5 Extended
/dev/sda3 37488 38913 11451392 7 HPFS/NTFS
/dev/sda5 37466 37487 176683+ 82 Linux swap / Solaris
mint mint #

Last edited by UbuntuIdiot; 10-20-2009 at 04:42 PM.
 
Old 10-20-2009, 07:31 PM   #5
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,069

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
Your Mint partition is gone, the only Linux partition is sda5 which is a swap partition so you will need to either re-install Mint or another Linux distro you like. You will need to create partitions during the installation (or before) except for swap.

If you want to be able to boot vista, I would suggest the EasyBCD route as the commands I listed above will not work with the vista Recovery CD, only the full Installation CD.

Last edited by yancek; 10-20-2009 at 07:32 PM.
 
Old 10-20-2009, 09:40 PM   #6
UbuntuIdiot
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
Your Mint partition is gone, the only Linux partition is sda5 which is a swap partition so you will need to either re-install Mint or another Linux distro you like. You will need to create partitions during the installation (or before) except for swap.

If you want to be able to boot vista, I would suggest the EasyBCD route as the commands I listed above will not work with the vista Recovery CD, only the full Installation CD.


OK, So I have 284.7 GB reserved for my vista partition how much should I free up for mint?
 
Old 10-21-2009, 12:00 AM   #7
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,069

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
Quote:
OK, So I have 284.7 GB reserved for my vista partition how much should I free up for mint?
Guess it depends upon what you expect/want from it. I'd say 5-10GB or more if you think you will be using it a lot and creating documents, pictures, music, etc... It's pretty much a personal choice and you can change it later. 5GB would probably be a minimal although you could install on less.
 
Old 10-21-2009, 12:29 AM   #8
UbuntuIdiot
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Ok, I tried it again (using 13 GB) and it said the installation failed and it might be due to a faulty CD/DVD or a faulty hard disk.
 
Old 10-22-2009, 05:32 PM   #9
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,069

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
Have you used the disk successfully before? Is your CD/DVD player working with other disks? You did burn it as an image, at a low speed?
 
  


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
Mint 7 Instal from Labs CD re-boots to GRUB error 18 widda Linux - Software 5 07-24-2009 02:45 AM
Fixing bios/grub boot error 'geom'. lszanto Linux - General 2 04-24-2008 06:36 PM
re installation of grub in Linux mint after installing xp over mint sampad.sarangi General 1 01-15-2008 06:37 PM
Grub error Need Help fixing grub Alan87i Ubuntu 2 05-29-2007 01:35 PM
Need help fixing my GRUB user error. Mediocre_Driver Linux - Software 9 01-24-2004 01:52 PM


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