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 07-25-2010, 01:57 AM   #1
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Rep: Reputation: 17
windows failed on dual boot


ok now i do not get this i have a computer here that i installed ubuntu 10.04 on it side by side with windows using the ubuntu installer now windows will not boot at all it just restarts every time we try to boot into it now im not stupid i tryed reparing the os many times with the disk no luck when i was exploring in the windows cds command line it showed that his intire os was moved to the d:/ so i do not know how to fix that any help would be much appreceated
 
Old 07-25-2010, 05:01 AM   #2
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
???

Really, windows should never assign a drive letter to a partition formatted with a linux fs.

Maybe you could start to get some light on this issue by doing an "fdisk -l" on your primary harddrive, so for scsi or sata, do:
Code:
fdisk -l /dev/sda
(use hda instead of sda for really old style IDE drives).

If you don't understand the generated output, post it
 
Old 07-25-2010, 05:34 AM   #3
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Rep: Reputation: 25
maybe it's a GRUB problem
 
Old 07-25-2010, 07:33 AM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Tux Rules,

I am not a Grub expert but with just one post from the OP what evidence prompts you to think that it is a Grub problem.

It appears to me that zirias has given an excellent pointer which somehow has been undermined by your assertion, presumably your reply is more appropriate to the solution sought by the OP.

Last edited by saikee; 07-25-2010 at 07:34 AM.
 
Old 07-25-2010, 12:27 PM   #5
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
well all i know is when i try to boot into windows it restarts my computer and i can mount my windows boot loader in ubuntu which i found odd..
 
Old 07-25-2010, 12:39 PM   #6
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
Ok first of all, you can never mount a "boot loader" -- maybe a boot partition. Could you post your partition table (the output i asked for in my first reply) please?
 
Old 07-25-2010, 12:52 PM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Look if you have a working Grub, which is Grub2 in Ubuntu, you can boot any operating system up "manually".

Have you supplied the information suggested by zirias we would have been able to help you better.

It is possible that your Windows has been configured incorrectly and here is how you boot up the Windows manually

(1) In Ubuntu 10.04 select "Application", "acessories" and the click "terminal"

(2) Become the super user by this command in terminal
Code:
sudo su
You need to answer it with your normal user password.

(3) Check the partition layout by the command suggested by zirias
Code:
fdisk -l
copy and paste the command here if you are not sure the last character "l" is a digit one or a small "L".

(4) A Windows partition that boots must have a NTFS filing system so its partition ID must be 7. Also a MS Windows must be booted from an active primary partition which is always marked with a "*". From the "fdisk-l" output you should find which one it is. Say this is sda2, assuming you have a utility partition from the computer vendor and so your MS Windows has been placed in the second partition of the first hard disk. I am guessing as that must be a reason why Ubuntu got it wrong. This will be known to Grub2 as (hd0,2). Grub2 counts disks from 0 but partitions from 1.

(5) Reboot your PC but donot pick any operating system. Just press the "c" key to drop into a Grub prompt.

(6) Boot up your MS Windows manually by these Grub2 command and adjust for your situation is your Windows is not in sda2 or (hd0,2)
Code:
set root=(hd0,2)
chainloader +1
boot
Let us know the progress so that we could tell you to configure the menu permanently.

Last edited by saikee; 07-25-2010 at 12:55 PM.
 
Old 07-25-2010, 12:58 PM   #8
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 260

Rep: Reputation: 42
I'll keep my post simple:

The LQ community probably won't like this, but the best way for a newbie to fix this is to use the Super Grub disk.
 
Old 07-25-2010, 12:59 PM   #9
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 260

Rep: Reputation: 42
Must of hit enter twice to cause a double post....damn!, I wanted to keep it short.

Last edited by Brains; 07-25-2010 at 01:00 PM.
 
Old 07-25-2010, 01:14 PM   #10
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Brains,

You can elect to use make a Super Grub disk and use whatever functions it has to overcome the problem.

Here I show how to use Grub. There is some diagnostics to help the OP understand the root cause.

To me if a user does not know how to use a Grub prompt, which is talking to Grub directly, and rely exclusively a middle man to use the same Grub that is a freedom of choices.

Super Grub is just Grub arranged by a third party.

I would say if a User knows how to use Grub to "manually" boot an operating system, which needs 2 to 3 lines of commands, does not have a booting problem at all!

Last edited by saikee; 07-25-2010 at 01:16 PM.
 
Old 07-25-2010, 01:30 PM   #11
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 260

Rep: Reputation: 42
If you were as perfect as you tend to imply Saikee, you would have stopped the gusher in the gulf of Mexico long before it got capped using grub.

Quote:
The LQ community probably won't like this
I did not want to point the finger at anyone in particular, but the quoted comment came to be because you are in this thread. And you hate others that can offer good/better advice.

Last edited by Brains; 07-25-2010 at 01:39 PM.
 
Old 07-25-2010, 01:48 PM   #12
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0x16b6c2ec

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 26698 214348020+ 7 HPFS/NTFS
/dev/sda3 26699 38914 98118657 5 Extended
/dev/sda5 26699 38411 94083072 83 Linux
/dev/sda6 38411 38914 4034560 82 Linux swap / Solaris
 
Old 07-25-2010, 01:49 PM   #13
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
Wow ... stop this please
Really, I think you're both right. First, it's just pragmatic to suggest a good tool to solve the problem if you know of one. On the other hand, you'll help the person for future, similar incidents by teaching some booting knowledge and make him understand the root cause for the problem. Maybe let the OP decide what approach he likes better

edit:
animeman, i just saw your partition table. looks like your windows is installed in the first primary partition on that harddrive. Please explain, which tool exactly declared your windows partition being "drive d:"?

edit2:
this first partition seems to be VERY small ... maybe this is part of the problem and your windows really resides in /dev/sda2. Then it would be plausible that windows declares it "D:" -- but I have no idea how this could have happened? I'd probably try deleting this first partition (of course, AFTER doing a backup of the MBR including the partition table !!!)

Last edited by zirias; 07-25-2010 at 01:53 PM.
 
Old 07-25-2010, 01:54 PM   #14
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
windows command line utility when i booted it into the windows cd
 
Old 07-25-2010, 01:59 PM   #15
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
BTW, it IS possible to "re-root" windows to a different drive letter, the process involves sime registry changes, boot.ini changes AND (ugh) filesystem changes done with a block-level hex editor (you CAN do this in linux, BTDT), and is probably described in some blog on the web But I'd consider that a last resort for your case...
 
  


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
Dual Boot Class Project Failed prsnrs Linux - Newbie 2 03-19-2010 04:49 PM
I failed at dual booting Fedora and Windows XP on an Aspire One ao751h. Please help? This is my username Linux - General 2 02-02-2010 05:28 AM
ASUS BIOS hardware monitor failed when using dual boot SuSE 9.2 + Windows XP nguyennh Linux - General 3 02-22-2006 08:26 PM
Dual Boot XP/RH8 autoconfig failed Nimbus Linux - Newbie 2 12-15-2004 01:27 PM
Kernel panic after dual-boot XP drive failed phoenixdbq Linux - Newbie 7 02-05-2004 09:17 AM


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