Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Linux Support Linux - Operating Systems and Applications Support

Closed Thread
 
LinkBack Thread Tools
Old 12-11-2007, 12:48 PM   #1 (permalink)
Registered User
 
Istanbul_Lfc's Avatar
 
Join Date: Oct 2007
Location: Lancashire, UK
Posts: 160
OS: Windows XP Home SP3, Ubuntu 9.04, Ubuntu 8.04 (Server)

My System

[SOLVED] Cannot mount selected partition.

Hi,

i have a 72GB Master (Windows XP Home)
and a 40GB Slave (No OS)

I installed Ubuntu 7.10 with live CD, it was going well. I created a new partition on the slave as ext3 format (10GB) and a swap partition(256 mb). The ext3 with a "/" mount point.

Here is how it looks on the installer.

/dev/sda

/dev/sda2 NTFS (Windows XP)

/dev/sdb

/dev/sdb1 ext3
/dev/sdb2 swap

(I think that was it, im just remembering from memory)

It finished copying the files and when it came to configuring the boot loader it was set as default to (hd0). I thought it was the hardrive my XP was on and i didn't want to tamper with the bootloader so i changed it to (hd1) thinking it load from my slave.

I then rebooted and changed my hard disk priority to my slave from the BIOS and the GRUB loaded ok. On the GRUB menu it has numerous options.

Ubuntu Kernel - Generic
Ubuntu Safe Mode
Windows XP Home etc.

There are six boot options and none of them work they all come with this error.

"Error 17. Cannot mount selected partition

Press any key to continue..."

When i press a key it returns me to the GRUB load screen.

Please can someone shine some light on this problem?
__________________
Have You Tried Turning It Off And ON Again...?
Istanbul_Lfc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Sponsored Links
Old 12-12-2007, 12:48 AM   #2 (permalink)
Mentally divergent
 
Bartender's Avatar
 
Join Date: Jun 2005
Location: Chehalis, WA, USA
Posts: 1,285
OS: W2K, Ubuntu 8.04


Re: Cannot mount selected partition.

What happens if you go back to BIOS and set it to boot from the original HDD?
Does Windows still come up OK?

You could try unplugging the Windows HDD, install Ubuntu to the second drive, then plug them both back in and see what happens. What you describe sounds like it shoulda worked...

Last edited by Bartender; 12-12-2007 at 12:51 AM.
Bartender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 12-17-2007, 05:01 AM   #3 (permalink)
Registered User
 
Istanbul_Lfc's Avatar
 
Join Date: Oct 2007
Location: Lancashire, UK
Posts: 160
OS: Windows XP Home SP3, Ubuntu 9.04, Ubuntu 8.04 (Server)

My System

Re: Cannot mount selected partition.

Yes, thats what i thought, i will do the install again but without the XP hdd. And yes when i boot from the original hdd it loads Windows without GRUB.
__________________
Have You Tried Turning It Off And ON Again...?
Istanbul_Lfc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 12-17-2007, 06:05 AM   #4 (permalink)
Registered User
 
Join Date: Dec 2007
Posts: 7
OS: Windows XP SP 2, Ubuntu Linux 7.10, Mac OS 10.5, BLFS


Re: Cannot mount selected partition.

I have seen this problem. If I understand you, Ubuntu is on the second hard disk. So is Grub. For some reason GRUB doesn't configure itself correct when you change it's location. GRUB always refers to itself as on hd0. So when it is on the second partition, instead of booting Ubuntu from hd1 which is the first hard disk, it should boot to hd0, which is the hard disk that GRUB resides on.

1. Insert Live CD
2. Boot to Live CD
3. Open a terminal
4. type sudo gedit
5. GEdit will open
6. Open File > Ubuntu Partition(NOT THE LIVE CD FILE SYSTEM)(Ubuntu Partition should be /media/sdx) > Ubuntu File System /boot/grub/menu.lst
7. Go to the bottom
8. Your Ubuntu Entry should resemble this:

> title Ubuntu, kernel 2.6.20-16-generic
> root (hd1,1)
> kernel /boot/vmlinuz-2.6.20-16-generic
> root=UUID=3adabece-a770-49a0-bf76-766193ae1204 ro single
initrd /boot/initrd.img-2.6.20-16-generic

9. It may be different, but change "root (hd1,1)" to "root (hd0,<Your partition here>)
Guardian-Mage is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 12-17-2007, 09:19 AM   #5 (permalink)
Mentally divergent
 
Bartender's Avatar
 
Join Date: Jun 2005
Location: Chehalis, WA, USA
Posts: 1,285
OS: W2K, Ubuntu 8.04


Re: Cannot mount selected partition.

I'm not sure I agree with some of Guardian-Mage's comments, or perhaps I just don't understand what he's saying. GRUB can certainly be told to install somewhere else besides hd0. I've done it.
If you tell it to install to hd1, it will (should?) install to the second HDD. But which drive does GRUB think is second? It clearly did not install to sda, otherwise the Windows HDD wouldn't have started up without errors because GRUB tweaked the MBR, or without seeing something from GRUB.
If it was me, I'd just try again with both HDD's plugged in, take notes, make sure you tell GRUB to install to hd1 if that is the second drive as identified by the Linux partitioner. In other words, if the Linux partitioner sees sdb as the drive you want to install to, then GRUB should identify the root of that drive as hd1 and that's where you want to direct it.
You can even install GRUB to a partition on a HDD. If you wanted GRUB in the first partition on the second drive you'd tell GRUB to install to hd1,0. Most of us just install to the root of the drive.

Last edited by Bartender; 12-17-2007 at 09:24 AM.
Bartender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 12-17-2007, 12:59 PM   #6 (permalink)
Registered User
 
Join Date: Dec 2007
Posts: 7
OS: Windows XP SP 2, Ubuntu Linux 7.10, Mac OS 10.5, BLFS


Re: Cannot mount selected partition.

Sorry I did not explain myself properly. Grub can install to another drive just fine, but with the Ubuntu install it does not get configured right. First off, will GRUB boot Windows or do you have to boot from the primary
Guardian-Mage is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 12-17-2007, 01:53 PM   #7 (permalink)
Registered User
 
Istanbul_Lfc's Avatar
 
Join Date: Oct 2007
Location: Lancashire, UK
Posts: 160
OS: Windows XP Home SP3, Ubuntu 9.04, Ubuntu 8.04 (Server)

My System

Re: Cannot mount selected partition.

I don't need GRUB to boot Windows i just change my HD priority in the BIOS.
__________________
Have You Tried Turning It Off And ON Again...?
Istanbul_Lfc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 12-19-2007, 10:34 AM   #8 (permalink)
Mentally divergent
 
Bartender's Avatar
 
Join Date: Jun 2005
Location: Chehalis, WA, USA
Posts: 1,285
OS: W2K, Ubuntu 8.04


Re: Cannot mount selected partition.

How we doing today Istan?
Have you tried anything else?
You're using an Ubuntu LiveCD, right?

I'd try again. With both dries plugged in.
Instead of going manual when you get to the partitioner, let ubuntu do a "Guided - use entire drive" but make sure that you -
1) Have your BIOS set up so that Windows HDD is master and the other one's slave
2) Make sure that the ubuntu installer sees sda as "NTFS" or media/windows or whatever it calls the Windows drive.
3) Make sure when you're at the "Guided - use entire disc" step that it's aimed at sdb, not sda. We do not want it to install to sda!!
4) At the last step before it starts to install Ubuntu gives you a little summary page. That summary page is important. In one little line that's not very obvious, it'll say something like
"GRUB will install to ..." and there will be a little tiny box saying "hd0". Change that to "hd1". Then let it install.
That should work. Windows (sda) will be left alone, the entire Ubuntu install will be on sdb, and you would choose by changing the boot order in BIOS or by using that key during boot that gives you the choice of bootable devices if your BIOS has that option.
If, in a few weeks, you decide that you want GRUB to install to the windows MBR, then you can re-install grub or just re-install Linux completely and let GRUB install to hd0.
Bartender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 12-22-2007, 12:29 PM   #9 (permalink)
Registered User
 
Istanbul_Lfc's Avatar
 
Join Date: Oct 2007
Location: Lancashire, UK
Posts: 160
OS: Windows XP Home SP3, Ubuntu 9.04, Ubuntu 8.04 (Server)

My System

Re: Cannot mount selected partition.

Thanks for replying.

I only want Ubuntu to have 10GB partition so i do the install manually. And at the summary page it trys to save the bootloader to hd0 i changed it to hd1 and when i boot from the slave from the BIOS the GRUB bootloader works and this comes up.

Ubuntu Kernel - Generic
Ubuntu Safe Mode
Windows XP Home etc.

There are six boot options and none of them work they all come with this error.

"Error 17. Cannot mount selected partition

Press any key to continue..."

When i press a key it returns me to the GRUB load screen.
__________________
Have You Tried Turning It Off And ON Again...?
Istanbul_Lfc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 12-23-2007, 07:24 AM   #10 (permalink)
Mentally divergent
 
Bartender's Avatar
 
Join Date: Jun 2005
Location: Chehalis, WA, USA
Posts: 1,285
OS: W2K, Ubuntu 8.04


Re: Cannot mount selected partition.

According to LinuxSelfhelp :

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

I'm not sure I'm reading this right. And my understanding of how GRUB works is not exactly flawless.

GRUB has two stages. The first part is a tiny bit of code that installs to the very beginning of the drive. That bit directs GRUB to GRUB Stage2, installed out in the body of the drive platters where there's room for more data. In Ubuntu, if I go to Computer>File System>boot>grub I'm looking at the GRUB Stage2 data.
At least that's how I understand it

Error 17 looks to me like GRUB doesn't recognize the disk formatting as one it can use. Did you use Partition Magic to format your HDD?

Hopefully someone else will pipe up if I'm leading you astray. I'm no Linux expert, but I've installed Linux (Ubuntu, PCLOS, Mint) twenty times or so to several different PC's.

I would not have expected to see the GRUB menu that you describe if I'd reinstalled everything to sdb. GRUB shouldn't be making any references to Windows.

This is what I'd do with my admittedly limited experience. I'd unplug the Windows drive. That way we know it can't be wrecked.
Then I'd plug in the Linux drive, set it up as master (physically as well as in BIOS) and let Ubuntu auto-install. Don't do any manual partitioning, just select "Guided - Use Entire Disk".

Does it boot up and run? If you get the same error again I'd wipe the entire drive clean with a disc wipe utility like Darik's BootNuke or use a GPartedLiveCD (my favorite partitioning tool - a pox on Partition Magic) to remove all partitions and format the entire disc as ext3. Then I'd try to install again with just the Linux HDD in the PC.
If you STILL get messages about a Windows HDD and Error 17 then I'd say that either the HDD is starting to fail, or the install CD you're using is no good. Cheaper to make another install CD than scrap the drive. If you've been using an Ubuntu LiveCD you might want to download/burn an alt-install CD. They're more reliable than LiveCD's.

Does your PC use the wide ribbon cables to connect HDD's or is it SATA? If you have the ribbon cables, and they're the old 40-wire cables, try replacing with an 80-wire ribbon cable. 80-wires transmit data more reliably.
Bartender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 12-24-2007, 10:16 AM   #11 (permalink)
Registered User
 
Istanbul_Lfc's Avatar
 
Join Date: Oct 2007
Location: Lancashire, UK
Posts: 160
OS: Windows XP Home SP3, Ubuntu 9.04, Ubuntu 8.04 (Server)

My System

Re: Cannot mount selected partition.

All the hassle to get Ubuntu... I have now scrapped Ubuntu, it probably is a good Linux but the installation of the bootlaoder is a pain. So i have installed openSUSE 10.3 and it has allowed me to save GRUB to the slave without problem. Thank you all for your help it is much appreciated. Thanks.
__________________
Have You Tried Turning It Off And ON Again...?
Istanbul_Lfc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 06-13-2009, 11:56 AM   #12 (permalink)
Registered User
 
Join Date: Jun 2009
Posts: 1
OS: Arch Linux


Re: [SOLVED] Cannot mount selected partition.

I know it's marked as [SOLVED] (i think it should be marked as gave up )
but today i faced the same situation and go google to find some answers...and came up to this post... ok the boring part finish here.


Solution for the problem:

For some reason (someone explained it in the post) GRUB gets confused when you install with 2 HDs and boot from the second one (he thinks that is the 2nd drive when for a while that is the main HD (1st) ) so u will just have to edit the command:
(i base in mine config)

root(hd1,0)

to:

root(hd0,0)

and grub will do the job...
thrash.nation is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Old 06-13-2009, 12:46 PM   #13 (permalink)
Moderator/Fedora Amb.
 
wmorri's Avatar
 
Join Date: May 2008
Location: /pm/etc
Posts: 2,274
OS: XP SP3/Fedora 10


Send a message via AIM to wmorri
Re: [SOLVED] Cannot mount selected partition.

This thread is from 2007, please don't bring up old posts.

Closed!
__________________


Linux Forever!

I won't be back until Tuesday, I am moving this weekend

wmorri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Closed Thread


Thread Tools

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




All times are GMT -7. The time now is 07:20 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84