LinuxQuestions.org
Review your favorite Linux distribution.
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 08-20-2008, 01:56 AM   #1
bMajor
LQ Newbie
 
Registered: Aug 2008
Posts: 6

Rep: Reputation: 0
Dual Boot Question


Hi I have been researching dual boot system setup for some time now. The computer I purchased came preloaded with W******* XP Home on NTFS partition and a recovery partition in FAT32. I used Partition Magic to create an EXT2 partition for Fedora then installed Fedora 8. I am fairly certain that I should have choosen to customize the parameter about choosing the MBR or 1st boot sector something-or-other with regards to booting.

Nevertheless, Fedora works great. XP OS; however, doesn't show up in the GRUB boot menu because of the install mistake I just know I must have made. I was reading suggestions from similar postings and found that it might be usefull to post the following here to help pinpoint the problem making sure I have the choice of booting the other OS when needed:

results from entering this code:
Code:
sudo fdisk -l
looks like this:
Code:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4b36bdea

  Device Boot    Start     End    Blocks     Id    System
/dev/sda1          674    7880  57890227+    17    Hidden HPFS/NTFS
/dev/sda2           65     673   4891761     1b    Hidden W95 FAT32
/dev/sda3   *        1      26    208813+    83    Linux
/dev/sda4         7881    9729  14852092+     5    Extended
/dev/sda5         7881    9729  14852061     8e    Linux LVM

Partition table entries are not in disk order

Disk /dev/dm-0: 13.0 GB 13086228480 bytes
255 heads, 63 sectors/track, 252 cylinders 
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table

Also the results from entering this code:
Code:
gedit /boot/grub/menu.lst
look like this:
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this # file
# Notice:  You have a /boot partition.  This means all kernel and
#          initrd paths are relative to /boot/ , eg.
#          root (hd0,2)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.25.14-69.fc8)
        root (hd0,2)
        kernel /vwlinuz-2.6.25.14-69.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.25.14-69.fc9.img
title Fedora (2.6.23.1-42.fc8)
        root (hd0,2)
        kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/VolGroup00/LogVol00 rhgp quiet
        initrd /initrd-2.6.23.1-42.fc8.img
I hand typed the above results; they are not appended directly or anything. I tried not to mak any mistakes in copying the code(Just wanted some practice with the Linux synax.) So forgive me if there are mistakes there. As always thanks for reading and/or helping. Any other commands that result in system information, that I should add to the post, would be no problem just let me know which listings to produce.
 
Old 08-20-2008, 02:07 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Windows doesn't show up because there's no stanza for it in the GRUB config file (perhaps that's because you chose not to have it added when you installed Fedora, but I don't know). You might like to have a look at the GRUB documentation: http://www.gnu.org/software/grub/man...OS_002fWindows. Edit: do you have Internet access on your Linux machine? You could have just copied and pasted the output, rather than writing it all out..

Last edited by Nylex; 08-20-2008 at 02:08 AM.
 
Old 08-20-2008, 02:30 AM   #3
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 4
Posts: 340
Blog Entries: 4

Rep: Reputation: 63
Hello,
I don't think the first partition needs to be hidden.
/boot/grub/menu.1st or grub.conf should have an entry for the windows drive

like:
title WinDoze
rootnoverify (hd0,0)
chainloader +1
 
Old 08-20-2008, 03:48 AM   #4
bMajor
LQ Newbie
 
Registered: Aug 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Attempted Fix & no luck

Thank you to two above responders. I tried the following in an attempt to get the GRUB to boot XP:

I signed on as the root and enter:
Code:
vi /root/grub/menu.lst
I deleted the line that above the first stanza:
Code:
hiddenmenu

In its place I put the foollowing:
Code:
title WinDoze
rootnoverify (hd0,0)
chainloader +1
I then wrote and quit from the vi editor, signed off and rebooted the computer. The GRUB came along and gave me the option to boot into Fedora or WinDoze. I tried WinDoze and the screen says this:
Code:
  Booting 'WinDoze'

chainloader +1

Error 13: Invalid or unsupported executable format

Press any key to continue..._
Do I have the right idea that I should be trying to edit the file /root/grub/menu.lst ? Any suggestions about getting the other OS to be able to boot?

Thanks again.
 
Old 08-20-2008, 03:52 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by bMajor View Post
Do I have the right idea that I should be trying to edit the file /root/grub/menu.lst ?
Presumably that's a typo and you actually meant /boot. I don't know too much about GRUB, so someone else will have to step in here. You might want to try googling that error message in the meantime.
 
Old 08-20-2008, 09:18 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I'm having trouble understanding how the partitions got this way:
Code:
Device Boot    Start     End    Blocks     Id    System
/dev/sda1          674    7880  57890227+    17    Hidden HPFS/NTFS
/dev/sda2           65     673   4891761     1b    Hidden W95 FAT32
/dev/sda3   *        1      26    208813+    83    Linux
/dev/sda4         7881    9729  14852092+     5    Extended
/dev/sda5         7881    9729  14852061     8e    Linux LVM
Presumably, you started with the windows partitions beginning at cylinder #1, and the FAT32 being the first partition. In partition magic, did you move the windows partitions, resize them, or maybe both?

Then--just guessing--the Fedora installer saw the empty space before cylinder 65 and stuck Linux /boot in there??

Just for kicks, boot into Fedora, open a terminal and enter "su" to become root.

enter the dd command below and see if you get the same result:
Code:
dd if=/dev/sda1 bs=16 skip=32 count=1|hexdump -C
1+0 records in
1+0 records out
16 bytes (16 B) copied, 6.0619e-05 seconds, 264 kB/s
00000000  05 00 4e 00 54 00 4c 00  44 00 52 00 04 00 24 00  |..N.T.L.D.R...$.|
00000010
we also might get some clues from the raw data from the partition table:
Again, in a terminal:
Code:
dd if=/dev/sda bs=1 skip=446 count=64|hexdump -C
Post the results here.

I can't promise where any of this is going to lead. In situations like this, I usually just re-install everything.

Last edited by pixellany; 08-20-2008 at 09:55 AM.
 
  


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 question abk4523 Linux - Software 4 08-30-2005 08:38 PM
Dual boot question Dreamcatcher Linux - Software 3 08-21-2004 04:26 PM
Another dual boot question flira Slackware 2 05-29-2004 02:23 AM
Another Dual Boot Question gg4 Linux - General 5 02-19-2003 02:50 PM
One more dual boot question... swampbilly Linux - Newbie 5 02-05-2003 12:08 PM


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