public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Michael Rothwell <rothwell@holly-springs.nc.us>
To: "'linux-mtd@lists.infradead.org'" <linux-mtd@lists.infradead.org>
Subject: JFFS2: cannot execute /bin/bash: Permission denied
Date: 01 Dec 2001 11:27:37 -0500	[thread overview]
Message-ID: <1007224058.1712.2.camel@gromit> (raw)


I'm building a JFFS2 filesystem on a 16MB CF card. If I try to run
bin/bash (really ash) from the mounted filesystem, it runs. But it will
not run when booting from the flash card, or chrooting into it:

[root@gromit flash]# chroot /mnt/flash
chroot: cannot execute /bin/bash: Permission denied

I have also tried real bash, just to see.

[root@gromit flash]# ls -al bin/*ash
-rwxr-xr-x    1 root     root        94364 Nov 30 23:47 bin/ash
-rwxr-xr-x    1 root     root       519964 Dec  1 11:17 bin/bash

Permissions seem to be correct. Busybox init complains that it cannot
execute /etc/rc.sysinit (specified in inittab, and exists with correct
permissions, #!/bin/sh at the top, etc.) This happens with sh as a
symlink to busybox, to ash, and to bash.

I get no error messages from JFFS2. On my desktop, I'm using a USB CF
reader, and the flash shows up as /dev/sda. On the device that boots
this card, it's /dev/hda. Same symptoms, "Permission denied"

/dev/mtdblock0 on /mnt/flash type jffs2 (rw)
/dev/sda1 on /mnt/flash/boot type ext2 (rw)

Any ideas?

             reply	other threads:[~2001-12-01 16:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-01 16:27 Michael Rothwell [this message]
2001-12-01 16:57 ` JFFS2: cannot execute /bin/bash: Permission denied David Woodhouse
2001-12-01 17:53   ` Michael Rothwell
2001-12-01 18:01     ` David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1007224058.1712.2.camel@gromit \
    --to=rothwell@holly-springs.nc.us \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox