LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-04-2009, 07:10 PM   #1
ibaniski
LQ Newbie
 
Registered: Nov 2008
Posts: 10

Rep: Reputation: 0
Lightbulb Grub error 17 - already tried Google


Hello,

I was working in Linux today (playing with SD cards), and all was well. After I reboot my computer I was faced with the following error:
Code:
GRUB Loading stage 1.5.
GRUG loading, please wait...
Error 17
I have looked into the 1000s of hits returned by Google, but no dice. So I have come here to ask for help to get my system in operational mode again .

I run dual-boot Vista and Ubuntu. I am now using an Ubuntu Live CD. Here is some info that might be useful:
Code:
root@ubuntu:/# fdisk -l
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x030bda60

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       24260   194866144+   7  HPFS/NTFS
/dev/sda2           24261       24758     4000185   82  Linux swap / Solaris
/dev/sda3           24759       28828    32692275    5  Extended
/dev/sda4           28829       30401    12627968    7  HPFS/NTFS
/dev/sda5           24759       24759        4096    c  W95 FAT32 (LBA)
I have done the "partition reordering" using fdisk /dev/sda which changed the order, but did very little about my problem.

There is no /boot/grub directory now (i.e. when I am using the Live CD), so I have no menu.lst file to play with (or copy here).

Any help with resolving this issue would be much appreciated.

Thanks,
ib
 
Old 06-04-2009, 07:24 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 83
There should be a /boot directory on /dev/sda2. Do these commands at a terminal:
Code:
sudo mkdir /mnt/part2
sudo mount -t ext2 /dev/sda2/ /mnt/part2
cd /mnt/part2/boot
ls
and you should see the listing of your /boot directory. Each time you boot your liveCD, these commands can be issued to mount any partition. Looking at your partition table:
Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       24260   194866144+   7  HPFS/NTFS
/dev/sda2           24261       24758     4000185   82  Linux swap / Solaris
/dev/sda3           24759       28828    32692275    5  Extended
/dev/sda4           28829       30401    12627968    7  HPFS/NTFS
/dev/sda5           24759       24759        4096    c  W95 FAT32 (LBA)
I notice there is no boot flag set for /dev/sda2. This may be the problem you are having.
Solution: In the liveCD menus, somewhere you will find a app called gparted. Run this, and you will see your partition table in a GUI. Right click on /dev/sda2 and select 'Manage Flags'. click on 'boot' at the top and click Ok. Then reboot your machine without the liveCD and see does that solve your problem.

Last edited by irishbitte; 06-04-2009 at 07:26 PM.
 
Old 06-04-2009, 07:32 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
/dev/sda2 is a swap partition, so grub won't boot off that. In fact I'm nor sure what you are trying to do to be honest - you don't appear to have linux installed on this disk.
 
Old 06-04-2009, 07:37 PM   #4
ibaniski
LQ Newbie
 
Registered: Nov 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Hey irishbitte,

Thanks for the quick response. I could be wrong, but isn't /dev/sda2 be the Swap partition and not the partition that Linux should boot from?

Nonetheless, I tried mounting it, and got the following response:
Code:
root@ubuntu:/mnt# mount /dev/sda2 part2
/dev/sda2 looks like swapspace - not mounted
mount: you must specify the filesystem type
Do you think I should still proceed by attempting to set the boot flag on for this partition?

Thanks,
ib
 
Old 06-04-2009, 07:39 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
No.
 
Old 06-04-2009, 07:41 PM   #6
ibaniski
LQ Newbie
 
Registered: Nov 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
/dev/sda2 is a swap partition, so grub won't boot off that. In fact I'm nor sure what you are trying to do to be honest - you don't appear to have linux installed on this disk.
Hey,

That is exactly why I don't really know how to approach the problem. I mean I was using Ubuntu, and the rebooted the system, and was faced with the problem that I am facing. It almost looks to me like /dev/sd3 should be the Linux partition, but it says that it isn't. Again, I have no technical way of proving this to myself, but I had 2+1 Windows partitions (+1 = small recovery partition), a partition where Linux was installed + a Swap partition.

If you have any idea on how to proceed with this, please advise . If unnecessary, I am prepared to reinstall Ubuntu, but would prefer not to have to do the same for Vista.

Thanks,
ib
 
Old 06-04-2009, 07:42 PM   #7
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 83
Quote:
/dev/sda2 is a swap partition, so grub won't boot off that. In fact I'm nor sure what you are trying to do to be honest - you don't appear to have linux installed on this disk.
billymayday is 100% right there. Guess it's time I went to bed!

It does seem that you do not have linux installed, however, you seem to have two HPFS/NTFS partitions, is that correct? I assume /dev/sda1 is Vista?
 
Old 06-04-2009, 07:44 PM   #8
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 83
You can try looking at /dev/sda3, but it looks to me like you've fried your partition table. I suggest a reinstall of ubuntu, or you risk instability no matter what you do.
 
Old 06-04-2009, 07:46 PM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
/dev/sda3 is an extended partition, so its only role is to "hold" logical partitions.

Is there any free space on sda?

/dev/sda1 and /dev/sda4 are Windows partitions. Is /dev/sda5 the recovery? I don't see any linux partition (it would be Id 83)

Last edited by billymayday; 06-04-2009 at 07:47 PM.
 
Old 06-04-2009, 07:57 PM   #10
ibaniski
LQ Newbie
 
Registered: Nov 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
/dev/sda3 is an extended partition, so its only role is to "hold" logical partitions.

Is there any free space on sda?

/dev/sda1 and /dev/sda4 are Windows partitions. Is /dev/sda5 the recovery? I don't see any linux partition (it would be Id 83)
I am not sure how to check for certain if there is (and how much) free space on the entire HD. But from the fdisk -l, and looking at the sectors information, I sort of guess there is no free space.

Also, the recovery is sda4, so I am not sure what sda5 is. It looks tiny.

--

Edit: by sectors I mean cylinders.

Last edited by ibaniski; 06-04-2009 at 07:59 PM. Reason: wrong terminology
 
Old 06-04-2009, 08:02 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It actually looks to me as if you extended partition is empty, with only one cylinder used by /dev/sda5. I can't look at a disk with an extended partition at the moment, but that is my guess.

i would assume that you could install linux on a new logical partition using blocks 24760-28828
 
Old 06-05-2009, 12:44 AM   #12
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Bodhi, Mint-xfce
Posts: 183

Rep: Reputation: 21
Try booting from a live cd and then run gparted to look at your drive.
Your partition numbers seem out of order.
Off hand it looks like you probably deleted your Linux partition (sda3) and created an extended partition in its place!
You then created a small logical Fat32 partition within it thus the sda5 designation.
But you had an existing sda4 (ntfs) partition from before.
 
  


Reply

Tags
error, grub


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
Google Earth error. rich_c Linux - Software 1 02-27-2009 04:31 AM
google earth install error davidguygc Slackware 3 06-19-2007 12:11 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 09:33 AM
The error isn't even present on Google! Aeoruuk Linux - Newbie 1 01-21-2005 12:12 PM
google is down!! 503 server error thehundredthone General 7 03-25-2004 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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