Vista dual boot with Linux
Hello, I am trying to do a dual boot of Windows Vista and Backtrack (a Linux distro).
Ive searched the forums and I am still not sure what to do and if it will work as I am quite new to this stuff. 1. Is it possible with these OS's? 2. Very briefly how is it done or where can I find instructions? Thank you anyone John |
I have not done it myself, but I have read of many people doing it. There are two ways of doing it, and the first thing you need to do is decide which to use.
In one method, you install Backtrack's bootloader (probably GRUB, but a few distros still use LILO) onto the MBR and let it control the process when you boot. Some (many?) distros will automatically detect other OSes present and set this up for when you install. If not, google on the terms/phrases "dual boot" GRUB (or LILO), and "windows xp". If you have a Linux live CD and a floppy or USB stick handy, I would suggest first saving a copy of the existing MBR onto the removable medium so you can restore the existing MBR and be able to boot winXP again in case something goes wrong. To create a file with the existing MBR (do this before you install Backtrack! Hence doing it with a live CD.), as root: Code:
dd if=/dev/hda of=<path/filename you are saving to> bs=512 count=1 |
I managed to resize the c: partition in Vista to enable me to add a new partition although it only allows NTFS in disk management and Linux is FAT right?
Can this be changed in the backtrack install once its made NTFS in Vista? Cheers |
Where do I find the MBR on Vista so I can back it up?
|
Linux can use several different file systems. One of the common ones is ext3. Linux rarely, if ever, uses FAT for its own filesystem. When dual booting with MS systems, it is common to use an extra FAT32 partition for exchanging files between the two systems. (Historically it has been viewed as risky to write to an NTFS partition from Linux.)
The MBR is the first 512 bytes on the disk. It is not part of any partition. The dd command I gave in my first post will copy it. |
Quote:
To put the mbr boot code on a floppy: (assumes IDE drive---for SATA or SCSI, change hda to sda) dd if=/dev/hda of=/dev/fd0 bs=446 count=1 Running from live CD, I would first do fdisk -l to make sure how the drives are being seen by the OS. Quote:
|
Ive made one new partition in Vista so now I have 2.
I go into the Linux Backtrack installer and when I try to make partitions and perform other operations I get told there are no free sectors available and that the new drive is FAT16. Any ideas please. |
Solved the last problem - changed it to type 0 (empty).
Suppose I want to make the first partition of 3 (boot, swap and main partition), 50mb (boot) then if it says this: First cylinder (13344-19457, default 13344): What should I use for this. Next I have: Last cylinder or +size or +sizeM or +sizeK (13344-19457, default 13344): +50M? Cheers |
Yes. +50M would give a partition of (aprox) size 50 MB.
It sounds like you (or your installer) is using fdisk. That is a perfectly serviceable program, but if you would like something graphical (and less terse/more friendly) you could set your partitions up prior to your install from a live CD that had something like GParted or QTParted on it. KNOPPIX has QTParted (although I had some kind of a problem with it a few weeks ago -- I don't remember the details), and you can download a live CD for GParted (google on gparted). The choice is yours. :) |
Okay im using QTparted from the install CD i.e. boot up with CD in and run the OS off the CD and then go into QTParted.
If only I knew how to use it though. In Vista I make an extra partition to do stuff with in QTParted. I looked at a tutorial off of the backtrack2 site and the first stage of qtparted looked like this: number |partition |type|status|size|used space|start|end| 1 /dev/hda1 etc etc 2 /dev/hda-1 etc etc If I can get to this stage I can do it. What does the hda-1 mean - an extended partition? Cheers |
Forget my last post Ive solved that now.
The problem is that once I try to create the last partition I get this error: Must delete some partition and add an extended partition first. Ive got a compaq diagnostics partition that is getting in the way - if i got rid of this it would work - should I remove thsi i.e. is it safe? Any ideas? Cheers |
When changing size of ntfs windows partition to make free space for the backtrack partition it changes the windows partition to fat32 after committing, why is this?
Im using QTParted in backtrack2 to do this. |
Quote:
The extended partition itself takes up an entry in the primary partition table. Typically you will create 1 to 3 primary partitions with real content, and then add the extended partition to take up the rest of the disk. You can then add logical partitions to the extended partition at will. Note that once you add the extended partition, resizing and moving the other primary partitions can be quite difficult or impossible. Quote:
Quote:
EDIT: WRT NTFS being changed to FAT32, before you do anything rash, you might simply reboot first and make sure it really did change the partition. and didn't just get confused when it displayed the results. If, as I sugested, you want to find out what the real type of the filesystem is (not just id # in partition table), you can try mounting the partition from a live CD and using the mount command w/o parameters to see what Linux says it is. Just to be ultra-cautious, I would mount it read only (use "-o ro" with mount command). |
Okay actually got over this problem now.
I need to install grub package to the boot partition in any way possible. I have put it on USB and tried to install it that way, although i dont know the command. Any ideas what it might be? Also tried wget although cannot get a connection to the internet even though its detected the wireless/lan card. Cheers |
As chance would have it, I stumbled onto an article about Backtrack last night. Now I finally know what you are talking about! :) I also downloaded this PDF which discusses installing Backtrack to a HD. Is this the file that you have been following? If so, it appears to have the ability to install a bootloader to your MBR. I would think this would be easier than trying to do GRUB yourself. You can certainly use GRUB, but I may not be the best person to advise you how to do it from scratch. (I have used GRUB, but I am certainly no authority.)
I suspect, but am not sure that the Backtrack installer uses LILO instead of GRUB. That is not a problem if it leaves a copy of the /etc/lilo.conf it uses on the installed version. I hope it does, but can't be certain. |
All times are GMT -5. The time now is 04:21 AM. |