LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-29-2005, 03:56 PM   #1
husnos
Member
 
Registered: Jun 2005
Distribution: debian sarge
Posts: 49

Rep: Reputation: 15
winxp ghost image with grub


I copied a ghost image of windows xp to a logical partition. I have debian installed on primary partition.

Any idea on how to boot this winxp image from grub?

Regards,
 
Old 06-29-2005, 04:57 PM   #2
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
the grub manual is here:
http://www.gnu.org/software/grub/manual/grub.html

I think that will help you...

titanium_geek
 
Old 06-29-2005, 07:43 PM   #3
husnos
Member
 
Registered: Jun 2005
Distribution: debian sarge
Posts: 49

Original Poster
Rep: Reputation: 15
no luck.......i damaged my MBR.

has anyone done this successfully?

installed windows xp after installing linux, where linux is on the primary partition and windows xp is on a logical partition
 
Old 06-29-2005, 08:27 PM   #4
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
hmm... do you have linux boot disks?

XP will have probably put something on the first part of the hd, right? use knoppix- boot into knoppix 2, and run cfdisk to check this out.

If you have the linux boot disk, you should be able to boot into linux, configure grub (perhaps to run on a floppy, first, for testing) and write it to the mbr.

titanium_geek

EDIT: can you boot into linux from the hard drive (ie normally) ? Can you boot XP?

Last edited by titanium_geek; 06-29-2005 at 08:29 PM.
 
Old 06-29-2005, 09:22 PM   #5
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
Windows XP CANNOT be run from a logical partition. It HAS to be run from a Primary Partition. No ifs, ands or buts.

Other than that, it should be easy, if Linux can boot, to add Windows to your grub boot-up screen.

You just add this entry to the bottom of /boot/grub/menu.lst
title Windows XP
rootnoverify (hd0,0)
chainloader +1
makeactive

For the first line, there should be an indent between title and Windows
For the second line, there should be an indent after rootnoverify
No indents for third and fourth lines.

for the rootnoverify line, the first number is the harddrive, second is partition. The numbers start at 0, not 1. So, /dev/hda1 (first primary partition on the primary master harddrive) would be (hd0,0). /dev/hdb3 would be (hd1,2) etc.

Let me know if you have any more questions.

Last edited by linux-rulz; 06-29-2005 at 09:24 PM.
 
Old 06-29-2005, 09:40 PM   #6
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
Quote:
originally posted by linux-rulz
Windows XP CANNOT be run from a logical partition. It HAS to be run from a Primary Partition. No ifs, ands or buts.
oops yeah, i forgot about that part.

titanium_geek
 
Old 06-30-2005, 03:15 AM   #7
husnos
Member
 
Registered: Jun 2005
Distribution: debian sarge
Posts: 49

Original Poster
Rep: Reputation: 15
thank you guys for the help.

i did try that and i also tried mapping and hiding partitions.....no luck

what damaged my MBR is that i typed some of these commands in the grub command interpreter, instead of adding them to grub.conf. i got error17 or something.....don't remember

anyways, i am back to windows xp for the summer. i want to play some directx games before university opens in september.

cheers
 
Old 06-30-2005, 06:01 AM   #8
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
bummer man- I know how you feel.

just a thought: what about grub on a floppy disk?

titanium_geek
 
Old 06-30-2005, 02:28 PM   #9
husnos
Member
 
Registered: Jun 2005
Distribution: debian sarge
Posts: 49

Original Poster
Rep: Reputation: 15
I don't use floppy. I don't have a floppy drive in my computer. However, I do have knoppix.


Last edited by husnos; 08-18-2005 at 09:10 PM.
 
Old 06-30-2005, 11:49 PM   #10
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
I still don't understand how your partitions are laid out. Is there any possible way anyone can think of that he could find which devices (as in uba, sda, hda, etc) his main and second hard drives are? With that info, and some info from fdisk, I think this problem could be fixed. Is there any other device names besides sda and hda that the harddrive could use?
 
Old 07-01-2005, 02:14 AM   #11
husnos
Member
 
Registered: Jun 2005
Distribution: debian sarge
Posts: 49

Original Poster
Rep: Reputation: 15
i am past fixing grub..........i am using windows currently.......i dont have that problem anymore



thanks for the help
 
Old 07-01-2005, 01:07 PM   #12
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
linuxrulz- knoppix with cfdisk.

titanium_geek
 
Old 07-01-2005, 01:55 PM   #13
husnos
Member
 
Registered: Jun 2005
Distribution: debian sarge
Posts: 49

Original Poster
Rep: Reputation: 15
i am completely dedicated to linux

i am only running windows so that I can play some directx games. once univeristy opens again in september........i will give windows a kick in the 'but'
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restore GHOST image to new HD mstahl Linux - Hardware 3 09-07-2005 03:05 PM
Ghost 9 or Acronis True Image 8? nathanv117 SUSE / openSUSE 0 01-09-2005 08:11 PM
Fixing frozen GRUB after I reloaded a ghost image to a drive linlu LinuxQuestions.org Member Success Stories 4 08-25-2004 09:47 AM
Making ISO Image from Ghost. rridler Linux - Newbie 7 05-03-2004 07:04 PM
Ghost 7.5 Mandrake 9.1 Image Won't Boot Linuxpenguin Linux - Software 3 07-16-2003 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:10 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
Open Source Consulting | Domain Registration