You are not logged in.

#1 2010-05-16 11:16:52

davidcarvalho
Member
Registered: 2010-04-20
Posts: 21

Arch and windows dual boot. [SOLVED]

Hey archlinux..
First of all let me say that the best thing that I have ever done on a computer is install Arch.
I am enjoying myself learning stuff.

But now i need to dual boot arch with windows. The problem being that I used autoprepare disks while booting arch and now i cant resize my partitions to give me another disk to boot windows.
So now I need a way to resize /dev/sd4 which is 460 Gb by being anle to give windows about 30GB from it. Is it possible without any data corruption. I am relatively new to linux. So please help. I am still trying to find answers on google.....

Last edited by davidcarvalho (2010-05-21 10:32:02)

Offline

#2 2010-05-16 11:39:08

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Arch and windows dual boot. [SOLVED]

Welcome.

I assume your partition scheme is:
sda1 boot
sda2 swap
sda3 root
sda4 home

Although it's generally possible to resize a partition in this case you can't. Msdos partition tables only allow four primary partitions.

1, the simple solution) delete one partition (swap) and replace it with a windows partition by resizing with Gparted/Parted Magic. You'd have to pass on using swap from then on.

2, more work but more flexibility) backup your files in /home and delete it. Delete the swap partition, too. Now create a new partition for windows as well as an extended partition. Create a new /home and swap within the new extended partition. Copy back your files to the new home and adjust /etc/fstab.

Regards,
demian


no place like /home
github

Offline

#3 2010-05-16 12:53:14

davidcarvalho
Member
Registered: 2010-04-20
Posts: 21

Re: Arch and windows dual boot. [SOLVED]

Hey damian,
Thanks very much for the prompt reply. I decided to take the second option. So this is what i did. i tarred scped home to /root. But now i cant delete /home obviously because its mounted. Please tell how to go about it from here. I am assuming that i cant use gparted. and i cannot delete a partition with fdisk

Offline

#4 2010-05-16 13:17:30

jurkan
Member
From: Germany
Registered: 2010-04-03
Posts: 23

Re: Arch and windows dual boot. [SOLVED]

You can't resize partitions if they are mounted - and if your root isn't mounted, you can't use your system. You will have to use a live cd of your choice to do this (it should already contain gparted/parted or sth. similar or it should at least be "installable" via pacman or similar tools).

Offline

#5 2010-05-16 15:50:06

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Arch and windows dual boot. [SOLVED]

Yeah, you should download Parted Magic or Gparted, burn it to disc and boot from it.
Although i prefer command-line and cli, resizing is probably done best with GUI.


no place like /home
github

Offline

#6 2010-05-20 03:47:49

davidcarvalho
Member
Registered: 2010-04-20
Posts: 21

Re: Arch and windows dual boot. [SOLVED]

hey arch,
so this is what i did:
used gparted and configures my hard drive as follows:

sda1--> windows -->boot
sda2--> extended
     sda5--> boot
     sda6--> root
     sda7--> swap
     sda8-->home

then installed xp on sda1 hd(0,0)
it worked fine.
then installed arch with boot at sda5.
but the grub does not load at start up.
i have configured everything as the wiki.
just to check i even made sda5 as boot but then system does not detect a boot partition. what did i do wrong?
this is my windows entry---

# (1) Windows
title Windows
rootnoverify (hd0,0)
#makeactive
chainloader +1

arch i have configured to boot at hd(0,4) as sda5 is /boot

Offline

#7 2010-05-20 10:25:07

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Arch and windows dual boot. [SOLVED]

You have to install GRUB into the MBR of your harddrive. Boot into live-cd again and do the following:
mount /dev/sda6 /mnt
mount /dev/sda5 /mnt/boot
grub-install --root-directory=/mnt /dev/sda

Regards,
demian


no place like /home
github

Offline

#8 2010-05-20 11:21:41

davidcarvalho
Member
Registered: 2010-04-20
Posts: 21

Re: Arch and windows dual boot. [SOLVED]

thanks demian..
you are brilliant...

Offline

#9 2010-05-20 14:41:39

davidcarvalho
Member
Registered: 2010-04-20
Posts: 21

Re: Arch and windows dual boot. [SOLVED]

hey demian,
i tried exactly what you said and it errors saying usage incorrect

Offline

#10 2010-05-21 10:31:09

davidcarvalho
Member
Registered: 2010-04-20
Posts: 21

Re: Arch and windows dual boot. [SOLVED]

hey,
So this is what I did. I re installed arch and this time during "grub installation" I installed grub on /dev/sda and not on /dev/sda5(which )
After this it worked very well. No issues. Windows boots without any error too. But I am still not sure what to do exactly when I have to re-install Windows. But that is a problem for another day. For now Solved...
Thanks you everyone.

Offline

#11 2010-05-21 10:46:28

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Arch and windows dual boot. [SOLVED]

still not sure what to do exactly when I have to re-install Windows.

After reinstalling windows, just reinstall grub, for example from an arch live cd.

Offline

#12 2010-05-21 14:42:57

davidcarvalho
Member
Registered: 2010-04-20
Posts: 21

Re: Arch and windows dual boot. [SOLVED]

hey hokasch,
Thanks for replying. as you can see from above I could not re-install grub.. that is the problem

Offline

#13 2010-05-21 15:33:34

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Arch and windows dual boot. [SOLVED]

Well, afaik grub is not broken and you should be able to install it.

davidcarvalho wrote:

i tried exactly what you said and it errors saying usage incorrect

Next time, just follow up on the "usage incorrect" part - more information about installing grub can be found in the almighty Wiki.

Last edited by hokasch (2010-05-21 15:34:15)

Offline

#14 2010-05-21 15:59:40

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Arch and windows dual boot. [SOLVED]

Glad you got it right this time wink

You must have misstyped though.
The line

grub-install --root-directory=/mnt /dev/sda

is correct.

Last edited by demian (2010-05-21 16:00:01)


no place like /home
github

Offline

#15 2010-05-24 11:30:10

davidcarvalho
Member
Registered: 2010-04-20
Posts: 21

Re: Arch and windows dual boot. [SOLVED]

hey demian,
nope. I made sure there were no typos.  For some reason it just would not work. Could this be because my /boot was on a logical partition? That is what I am wondering atm.

Last edited by davidcarvalho (2010-05-24 11:31:12)

Offline

#16 2010-05-24 15:09:28

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Arch and windows dual boot. [SOLVED]

wiki wrote:

Alternate method (grub-install)
Tip: This procedure is known to be less reliable, the recommended method is to use the GRUB shell.

GRUB will indicate whether it successfully installs. If it does not, you will have to use the GRUB shell method.

Offline

Board footer

Powered by FluxBB