I would suggest doing the partitioning before installing XP so that XP doesn't end up confused by suddenly having another partition living alongside it but otherwise that looks like how to do it.
---- Jack Kramer Computer Systems Specialist University Relations, Michigan State University w: 517-884-1231 / c: 248-635-4955 From: "Raper, Jonathan - Eagle" <[email protected]<mailto:[email protected]>> Reply-To: NT System Admin Issues <[email protected]<mailto:[email protected]>> Date: Tue, 21 Dec 2010 10:19:13 -0500 To: NT System Admin Issues <[email protected]<mailto:[email protected]>> Subject: RE: sort of OT: using GRUB or LILO to boot windows XP Thanks Jack - I would hate to go backwards and use GRUB, but if GRUB2 is not going to work then I don't want to keep banging my head against the wall. Considering that GRUB2 can multiboot Linux and many other OSes, including Windows, it would seem to me that this SHOULD be doable. However, I’m a total newbie in the Linux world... I've done a little more surfing and came across this site, which talks about using grub-mkconfig to update grub.cfg. This site appears to be useful... https://wiki.archlinux.org/index.php/GRUB2#Bootloader_Installation So, my thoughts are as follows... 1. Install Windows XP on my CF card, formatting the partition as either NTFS or FAT32. 2. Upon the first reboot DURING XP installation (because XP won’t boot on removable media), boot from my Ubuntu 10.10 LiveCD 3. Create a small partition of say 100 Megs, formatted ext3, and resize the Windows partition accordingly 4. Run this command to mount the new partition: sudo mount /dev/sda1 /mnt (assuming sda1 is where the ext3 partition lives) 5. Run this command to actually install GRUB2: sudo grub-install /dev/sda --root-directory=/mnt 6. Verify the existence of /etc/default/grub and /etc/grub.d/*. 7. Run this command: grub-mkconfig -o /boot/grub/grub.cfg 8. Edit /etc/grub.d/40_custom to include this information # (0) Windows XP menuentry "Windows XP" { set root=(hd0) chainloader (hd0)+1 9. Hopefully end up with a grub.cfg that looks like this: # Config file for GRUB2 - The GNU GRand Unified Bootloader # /boot/grub/grub.cfg # DEVICE NAME CONVERSIONS # # Linux Grub # ------------------------- # /dev/fd0 (fd0) # /dev/sda (hd0) # /dev/sda1 (hd0,1) # # Timeout for menu set timeout=5 # Set default boot entry as Entry 0 set default=0 # (0) Windows menuentry "Windows XP" { set root=(hd0) chainloader +1 } 10.Reboot and hopefully see the Windows installation continue! Anything wrong/missing here? Jonathan L. Raper, A+, MCSA, MCSE Technology Coordinator Eagle Physicians & Associates, PA [email protected]<mailto:[email protected]> www.eaglemds.com -----Original Message----- From: Kramer, Jack [mailto:[email protected]] Sent: Tuesday, December 21, 2010 9:09 AM To: NT System Admin Issues Subject: Re: sort of OT: using GRUB or LILO to boot windows XP You're on the right track so far. According to the Ubuntu documentation GRUB2 isn't meant to have its grub.cfg edited by hand; instead, you're supposed to edit /etc/default/grub. I'm not 100% sure that file will still exist based on how you're doing your install but even if you edit it on the LiveCD while you're booted you only need to do it once. Once you execute "update-grub" your changes will be copied into the /boot/grub/grub.cfg. Here's the documentation I found: https://help.ubuntu.com/community/Grub2 I would also suggest thinking about maybe using Grub1 instead of Grub2 here since you may gain from being able to directly edit the menu.lst. ---- Jack Kramer Computer Systems Specialist University Relations, Michigan State University w: 517-884-1231 / c: 248-635-4955 On 12/21/10 3:28 AM, "Raper, Jonathan - Eagle" <[email protected]<mailto:[email protected]>> wrote: >Ok, I think I'm hitting all around it... > >from this link... (I'm using Ubuntu Live CD version 10.10, which means >GRUB2, not GRUB) > >https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD > > "Determine the partition with the Ubuntu installation. The fdisk >option "-l" is a lowercase "L"." > >Since I'm actually installing Windows first, there is no prior instance >of Ubuntu. So, is this where the creation of the 100 Meg Ext3 partition >comes into play that you referenced previously? > >I'm able to successfully execute the following commands on an ext3 >partition... > > sudo mount /dev/sda1 /mnt > > sudo grub-install /dev/sda --root-directory=/mnt > >...which dumps just under 200 files (a whopping 2 Megs of data) which >appear to be all of the files required to boot Linux. > >From here I assume that I need to modify the menu.cfg (GRUB2 does not >have menu.lst - it has menu.cfg instead) so that it points to my XP >installation, but what I've read is that it is not intended for this file >to be edited manually... > >Am I on the right track? Where do I go from here? > >Thanks, > >Jonathan L. Raper, A+, MCSA, MCSE >Technology Coordinator >Eagle Physicians & Associates, PA >www.eaglemds.com >[email protected]<mailto:[email protected]> >________________________________________ >From: Joseph L. Casale >[[email protected]<mailto:[email protected]>] >Sent: Monday, December 20, 2010 2:21 PM >To: NT System Admin Issues >Subject: RE: sort of OT: using GRUB or LILO to boot windows XP > >>Also, what files? (I'm truly a newb when it comes to Linux.) Can the 100 >>Meg partition for the grub files be after the Windows partition? > >https://help.ubuntu.com/community/WindowsDualBoot#Installing%20Windows%20A >fter%20Ubuntu > >Check that out, not exactly your situation, but close enough, it explains >the syntax which will get >you going... > >gl, >jlc > >~ Finally, powerful endpoint security that ISN'T a resource hog! ~ >~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ > >--- >To manage subscriptions click here: >http://lyris.sunbelt-software.com/read/my_forums/ >or send an email to >[email protected]<mailto:[email protected]> >with the body: unsubscribe ntsysadmin > > >Any medical information contained in this electronic message is >CONFIDENTIAL and privileged. It is unlawful for unauthorized persons to >view, copy, disclose, or disseminate CONFIDENTIAL information. This >electronic message may contain information that is confidential and/or >legally privileged. It is intended only for the use of the individual(s) >and/or entity named as recipients in the message. If you are not an >intended recipient of this message, please notify the sender immediately >and delete this material from your computer. Do not deliver, distribute >or copy this message, and do not disclose its contents or take any action >in reliance on the information that it contains. > >~ Finally, powerful endpoint security that ISN'T a resource hog! ~ >~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ > >--- >To manage subscriptions click here: >http://lyris.sunbelt-software.com/read/my_forums/ >or send an email to >[email protected]<mailto:[email protected]> >with the body: unsubscribe ntsysadmin > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ________________________________ Any medical information contained in this electronic message is CONFIDENTIAL and privileged. It is unlawful for unauthorized persons to view, copy, disclose, or disseminate CONFIDENTIAL information. This electronic message may contain information that is confidential and/or legally privileged. It is intended only for the use of the individual(s) and/or entity named as recipients in the message. If you are not an intended recipient of this message, please notify the sender immediately and delete this material from your computer. Do not deliver, distribute or copy this message, and do not disclose its contents or take any action in reliance on the information that it contains. ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
