You are not logged in.

#1 2012-02-01 00:57:47

akumixx
Member
Registered: 2011-05-03
Posts: 59

[Solved] Installing from arch>initcpio==> ERROR: /dev must be mounted!

Maybe its ok in this case

sudo pacman -Su --noconfirm base sudo mc -r ${new_arch}

But here

cd ${new_arch}/dev 
sudo rm console ; sudo mknod -m 600 console c 5 1 
sudo rm null ; sudo mknod -m 666 null c 1 3 
sudo rm zero ; sudo mknod -m 666 zero c 1 5
sudo mount -t proc proc ${new_arch}/proc
sudo mount -t sysfs sys ${new_arch}/sys
sudo mount -o bind /dev ${new_arch}/dev
sudo chroot ${new_arch} /bin/bash

It should be ready and /dev is mounted with a size of 10MB (when you enter to the dir)
but
mkinitcpio -p linux
==> ERROR: /dev must be mounted!

I got not word from IRC and google shows one russian page it makes dificult sense what google translated...
It is by the arch tutorial
https://wiki.archlinux.org/index.php/In … l_the_core

Last edited by akumixx (2012-02-01 17:36:16)

Offline

#2 2012-02-01 03:48:25

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved] Installing from arch>initcpio==> ERROR: /dev must be mounted!

The only thing I can think of is that you bind mounted an empty /dev into the chroot. You're free to explicitly mount it as devtmpfs (its a singleton in the kernel anyways):

mount -t devtmpfs udev $new_arch/dev

it'd be useful to look at the output of 'findmnt' from outside the chroot when it's not working...

Offline

#3 2012-02-01 17:35:05

akumixx
Member
Registered: 2011-05-03
Posts: 59

Re: [Solved] Installing from arch>initcpio==> ERROR: /dev must be mounted!

Over the night before sleep, I realized the error must be produced by the os I am using.
It is live archbang, I boot it unusual way. Its not capable to build image for itself, also not for chroot.
I have many packages installed, I think it should rather be mounted instead of installed.
There was another error, terminal emulator did not load.
But today I just turn on computer and tryed to build in archbang , it worked. I tryed chroot also, it worked too.
Termial works too.
It must have been some error while using the operating system...

So the error was made by the operating system,
reboot was needed to have its userspace cleaner and it worked.

[Solved]

Offline

Board footer

Powered by FluxBB