You are not logged in.

#1 2011-03-29 04:28:39

Tycon712
Member
From: North Carolina
Registered: 2010-07-13
Posts: 34
Website

Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

I have a hard drive that I have installed Windows XP on using UNetbootin.
However, when I turn on my computer and see the GRUB BIOS menu where I can select an OS, I don't see Windows XP or anything related to the hard drive.

How do I get the hard drive to be recognized by the BIOS so that I can run XP from the GRUB menu?

I have reformatted the hard drive using fdisk, setting the filesystem type to FAT32 (for Windows XP),
created the filesystem with mkfs, and made sure it mounted on startup with fsck:
fdisk /dev/sdb
mkfs -t vfat /dev/sdb1
fsck -f -y /dev/sdb1
Then, I used UnetBootin setting the iso image to an old XP iso I've had, and setting the drive to /dev/sdb1

What am I forgetting or doing wrong here?

Last edited by Tycon712 (2011-03-30 03:08:43)


"If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things."
-René Descartes

Offline

#2 2011-03-29 09:20:49

admiralspark
Member
From: Alaska, USA
Registered: 2011-01-07
Posts: 87

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

Maybe to edit the /boot/grub/menu.lst to have a windows entry? Yknow, the entry that's commented out at the bottom of the default file? And make sure the rootnoverify is set to the correct partition!
Use a livecd/liveusb to edit the menu if there's no linux there. Oh, and doesn't Unetbootin use syslinux? Where did grub come from?

Which makes me think this through again....how are you booting it? Are you trying to boot from an external harddrive? If not, again, why is grub showing up?


Team Ignition Kernel Developer
linux-ideapad developer/maintainer
Flame Kernel developer for Galaxy Nexus and Galaxy S3
Want a cheap, reliable VPS with AWESOME customer service?

Offline

#3 2011-03-29 12:26:12

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

Ok, first, UNetbootin was not designed to install Windows... When you're talking about "an old XP iso", do you mean a pre-installed Windows partition iso? If it's an installation iso, it won't work.

Then Grub and the BIOS are two different things. To add Windows to your Grub menu, do as admiralspark said (and "man grub" and/or look at the wiki...)

Offline

#4 2011-03-29 20:00:29

Tycon712
Member
From: North Carolina
Registered: 2010-07-13
Posts: 34
Website

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

Sorry about the confusion. What I meant was the startup menu (after you power the comp on) where you can select the different OS's. The iso is probably an installation iso, so I guess this puts the whole being able to boot from the hard drive at a halt.

I have edited the /boot/grub/menu.lst file to:
# (2) Windows
title Windows
rootnoverify (hd1,0)
makeactive
chainloader +1

Which made it bootable, but since the iso that I thought would work, isn't going to work, its not going to boot from the startup menu.

I've searched quite a bit on how I should go about making my external hard drive able to boot XP from the startup menu, but I must be dumb, because I can't find a simple guide online to do this. Could you guys point me in the right direction or give me pointers on how to make the external hard drive bootable with XP? Sorry if this annoys you; I hate asking people questions when there probably has already been a forum post on the subject.


"If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things."
-René Descartes

Offline

#5 2011-03-29 21:24:00

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

Being able to boot XP from the grub menu is easy, you've done the necessary changes already. What's missing now is... Windows itself smile. Windows installation is probably off-topic for the Arch Linux forum, and I'm not sure of the best way to do it... If you have an installation CD and a CD drive, you could set your BIOS to boot from your second HD and then install XP there. If you don't have a CD drive, you could use WinSetupFromUsb, but this tool requires a working Windows install itself...

Edit: the idea with setting the external HD as the boot drive is not to actually boot from it, but to make the Windows installer believe that it is the first HD... I'm not sure that it will work for an external drive, actually.

Last edited by stqn (2011-03-29 21:26:39)

Offline

#6 2011-03-29 22:44:56

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

If you install Windows after you have installed Arch, it would put the windows bootloader in the MBR thereby erasing grub. After installing windows, make sure you re-install grub to be able to boot into Arch.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2011-03-29 22:45:04

Tycon712
Member
From: North Carolina
Registered: 2010-07-13
Posts: 34
Website

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

I'm assuming this means I should restart, select "Windows" from the startup menu, insert a Windows CD (I just found my Windows 7 CD big_smile) and follow the installation instructions from Windows.
And this won't erase any of my data on my first HD that I have booted with Arch?


"If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things."
-René Descartes

Offline

#8 2011-03-29 22:47:33

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

only if you install it in the correct hard drive. as always be careful and backup everything that you think is important.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#9 2011-03-30 00:19:18

Tycon712
Member
From: North Carolina
Registered: 2010-07-13
Posts: 34
Website

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

Tried installing Windows 7 on my external HD, but it stopped and said that I cannot install Windows on a drive that is connected through USB and that I needed a NTFS file system for it.
I'll make a partition with a NTFS on the drive and try to install it again. Hopefully, it'll work this time.


"If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things."
-René Descartes

Offline

#10 2011-03-30 02:46:28

Tycon712
Member
From: North Carolina
Registered: 2010-07-13
Posts: 34
Website

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

Alright, so I think I'm going to give up on this idea,
unless someone can tell me how I can make the external hard drive bootable from the start menu if it has a NTFS (something required by Windows 7).
I've tried:

fsck -t ntfs /dev/sdb1

and it says "fsck: fsck.ntfs: not found". It's just another problem after another. And I thought I was so close to getting it to work.


"If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things."
-René Descartes

Offline

#11 2011-03-30 03:08:06

Tycon712
Member
From: North Carolina
Registered: 2010-07-13
Posts: 34
Website

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

Yeah, I tried the tip from the Grub wiki to make the Windows install think that it is on the first drive.
Didn't work.

Apparently Windows 7 can not be installed on a HD that is connected via USB:
"Windows cannot be installed on this disk. Setup does not support configuration of or installation to disks connected through a USB or IEEE 1394 port."
For lack of better words, I will mark this thread as SOLVED.

Arch Forums needs to start another trend other than the common use of "SOLVED". We ought to include "FAIL" and post that in the title when there is no solution.


"If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things."
-René Descartes

Offline

#12 2011-03-30 03:11:30

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

Make a bootable linux USB installation and then install Windows 7 on the USB drive using VirtualBox?

I haven't tried it.  It sounds ugly.  It might work.

Offline

#13 2011-03-30 12:29:52

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

You could of course copy your existing Arch Linux install to your USB disk and then install Windows on your internal disk...

(Before copying, add "usb" to the HOOKS list in /etc/mkinitcpio.conf and rebuild the initramfs - please see man pages and wiki for better information. Then boot from a live CD/USB and copy your Arch installation with "cp -ar" to your USB disk. Then fix the fstab on the new disk if necessary. Then add an entry to the grub menu on your original install so that you can check that you can boot from the external disk. If it works then you can install Windows on your internal disk and then boot again from a live CD to reinstall grub. I may be forgetting something or have it wrong somewhere, I have never done that.)

Or simpler: install both Windows and Linux on the internal disk. (You can use gparted to resize/move partitions.)
Or even better: don't install Windows. It's a pain.

Offline

#14 2011-03-30 16:38:51

Tycon712
Member
From: North Carolina
Registered: 2010-07-13
Posts: 34
Website

Re: Booting a Hard Drive (loaded with Win XP) from startup [SOLVED]

haha thanks stqn.

I think I'll just stick with Arch for the time being until I have some time this summer, when I don't have my college courses to worry about.
The reason why I wanted to have Windows bootable on my HD was that I needed (and still do) Windows so that I could install a version of Adobe's Creative Suite, which requires a lot of memory.
I didn't want to bloat my laptop with Windows and I'm not sure if Wine will let me run a version of CS smoothly.


"If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things."
-René Descartes

Offline

Board footer

Powered by FluxBB