LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-05-2013, 10:57 AM   #1
AppFzx
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Rep: Reputation: 0
Replace WinXP in multiboot with image from WinXP in single boot


I started with a WinXP only system.
320Gb partitioned evenly 160 + 160.

I created a new system as follows:
Installed in this order WinXP, Win7x86, Win7x64, LinuxMint15x64
Screenshot of partitions is attached.

When I boot, first I go to Grub2

|Linux Mint 15 Cinnamon 64-bit, 3.8.0-19-generic (/dev/sda3)
|Linux Mint 15 Cinnamon 64-bit, 3.8.0-19-generic (/dev/sda3) -- recove
|Memory test (memtest86+)
|Memory test (memtest86+, serial console 115200)
|Windows Recovery Environment (loader) (on /dev/sda1)


choosing Linux of course goes directly to Linux. Choosing Windows loader gives:

|Windows Boot Manager
|Choose an operating blah blah blah...
|XP-32B
|W7-32B
|W7-64B


I made the XP partition big enough to copy in an image of my old standalone XP computer but when I copy it in with Clonezilla, the computer boots straight to XP. (not surprising since its SDA1)

Ideally, I'd like to copy XP in and have GRUB list all 4 operating systems.

I've tried a few methods to no avail. Any ideas how to get this working?
Attached Thumbnails
Click image for larger version

Name:	partitions.png
Views:	24
Size:	35.4 KB
ID:	13346  
 
Old 09-05-2013, 05:53 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,527

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
You can't do it like that because of the way the Windoze installer replaces the loader code when (M$oft interpretation of) "dual boot" is attempted.
If you "hide" each (all) of the prior Windoze partitions before each subsequent install, you might get what you want. Grub probably won't care whether they remain hidden or not, can't remember if the M$oft loader requires at least one to be un-hidden.
 
Old 09-05-2013, 06:09 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,372
Blog Entries: 33

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi

Quote:
I've tried a few methods to no avail
What methods have you tried?

You should be able to re-install grub2 from mint to have all the OS's display at boot prompt.

Personally, I set a /boot partition of less than 400Mb, But I'm only dual booting.

Your Winxp restore is writing over the mbr, you can reset this with dd

Quote:
to clean/wipe mbr...including partition table....
dd if=/dev/zero of=/dev/foo7 bs=512 count=1

dd if=/dev/zero of=/dev/sd(x) bs=512 count=1

http://www.gnu.org/software/grub/grub.html

retain partition table...clear only first 446 bytes.
dd if=/dev/zero of=sd(x) bs=446 count=1

NOT sda1,
This link may help, from Arch-Linux wiki.
 
Old 09-05-2013, 07:05 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,217

Rep: Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348
Windows needs its boot files on a primary partition and the only windows primary you have is the xp on sda1. I expect if you looked on sda1, you would find not only the xp boot files but also the windows 7 boot files. Windows bootloaders are backward compatible so that an install of windows 7 should detect and create a menu for xp but the reverse would have to be done manually.

http://www.sevenforums.com/tutorials...artitions.html

Grub2 also chainloads windows rather than directly booting it.
 
1 members found this post helpful.
Old 09-05-2013, 07:35 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836
Quote:
Originally Posted by GlennsPref View Post
Your Winxp restore is writing over the mbr, you can reset this with dd
Restoring an image to sda1 can by definition not overwrite the MBR. The problem is here that the XP image does not contain the Windows 7 bootloader. For some unknown reason Microsofts insists on having the second stage of the bootloader on sda1.
The solution is actually straight-forward:
- Restore the XP image
- Use a Windows / DVD to repair the bootloader (this will overwrite your MBR)
- Use a Linux Live-CD to reinstall Grub

If you want to have all OSes in one boot menu you can't accomplish this with Grub, but you can accomplish this with the Windows bootloader. After you let Windows 7 repair the bootloader do not install Grub to the MBR, but to your /-partition. Now use software like EasyBCD to add Linux to your Windows bootloader.
 
1 members found this post helpful.
Old 09-05-2013, 08:28 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,089

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
for this
" WinXP, Win7x86, Win7x64, LinuxMint15x64"
i would install a VM on Linux Mint and run virtual installs of the old XP and 32 bit 7 and 64 bit 7
 
Old 09-06-2013, 10:15 AM   #7
AppFzx
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Methods I've tried all start with copy in old WinXP with Clonezilla and then:
-use EasyBCD but it fails to find the configuration file so:
-install WinXP bootloader to MBR from EasyBCD in WinXP
-install Win7 bootloader to MBR from EasyBCD in WinXP
-boot from live and try to install grub

@TobiSGD I'll try your suggestion today and post results.
 
Old 09-10-2013, 07:14 AM   #8
AppFzx
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Fail Fail Fail
All the following leads to fail.
I ended up restoring again and now I'm going to copy Old XP into another partition and have a 5 boot system. Owell.

Still posting what happened even though it didn't work:
-----------------------------------------------------------------
Starting with machine restored to configuration in screenshot and all OS's properly shut down.
Clonezilla backup of my old WinXP single boot machine.
Reboot to clonezilla live usb stick made with tuxboot 0.5
Restore Old WinXP in place of new. (sdc1, see screenshot in original post. That's WinXP)
Download and burn a Windows 7 Ultimate iso from digitalriver (yes, it's legal)
Make a bootable USB out of Win7 install disk using Universal-USB-Installer
Reboot computer after Clonezilla is done. (it goes straight to XP)

Download Install Run EasyBCD (it complains "The boot configuration data store could not be opened...Would you like to manually load a BCD registry... blah blah" -- NO
BCD Deployment (button on left side)
Bottom group: MBR Configuration Options - Install the Windows Vista/7 bootloader to the MBR - Click Write MBR
Restart ... Hope ... ... ... Curse ... ... ... Hope ... ... twiddle thumbs ... See WinXP again. Curse ... reboot with Win7 USB stick in drive
Click "Repair Your Computer" ... 'Searching for Windows installations...'
Windows found problems with your computer's startup options - view details - yep, it found all the windows installs. click "Repair and restart" -- "Failed to save startup options."
Manually do lots of command line things following several tutorials around the interwebs to try to rebuild c:\boot\bcd. Even copied it from the New XP image and that didn't work. (although it said missing NTLDR instead so I chased that one for a while. NTLDR was there the whole time but it didn't like it...)

Finally ran chkdsk with /f option and that fubar'd the drive.
Thank you Microshaft for "fixing" things for us.
 
Old 09-10-2013, 09:03 PM   #9
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,372
Blog Entries: 33

Rep: Reputation: 217Reputation: 217Reputation: 217
Windows can't boot from an extended partition.

Quote:
The old-school approach is to have only one primary partition, followed by an extended partition. This is no longer needed for NTFS volumes; in fact, if you’re setting up a dual-boot system, each OS must have its own primary partition.
ref. http://helpdeskgeek.com/windows-xp-t...cal-partition/

Quote:
You can have only 4 primary partitions (3 if you decide to have an extended partition), whereas you can have an arbitrary number of logical partitions. There are no OS-specific advantages other than older versions of Windows must be installed on a primary partition and that the legacy MBR bootloader can only boot from a primary partition.
ref. http://superuser.com/questions/33714...ical-partition

Last edited by GlennsPref; 09-10-2013 at 09:38 PM. Reason: references
 
Old 09-10-2013, 10:03 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836
Quote:
Originally Posted by GlennsPref View Post
Windows can't boot from an extended partition.
Only true for XP or if you not use the recommended boot partition for Vista/7. Since XP lies on a primary partition here a separate boot partition for 7 is not needed, it will just use the XP partition as boot partition.
 
1 members found this post helpful.
Old 09-10-2013, 10:39 PM   #11
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,372
Blog Entries: 33

Rep: Reputation: 217Reputation: 217Reputation: 217
Thanks for the input.

Seems like a lot of effort for 3 versions of win.

You'd have no probs if they (the Windows installs) were on separate drives.

I seen a few unsolved hdd partitioning threads of late(,windows?).

some trying to multi-boot flash-memory drives.

I'm still learning

cheers

to the op, when it comes to partitioning, ime, keep it simple.

Remove all the partitions and start with a plan, and end with a table of "consecutive" partitions. (nice and neat)

it may save you pain later.

Last edited by GlennsPref; 09-10-2013 at 10:44 PM.
 
Old 09-10-2013, 11:23 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,089

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
I would install mint
then a VM
then the 3 different versions of windows on the VM
 
  


Reply

Tags
boot


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
Installed Puppy Linux with WinXP, now can't boot WinXP rockyourteeth Linux - Newbie 25 02-24-2012 02:58 AM
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
installed fedora5 &winxp. fedora fine, can't boot winxp uruloki Linux - Newbie 5 07-23-2006 10:12 AM
winxp,S OS 5.10 multiboot single disk labtop toshiba m70 122 flowerman Solaris / OpenSolaris 2 03-22-2006 02:14 AM
reinstalling winXP on an existing dual boot system with winXP and FC4 grub not workin champion Fedora - Installation 3 02-13-2006 02:37 PM


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