|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi!
I am running etch in a machine with two HDs. Etch is running in the master HD (hdc), the second HD (hdd), the slave, is empty. In the second hd (hdd) I need to install windows xp. I wonder how to do that in order to get a dual boot system, managed by grub. The bios let me define the HD from which the system boots. Now the bios is configured to boot from hdc, where etch (and grub) resides: hdc-hdd. Due that during the install of xp the system re-boots several times from the HD, I wonder if I can install xp on hdd simply inverting the boot sequence: hdd-hdc, and, after the installation of xp, inverting the sequence again: hdc-hdd, in order to boot with grub. If it is possible, I guess I still need to tell grub that there is another OS in the system. How can I do that? Thanks in advance for the , Marcelo -- Marcelo Chiapparini chiappa@oi.com.br -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Sun, Sep 30, 2007 at 09:41:48AM -0300, Marcelo Chiapparini wrote:
> > I am running etch in a machine with two HDs. Etch is running in the > master HD (hdc), the second HD (hdd), the slave, is empty. In the second > hd (hdd) I need to install windows xp. I wonder how to do that in order > to get a dual boot system, managed by grub. The bios let me define the > HD from which the system boots. Now the bios is configured to boot from > hdc, where etch (and grub) resides: hdc-hdd. Due that during the install > of xp the system re-boots several times from the HD, I wonder if I can > install xp on hdd simply inverting the boot sequence: hdd-hdc, and, > after the installation of xp, inverting the sequence again: hdc-hdd, in > order to boot with grub. > > If it is possible, I guess I still need to tell grub that there is > another OS in the system. How can I do that? > I thought that windows was a megalomaniac and would only work from the first hard drive of the first controller (hda). Don't know for sure since I haven't used Windows since 3.1. Doug. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Hi Pierre,
On Sun, 2007-09-30 at 17:15 +0200, Gargi wrote: > ----- Original Message ----- > From: "Douglas A. Tutty" <dtutty@porchlight.ca> > To: <debian-user@lists.debian.org> > Sent: Sunday, September 30, 2007 4:42 PM > Subject: [?? Probable Spam] Re: etch + xp > > > > On Sun, Sep 30, 2007 at 09:41:48AM -0300, Marcelo Chiapparini wrote: > >> > >> I am running etch in a machine with two HDs. Etch is running in the > >> master HD (hdc), the second HD (hdd), the slave, is empty. In the second > >> hd (hdd) I need to install windows xp. I wonder how to do that in order > >> to get a dual boot system, managed by grub. The bios let me define the > >> HD from which the system boots. Now the bios is configured to boot from > >> hdc, where etch (and grub) resides: hdc-hdd. Due that during the install > >> of xp the system re-boots several times from the HD, I wonder if I can > >> install xp on hdd simply inverting the boot sequence: hdd-hdc, and, > >> after the installation of xp, inverting the sequence again: hdc-hdd, in > >> order to boot with grub. > >> > >> If it is possible, I guess I still need to tell grub that there is > >> another OS in the system. How can I do that? > >> > > > > I thought that windows was a megalomaniac and would only work from the > > first hard drive of the first controller (hda). > > > > Don't know for sure since I haven't used Windows since 3.1. > > > > Doug. > > Nope. XP will boot from another partition too. hda1 or sda1 is not a option > for it. But it will install its own bootmanager into the mbr. So save your > mbr first with dd (BEFORE you install XP!!!!). You can put the etch > bootimage onto your hard disk and call it by the XP bootloader by setting a > line to the XP boot.ini (save it on a usb-stick e.g. to transfer it after > the XP is installed). But I want to install XP in another disk, different from which etch is installed. So XP will install its own bootmanager into the mbr of this different disk. Am I wright? Remember that I can tell the bios from what disk the system boots. I gues I can use this in order to make the system boot from the second disk, where XP is being installed, making XP ignore the disk where etch is installed. > If you have a SATA disc: > dd if=/dev/sda of=/home/[your username]/etch.lin bs=512 count=1 > Both disk are ATA, not SATA. The line is the same in this case? > Insert this line into your xp boot.ini (if XP uses the partition as C:\ ): > > c:\etch.lin="Debian Etch" > > That gives you a new bootoption in your XP bootloader. From there you can > start Etch again and repair the grub bootloader if you want to stick to > grub. Thank you! Marcelo -- Marcelo Chiapparini chiappa@oi.com.br -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
----- Original Message ----- From: "Douglas A. Tutty" <dtutty@porchlight.ca> To: <debian-user@lists.debian.org> Sent: Sunday, September 30, 2007 4:42 PM Subject: [?? Probable Spam] Re: etch + xp > On Sun, Sep 30, 2007 at 09:41:48AM -0300, Marcelo Chiapparini wrote: >> >> I am running etch in a machine with two HDs. Etch is running in the >> master HD (hdc), the second HD (hdd), the slave, is empty. In the second >> hd (hdd) I need to install windows xp. I wonder how to do that in order >> to get a dual boot system, managed by grub. The bios let me define the >> HD from which the system boots. Now the bios is configured to boot from >> hdc, where etch (and grub) resides: hdc-hdd. Due that during the install >> of xp the system re-boots several times from the HD, I wonder if I can >> install xp on hdd simply inverting the boot sequence: hdd-hdc, and, >> after the installation of xp, inverting the sequence again: hdc-hdd, in >> order to boot with grub. >> >> If it is possible, I guess I still need to tell grub that there is >> another OS in the system. How can I do that? >> > > I thought that windows was a megalomaniac and would only work from the > first hard drive of the first controller (hda). > > Don't know for sure since I haven't used Windows since 3.1. > > Doug. Nope. XP will boot from another partition too. hda1 or sda1 is not a option for it. But it will install its own bootmanager into the mbr. So save your mbr first with dd (BEFORE you install XP!!!!). You can put the etch bootimage onto your hard disk and call it by the XP bootloader by setting a line to the XP boot.ini (save it on a usb-stick e.g. to transfer it after the XP is installed). If you have a SATA disc: dd if=/dev/sda of=/home/[your username]/etch.lin bs=512 count=1 Insert this line into your xp boot.ini (if XP uses the partition as C:\ ): c:\etch.lin="Debian Etch" That gives you a new bootoption in your XP bootloader. From there you can start Etch again and repair the grub bootloader if you want to stick to grub. cu Pierre -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On Sun, 2007.09.30 13:14, Marcelo Chiapparini wrote:
> But I want to install XP in another disk, different from which etch is > installed. So XP will install its own bootmanager into the mbr of this > different disk. Am I wright? Remember that I can tell the bios from what > disk the system boots. I gues I can use this in order to make the system > boot from the second disk, where XP is being installed, making XP ignore > the disk where etch is installed. Windows XP will overwrite the MBR of the first drive listed by the BIOS (the one that is booted), so set the BIOS to boot from whatever drive you want Windows to replace the MBR of. When you're done installing, switch it back, boot Debian, and set up grub to boot Windows with 'chainload'. Back up your MBR first though. And: when I set up grub to boot Windows once for someone else, I found grub's 'hide' command and used it to hide the Debian partitions, thinking that the less Windows saw, the better. But Windows (XP), when those partitions were 'hidden' by grub, changed the partition types to Amoeba (whatever that is) and then grub would give an error on the next boot. Of course, problems like that should be expected when running Windows on a system. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFG/+9k9XC8Sh1vpNARAuCOAJ9N4PABL9ugoUIh84P75pbV2+rIrwC fUPLi Gkomecm4EiecxDUjtln83fg= =9y0B -----END PGP SIGNATURE----- |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
> Hi Pierre, >> > On Sun, Sep 30, 2007 at 09:41:48AM -0300, Marcelo Chiapparini wrote: >> >> >> >> I am running etch in a machine with two HDs. Etch is running in the >> >> master HD (hdc), the second HD (hdd), the slave, is empty. In the >> >> second >> >> hd (hdd) I need to install windows xp. I wonder how to do that in >> >> order >> >> to get a dual boot system, managed by grub. The bios let me define the >> >> HD from which the system boots. Now the bios is configured to boot >> >> from >> >> hdc, where etch (and grub) resides: hdc-hdd. Due that during the >> >> install >> >> of xp the system re-boots several times from the HD, I wonder if I can >> >> install xp on hdd simply inverting the boot sequence: hdd-hdc, and, >> >> after the installation of xp, inverting the sequence again: hdc-hdd, >> >> in >> >> order to boot with grub. >> >> >> >> If it is possible, I guess I still need to tell grub that there is >> >> another OS in the system. How can I do that? >> >> >> > >> > I thought that windows was a megalomaniac and would only work from the >> > first hard drive of the first controller (hda). >> > >> > Don't know for sure since I haven't used Windows since 3.1. >> > >> > Doug. >> >> Nope. XP will boot from another partition too. hda1 or sda1 is not a >> option >> for it. But it will install its own bootmanager into the mbr. So save >> your >> mbr first with dd (BEFORE you install XP!!!!). You can put the etch >> bootimage onto your hard disk and call it by the XP bootloader by setting >> a >> line to the XP boot.ini (save it on a usb-stick e.g. to transfer it after >> the XP is installed). > > But I want to install XP in another disk, different from which etch is > installed. So XP will install its own bootmanager into the mbr of this > different disk. Am I wright? Remember that I can tell the bios from what > disk the system boots. I gues I can use this in order to make the system > boot from the second disk, where XP is being installed, making XP ignore > the disk where etch is installed. XP will install it into the Master Boot Record. That's the one on the first disc who is to boot. Changing the boot priority or the order of the disk could cause troubles. You wrote, that you are Using the first IDE disc as hdc Normally the first disc is hda, so have you a DVD Rom or something like it connected as primary master? If XP will write its bootloader onto the mbr of the 2nd disc if it is remapped by the bios I don't now. It is a risk to lose your bootmanager on the first disc if windows won't get the trick. Therefore I would save the old mbr for any evil case. >> If you have a SATA disc: >> dd if=/dev/sda of=/home/[your username]/etch.lin bs=512 count=1 >> > > Both disk are ATA, not SATA. The line is the same in this case? primary master is hda primary slave hdb secondary master hdc secondary slave hdd If it is a primary master, the line is dd if=/dev/hda of=/home/[your username]/etch.lin bs=512 count=1 >> Insert this line into your xp boot.ini (if XP uses the partition as >> C:\ ): >> >> c:\etch.lin="Debian Etch" >> >> That gives you a new bootoption in your XP bootloader. From there you can >> start Etch again and repair the grub bootloader if you want to stick to >> grub. > > Thank you! No problem ![]() cu Pierre -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
if you lose your MBR, I think the easiest way to recover it
is booting from debian cd in rescue mode type "rescue" before installation starts then go to console, mount your hd, chroot to it and re-install grub $ mount /dev/hdc1 /mnt # I'm guessing that it's hdc1 where root ( / ) is. $ cd /mnt $ chroot . $ grub-install /dev/hdc ctrl + alt + del your done! hint: you will probably lose your MBR, like Douglas sad: windows is megalomaniac On 9/30/07, Owen Heisler <owenh000@gmail.com> wrote: > > On Sun, 2007.09.30 13:14, Marcelo Chiapparini wrote: > > But I want to install XP in another disk, different from which etch is > > installed. So XP will install its own bootmanager into the mbr of this > > different disk. Am I wright? Remember that I can tell the bios from what > > disk the system boots. I gues I can use this in order to make the system > > boot from the second disk, where XP is being installed, making XP ignore > > the disk where etch is installed. > > Windows XP will overwrite the MBR of the first drive listed by the BIOS > (the > one that is booted), so set the BIOS to boot from whatever drive you want > Windows to replace the MBR of. When you're done installing, switch it > back, > boot Debian, and set up grub to boot Windows with 'chainload'. > > Back up your MBR first though. And: when I set up grub to boot Windows > once > for someone else, I found grub's 'hide' command and used it to hide the > Debian > partitions, thinking that the less Windows saw, the better. But Windows > (XP), > when those partitions were 'hidden' by grub, changed the partition types > to > Amoeba (whatever that is) and then grub would give an error on the next > boot. > Of course, problems like that should be expected when running Windows on a > system. > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFG/+9k9XC8Sh1vpNARAuCOAJ9N4PABL9ugoUIh84P75pbV2+rIrwC fUPLi > Gkomecm4EiecxDUjtln83fg= > =9y0B > -----END PGP SIGNATURE----- > > -- Henrique G. Abreu henrique@turbokit.com.br |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
Marcelo Chiapparini wrote:
> Hi! > > I am running etch in a machine with two HDs. Etch is running in the > master HD (hdc), the second HD (hdd), the slave, is empty. In the second > hd (hdd) I need to install windows xp. I wonder how to do that in order > to get a dual boot system, managed by grub. The bios let me define the > HD from which the system boots. Now the bios is configured to boot from > hdc, where etch (and grub) resides: hdc-hdd. Due that during the install > of xp the system re-boots several times from the HD, I wonder if I can > install xp on hdd simply inverting the boot sequence: hdd-hdc, and, > after the installation of xp, inverting the sequence again: hdc-hdd, in > order to boot with grub. > > If it is possible, I guess I still need to tell grub that there is > another OS in the system. How can I do that? > I am running XP on VMware with Sid as host and I must say it runs as if it is running by itself with the advantage that you don't have to reboot the PC. The only disadvantage I note is that you can use USB devices but no USB streaming devices, like USB modems. Hugo -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
Marcelo Chiapparini wrote:
> > But I want to install XP in another disk, different from which etch is > installed. So XP will install its own bootmanager into the mbr of this > different disk. Am I wright? Remember that I can tell the bios from what > disk the system boots. I gues I can use this in order to make the system > boot from the second disk, where XP is being installed, making XP ignore > the disk where etch is installed. > The safest way to do this: Disconnect your disk with linux (hdc) Install windows as you normally would on your other hard disk (hdd). The windows installer will write its boot loader onto the master boot record of hdd. After windows is installed and working, reconnect your linux disk (hdc). Ensure that the boot order in bios is set to boot from hdc. Boot into linux, edit '/boot/grub/menu.lst' and add an entry for windows: title Microsoft Windows XP Professional root (hd1,0) savedefault makeactive map (hd0) (hd1) map (hd1) (hd0) chainloader +1 The 'map' lines are required because windows can only boot from the first hard disk. HTH, rajkiran -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
On Tue, 2007.10.02 05:10, Raj Kiran Grandhi wrote:
> The safest way to do this: > > Disconnect your disk with linux (hdc) > > Install windows as you normally would on your other hard disk (hdd). The > windows installer will write its boot loader onto the master boot record of > hdd. > > After windows is installed and working, reconnect your linux disk (hdc). > > Ensure that the boot order in bios is set to boot from hdc. Boot into > linux, edit '/boot/grub/menu.lst' and add an entry for windows: > > title Microsoft Windows XP Professional > root (hd1,0) > savedefault > makeactive > map (hd0) (hd1) > map (hd1) (hd0) > chainloader +1 > > The 'map' lines are required because windows can only boot from the first > hard disk. If I recall correctly, the map commands are not necessary with Windows XP: it can be located on another drive than the first. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHAZPB9XC8Sh1vpNARAsnmAJwL/p5lQKjhjvVvSpuAATVwQq1jgACgury9 1MD8GMSGt04LcdBgwzaXe7k= =Bb+5 -----END PGP SIGNATURE----- |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
On Tue, 2007-10-02 at 05:10 +0530, Raj Kiran Grandhi wrote:
> Marcelo Chiapparini wrote: > > > > But I want to install XP in another disk, different from which etch is > > installed. So XP will install its own bootmanager into the mbr of this > > different disk. Am I wright? Remember that I can tell the bios from what > > disk the system boots. I gues I can use this in order to make the system > > boot from the second disk, where XP is being installed, making XP ignore > > the disk where etch is installed. > > > > The safest way to do this: > > Disconnect your disk with linux (hdc) > > Install windows as you normally would on your other hard disk (hdd). The > windows installer will write its boot loader onto the master boot record > of hdd. > > After windows is installed and working, reconnect your linux disk (hdc). > > Ensure that the boot order in bios is set to boot from hdc. Boot into > linux, edit '/boot/grub/menu.lst' and add an entry for windows: > > title Microsoft Windows XP Professional > root (hd1,0) > savedefault > makeactive > map (hd0) (hd1) > map (hd1) (hd0) > chainloader +1 > > The 'map' lines are required because windows can only boot from the > first hard disk. Thank you! My brother told me to do the some thing. Your information on how to tell grub to discover XP is really valuable. Regards Marcelo > HTH, > rajkiran > > -- Marcelo Chiapparini chiappa@oi.com.br -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#12 |
|
Messages: n/a
Hébergeur: |
On Tue, 2007-10-02 at 05:10 +0530, Raj Kiran Grandhi wrote:
> Marcelo Chiapparini wrote: > > > > But I want to install XP in another disk, different from which etch is > > installed. So XP will install its own bootmanager into the mbr of this > > different disk. Am I wright? Remember that I can tell the bios from what > > disk the system boots. I gues I can use this in order to make the system > > boot from the second disk, where XP is being installed, making XP ignore > > the disk where etch is installed. > > > > The safest way to do this: > > Disconnect your disk with linux (hdc) > > Install windows as you normally would on your other hard disk (hdd). The > windows installer will write its boot loader onto the master boot record > of hdd. > > After windows is installed and working, reconnect your linux disk (hdc). > > Ensure that the boot order in bios is set to boot from hdc. Boot into > linux, edit '/boot/grub/menu.lst' and add an entry for windows: > > title Microsoft Windows XP Professional > root (hd1,0) > savedefault > makeactive > map (hd0) (hd1) > map (hd1) (hd0) > chainloader +1 > > The 'map' lines are required because windows can only boot from the > first hard disk. Raj, I followed your advice step by step, and now I have a dual boot system, etch + xp, which works pretty well. Thanks a lot! Marcelo -- Marcelo Chiapparini chiappa@oi.com.br -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
![]() |
| Outils de la discussion | |
|
|