[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /bin/sh: permission denied -- fstab error?



Alvin Oga wrote:

On Wed, 28 Apr 2004, [iso-8859-1] Thomas Adam wrote:

--- David Piniella <dpiniell@newssun.med.miami.edu> wrote:
/etc/init.d/rcS: /etc/rcS.D/S70xfree86-common: /bin/sh: bad interpreter:

Permission Denied"
This might be the result of a malformed magic line.

if you can boot with standalone cdrom or floppy
	boot:  linux  root=/dev/hda1 1
	boot:  linux  init=/bin/bash
	...

than try:  sh /etc/rcS.D/S70xfree86-common

if it works, than you probably mixed and matched unix vs dos cr/lf
characters
	- you ned to strip \r from that file


i had recently installed "magicdev" via apt-get, so the malformed magic line thing sounded promising, but googling for more info on this has not yielded any info.

when passing linux root=/dev/hda1 to the boot: prompt from a CD (gnoppix), this gave me the same /bin/sh permission denied errors and a bunch of "kmod: failed to exec /sbin/modprobe -s -k net-pf-1, errno = 13 errors."

when i pass "linux init=/bin/bash" to the boot prompt it gave me a kernel panic which complained about no valid root partition and locked the machine. Thinking that I just needed to append the root= line, I passed "linux init=/bin/bash root=/dev/hda1" to the boot prompt. this gave me a # prompt, but running /etc/init.d/rcS gives me a bunch of "can't load modules" error (because it's running the gnoppix kernel, i'm guessing) as well as the same old the permission denied errors. I am getting these "permission denied" errors on EVERYTHING that rcS calls -- not just that /etc/rcS.D/S70xfree86-common file above; i'm getting at least two pages of similar error output.

how/where can I find more info bad magic errors?
which file do i need to strip \r from?

-d.



Reply to: