You are not logged in.

#1 2019-12-27 17:57:07

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 770

[Solved] Can't chroot into fresh install after pacstrap install.

I'm trying to do a fresh install of arch - about the millionth I've done (give or take ;-p) , but I've never encountered this problem before. I've set up, formatted and mounted my partitions. I run "pacstrap /mnt base linux linux-firmware" and everything goes as expected (except that it says base, linux and firmware are already installed - how is that possible?) with no errors and there is no /bin directory created. I cannot therefore chroot into the install since it cannot run /bin/bash:

chroot: failed to run command ‘/bin/bash’: No such file or directory

Edit: I doubt this is the cause, but just for full information: I'm installing / onto a logical partition in an extended partition. I can't see why that would cause this issue, but, as I say, full information.

Last edited by phunni (2019-12-27 22:30:30)

Offline

#2 2019-12-27 19:16:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [Solved] Can't chroot into fresh install after pacstrap install.

try it with arch-chroot /usr/bin/bash, it should work.

What filesystem are you installing on? What version of the filesystem package?

Edit: Reread, sounds like you're installing into a previous installation without reformatting?

Last edited by Scimmia (2019-12-27 19:22:07)

Offline

#3 2019-12-27 19:23:43

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 770

Re: [Solved] Can't chroot into fresh install after pacstrap install.

There was a previous install, but the root was on the partition that is now an extended partition. I'm assuming it's not possible to partition an extended partition since it only contains logical partitions and not a filesystem - is that not right?

Filesystem is ext4.

Last edited by phunni (2019-12-27 19:25:06)

Offline

#4 2019-12-27 19:50:32

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: [Solved] Can't chroot into fresh install after pacstrap install.

Does /mnt/var/log/pacman.log contain entries from the previous install?

Offline

#5 2019-12-27 22:07:27

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 770

Re: [Solved] Can't chroot into fresh install after pacstrap install.

loqs wrote:

Does /mnt/var/log/pacman.log contain entries from the previous install?

Tragically the file doesn't exist - I really thought that might be the problem. I'll try clearing the logs anyway to see if that fixes it, but there's no sign of a pacman log.

Edit: wait! I was looking in /var/log - not /mnt/var/log. There was a pacman.log in there and I've deleted it and am trying again now...

Last edited by phunni (2019-12-27 22:08:52)

Offline

#6 2019-12-27 22:14:10

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 770

Re: [Solved] Can't chroot into fresh install after pacstrap install.

Nope - retying after removing the pacman.log and the pacman cache didn't help. There's still no /bin. There also doesn't appear to be a /usr/bin either now that I look closely. This install is screwed up...
I'm going to try unmounting and reformatting everything except my /home partition and see if that fixed anything.

Offline

#7 2019-12-27 22:30:10

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 770

Re: [Solved] Can't chroot into fresh install after pacstrap install.

Yup - doing all that seemed to fix it. Marking solved - even though I never did actualyl solve what was causing the problem...

Offline

Board footer

Powered by FluxBB