Linux - GeneralThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Now what I need to do is install XP to test something, and I may just keep it for those games that don't work with CrossOver and VirtualBox.
But...... I have the maximum amount of partitions allowed. Both XP and Gparted says that. (All of the above partitions are primary ones.)
So what I want to do is move the boot from /dev/hda2 to the root, /dev/hda3. But I don't know how to do this. Is there a simple way of just reinstalling Grub maybe? Or a few files to edit to point to the /dev/hda3/boot?
(I also tried to install XP on another HD, but it says it need to write to hda and there where no usable partitions. so I am not going to bother with doing it that way, XP is not the brightest operating system.)
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 220.127.116.11, KDE 3.5.8 and KDE 4.0 beta, Plu
Since all partitions are Primary then no addtional partitions can be added. Is ther still space not partitioned on the drive?
If there are 3 primary partitions then the last one would be an extended partition where logical partitions can be created in. The limit I do not know.
Of course XP really loves the primary first partition of the first drive. But if you install the second drive by itself and install XP. After the install put the first drive back in as the master and the windows as slave. Then for a grub option use something like this to swap drives ids on boot of XP.
map (hd0,0) (hd0,2)
map (hd0,2) (hd0,0)
Or leave the XP as master drive and linux as slave. Using a boot disc re install grub to the master boot record of the new drive. Edit /etc/fstab and change drive ids to match the new setup. /dev/hda2 to /dev/hdb2. Also edit grub.conf file. It would be easier to create a /boot on the new drive and copy the contents of the old /boot to the new /boot. Again make fstab and grub are id'ed correctly.
I would doubt moving an average /boot would free enough space for XP.
Probably don't need to anyway. Install Virtualbox in Linux, and run XP as the guest - that way it sees just the (virtual) disk you define for it.
Works fine - if you have enough space.
I tried sudo umount /boot in the terminal, I also tried sudo umount /dev/hda2 with the same result. It is telling me the device is busy. Gparted won't let me unmount it either.
I hope you don't mean the Gparted that is installed on your hard disk. It's not a good idea to edit a mounted system and, luckily enough, it often produces only warnings and doesn't do anything. The best you can do is either use a gparted livecd or do the editing from another system on your computer (providing you have more than one installed, that is).
Everything I tried was not working. I have no idea why, but it is probably due to user error, lol.
So I did it my way.
I used the Gparted live cd and resized hdb and put aside 10G(fat32) for XP, while keeping hdb1 the same (it is where my /home is,) XP=hdb2.
I went into my bios and switched the auto for hda and SATA off. Tested it by booting and there was nothing to boot from hdb, so all was well so far.
So I rebooted with the XP installation disk in. I tried to install it on the fat32 I set up with gparted but it didn't want to do that, so I did a quick format with the ntfs file system and installed it. Before when I didn't turn off anything in the bios and tried to install XP on hdb or the SATA partition it kept telling me it had to write to hda and it couldn't, it wanted me to format it first, (NOT!!!) But this time it worked even though XP did pick up all the HD's and partitions. So I hoped it wouldn't rewrite the MBR....... But XP did, have I mentioned today how much XP annoy's me?!!!
So I booted the Ubuntu 7.04 installation (livecd) disk. I opened the terminal and type in "sudo grub" grub> came up. So I then typed in where my /boot was, which was "root (hdo,1)" and then enter. After that I typed in "setup (hd0)"
It reinstalled grub and all is fine. All I have to do is add XP to fstab and menu.lst.
So /boot stays where it is and XP is now installed.
I found a way to work around the problem I am having until I can find, if I can find, a better solution.
What happened was when I disabled HDA and SATA in the BIOS XP completely installed in HDB as it should (HDB is the slave and HDA is the master.)
I added this to grub,
title Windows XP
I also tried it these ways,
title Windows XP
title Windows XP
title Windows XP
But no matter what grub would not boot XP. It said starting up and it would just hang there.
So I went into the bios (F1) and changed the boot order so that the slave, HDB where XP is, would boot first and then XP booted fine. So for now I have a boot menu in the BIOS, the default setting is set to boot the master (hda) with grub. If I want to boot XP i have to hit (esc) when I start the computer so it brings up the bios boot menu. From there I can choose to boot the slave, hdb, with XP.
It works but I would like to get this so Grub does it all. Anyone have any ideas? I won't be using XP that much so it is not a huge deal. I would just like to figure this out.
Also can anyone explain to me what I did wrong or missed when I installed XP this way?