Post here if you are a new Porteus member and you're looking for some help.
-
Liquidpaper
- White ninja

- Posts: 20
- Joined: 15 Oct 2021, 16:32
- Distribution: slackware
Post#1
by Liquidpaper » 01 Nov 2021, 15:13
Hi,
I am trying to chroot from porteus to a slack VM client over PXE and I mounted:
Code: Select all
mount /dev/sda1 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /dev/pts /mnt/dev/pts
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt /bin/bash
chroot: failed to run command '/bin/bash': no such file or directory
I check /bin/bash and *bash is there
Did I miss something? I did that with ubuntu live and every time worked flawlessly. Thanks, guys!
Last edited by
Liquidpaper on 02 Nov 2021, 15:19, edited 2 times in total.
Liquidpaper
-
Ed_P
- Contributor

- Posts: 8912
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#2
by Ed_P » 01 Nov 2021, 21:39
FWIW
Code: Select all
guest@porteus:~$ chroot /bin/bash
chroot: cannot change root directory to '/bin/bash': Not a directory
guest@porteus:~$ chroot /mnt /bin/bash
chroot: cannot change root directory to '/mnt': Operation not permitted
guest@porteus:~$
Ed_P
-
Liquidpaper
- White ninja

- Posts: 20
- Joined: 15 Oct 2021, 16:32
- Distribution: slackware
Post#3
by Liquidpaper » 02 Nov 2021, 15:24
thanks for reproducing it, Ed. Firstly you do not have a jail /bin/bash to go in so the error is legitimate, secondly based on first + you do not have a mounted point /mnt and lastly, you are not root, legitimate output again.
Liquidpaper
-
beny
- Full of knowledge

- Posts: 2255
- Joined: 02 Jan 2011, 11:33
- Location: italy
Post#4
by beny » 02 Nov 2021, 17:49
this is what i use for the mount of dd image for the software upgrade:/mnt/arch is only a directory that i use for... slackware environment
mount -o bind /proc /mnt/arch/proc
mount -o bind /sys /mnt/arch/sys
mount -o bind /dev /mnt/arch/dev
mount -o bind /tmp /mnt/arch/tmp
mount --bind /etc/resolv.conf /mnt/arch/etc/resolv.conf
chroot /mnt/arch /bin/bash -l
beny
-
Liquidpaper
- White ninja

- Posts: 20
- Joined: 15 Oct 2021, 16:32
- Distribution: slackware
Post#5
by Liquidpaper » 02 Nov 2021, 21:22
I know gents, I used hundreds of times before and this is the first time when fails. Actually this is a machine (host) I never chrooted from before. But machine should be kind of neutral (of course x64) because I am in a VBOX.
Liquidpaper
-
Liquidpaper
- White ninja

- Posts: 20
- Joined: 15 Oct 2021, 16:32
- Distribution: slackware
Post#7
by Liquidpaper » 03 Nov 2021, 16:24
how to cancel if I do not want to submit? I know using the browser back, but should not be a <cancel> button beside submit?
Last edited by
Liquidpaper on 03 Nov 2021, 17:28, edited 3 times in total.
Liquidpaper
-
Ed_P
- Contributor

- Posts: 8912
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#8
by Ed_P » 03 Nov 2021, 16:36
Liquidpaper wrote: ↑03 Nov 2021, 16:24
how to cancel if I do not want to submit?
After you post the X next to the Edit option is for Delete.

Ed_P