You are not logged in.

#1 2009-01-19 11:47:06

b9anders
Member
Registered: 2007-11-07
Posts: 691

installing arch64 on a new partion from existing arch install?

I want to make an arch64 install to play with in addition to my current i686 install. I have created an ext4 partition and mounted it as /arch64.

I just want to check that what I am doing is right. Am I correct that the following procedure should install arch64 correctly on my system

1. Modify all links in pacman.conf to point to x86_64 instead of i686.
2. Uncomment the Rootdir line in pacman.conf and have it point to /arch64 instead of /
3. run pacman -Sy base
4. run pacman -S kernel26
5. edit fstab, rc.conf etc to my setup.
6. Add new setup in grub.
7. done.

I am thinking this should give me a base arch install on the new partition. Have I missed anything?

Offline

#2 2009-01-19 11:52:10

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: installing arch64 on a new partion from existing arch install?

For 2, you can use "-r" to set the root.

Have a look at this wiki page: http://wiki.archlinux.org/index.php/Ins … her_distro

Offline

#3 2009-01-19 12:11:45

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: installing arch64 on a new partion from existing arch install?

Re 1 - if your pacman.conf is as per the default, you will need to change the links in /etc/pacman.d/mirrorlist, not in pacman.conf itself. When I was doing this the other way around, I created mirrorlist.i686, which was basically my x86_64 mirrorlist and a bit of sed. And rather than change anything in your current system's pacman.conf, I'd suggest creating an alternative pacman.conf.64 and using pacman's --config flag.

Offline

#4 2009-01-19 12:26:54

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: installing arch64 on a new partion from existing arch install?

thanks guys. Nice pointers on the --config option and the mirrorlist. smile

Offline

#5 2009-01-19 12:38:34

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: installing arch64 on a new partion from existing arch install?

Ok, so I went ahead and ran

pacman -Sy base -r /arch64 --config /etc/pacman.conf.64

and I get:
error: scriptlet failed to execute correctly

on a lot of the packages (those who had scripts to run on install I presume). I'm at loss as to what happpened here?

Offline

#6 2009-01-19 13:55:46

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: installing arch64 on a new partion from existing arch install?

That is probably no good idea; the install-scripts ignore the -r flag and will **** up your current install. This is how I setup a chroot:

CHROOT=/arch64
mkdir -p $CHROOT/var/lib/pacman
pacman --root $CHROOT --sync --refresh
pacman --root $CHROOT --sync --noconfirm coreutils filesystem pacman bash

mount -o bind /dev/ $CHROOT/dev/
mount -t proc none $CHROOT/proc/
mount -t sysfs none $CHROOT/sys/

Now you can `chroot $CHROOT` and continue your installation from there.

Last edited by Spider.007 (2009-01-19 13:56:10)

Offline

#7 2009-01-19 14:09:04

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: installing arch64 on a new partion from existing arch install?

Spider.007 wrote:

pacman --root $CHROOT --sync --noconfirm coreutils filesystem pacman bash

scriptlets still fail running this command. Btw, missed this output at the bottom the first time around I ran pacman on this:

sh: /arch64/sbin/ldconfig: cannot execute binary file

Offline

#8 2009-01-19 14:23:08

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: installing arch64 on a new partion from existing arch install?

I googled a bit and found out that apparently 64-bit binaries can't run on a 32-bit system, although the opposite is the case.

So now, because I am getting stubborn and want this method to work, I am thinking: What if I [temporarily] install a 64-bit kernel in my 32-bit system? I expect stuff to fail here and there, but as long as I can boot in and install the arch64 system via the commandline, I'd be happy.

Terrible idea? Would I need other 64-bit packages just to make the kernel run?

Last edited by b9anders (2009-01-19 14:55:21)

Offline

#9 2009-01-20 10:49:50

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: installing arch64 on a new partion from existing arch install?

I installed a 64-bit kernel and it ran just as it should. The arch64 install was a success. smile

well, I have some trouble with hal and hotplugging but that's another issue.

Offline

#10 2009-04-22 05:59:16

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: installing arch64 on a new partion from existing arch install?

Hi, I'm interested in doing this, but with a twist.

My laptop currently has 32-bit Arch installed, with a separate /home partition and /boot partition. I'd like to install 64-bit Arch on another partition, and I see from this that I can't do it directly using chroot.

However, I currently have 64-bit Arch installed on another computer with proper SSH access and everything. Could I mount my empty partition on my laptop, use sshfs to mount the mount-point on my other computer, and do the setup from there?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#11 2009-04-22 06:06:50

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: installing arch64 on a new partion from existing arch install?

Please ignore this, I'm subscribing to this topic to be able to see any replies.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#12 2009-04-26 10:23:32

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: installing arch64 on a new partion from existing arch install?

Hi, anyone have any idea whether install via SSH is possible?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB