LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 04-19-2015, 04:11 PM   #1
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
chroot install of arch fails, no mounted / in a chroot.


I normally install linux in linux with the use of a chroot environment before I ever boot a given install. I thought that I would try arch, but the base system fails to function in a chroot for installing packages, like a bootable linux kernel.

# pacman -Syu

Code:
:: Proceed with installation? [Y/n] Y
error: could not determine cachedir mount point /var/cache/pacman/pkg
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.
It seems that the mtab doesn't have the / entry, because it's a chroot. And because the host linux is debian based, it fails to install by other efforts due to the lack of a pacstrap or pacman in the deb repository. Futher complicated by the / of the chroot not being a direct mount point of a /dev/ location.

And the archlinux-bootstrap-2015.04.01-x86_64.tar.gz bundle doesn't have a bootable kernel in it, so I can't just slap it on a flash card and boot it either. I can kind of function in the chroot with adding users, changing passwords and basic admin setup steps, but if I can't install anything to the base system like a kernel, then the base system is kind of pointless for anything beyond a bash shell.

Steps to Date.
Code:
mount /dev/sdc3 /mnt/p3
mkdir /mnt/p3/install
cd /mnt/p3/install
wget -c http://mirror.jmu.edu/pub/archlinux/iso/2015.04.01/archlinux-bootstrap-2015.04.01-x86_64.tar.gz
tar -xzvpf archlinux-bootstrap-2015.04.01-x86_64.tar.gz
cd root.x86_64
cp /etc/resolv.conf ./etc/resolv.conf
nano ./etc/pacman.d/mirrorlist
mount -t proc none /mnt/p3/install/root.x86_64/proc
mount --rbind /dev /mnt/p3/install/root.x86_64/dev
export LANG=C; chroot /mnt/p3/install/root.x86_64 /bin/bash
Code:
pacman-key --init
pacman-key --populate archlinux
pacman -Syy
pacman -Syu
And then the previous mentioned error. There is no / in the mtab of the chroot. And there's no bootable kernel in the bootstrap tarball. So which came first, the chicken or the egg? Is the only way to install arch by running arch first?
 
Old 04-20-2015, 11:22 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137

Original Poster
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Some progress. After noticing the README in the root.x86_64/ base system. Using the arch-chroot in the sub-directories there of gave an environment where the previous mount point complaints didn't occur. But the README documentation appears dated as the URL provided is no longer valid.

https://wiki.archlinux.org/index.php...he_base_system

should be:

https://wiki.archlinux.org/index.php...e#Installation

And pacstrap /mnt base doesn't work (no pacman in the host distro), but pacman -S base seems to be equivalent while in the arch-chroot. So I should be on my way to a bootable SDHC card of arch for my laptop.
 
Old 04-20-2015, 04:33 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137

Original Poster
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Booted arch and ran it while. Played runescape < 3 hours before a hard X crash. I don't have that issue in debian, so back to the other bootable media. An interesting option though. Most of the debian xorg packages are xorg-... in arch. Like xorg-xclock, xorg-oclock, xorg-xinit. And bison provides yacc when compiling cwm from sources. The trackpad on my hp stream 11 didn't work, and while I don't use it, that and other debian is simpler (for me) stuff puts arch on a shelf for my current uses. To be fair, using openjdk instead of oracles java, and running the OS from SDHC card, so it might not be the distros influences that resulted in said issue(s). It was better at a few things once I got past my rusty admin-ish skillz. Like correctly detecting my monitors native resolutions by default. And live streaming (incoming) web content.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Arch Linux Installation Problems - arch-chroot, Grub2 Ronky Linux - Newbie 3 01-08-2013 05:22 PM
Chroot in shell scripts: Ensuring that subsequent commands execute within the chroot Kenny_Strawn Programming 2 05-21-2012 12:25 PM
Have SSH chroot access mounted drive blither Linux - Server 2 08-22-2010 08:41 PM
[SOLVED] in chroot compiled programs do not work in chroot graphit Linux From Scratch 2 04-11-2010 03:04 AM
VSFTPD Can't See Filesystems Mounted in a chroot khopsicker Linux - Software 5 12-22-2005 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration