Is the ramdisk mounted?

3 messages, 3 authors, 2000-07-08 · open the first message on its own page

Is the ramdisk mounted?

From: Kwansuk Kim <hidden>
Date: 2000-07-08 00:40:26

I just mounted the ramdisk with a warning.

Is there any problem with unchecked fs? But I copied the image to host 'dd if=ramdisk.image of=/dev/ram' and I worked well. (It was given 2.2.13 kernel on linuxppc.org)

Anyway, actual problem appeared at calling at init process. I saw the source and it seems if there is no init then the kernel calls /bin/sh.

Of coarse, the shell is in the image, but the kernel couldn't find it.

---------------------------


Now booting the kernel
ttyS00 at 0x0380 is a SMC
ttyS01 at 0x0100 is a SCC
ttyS02 at 0x0200 is a SCC
pty: 256 Unix98 ptys configured
RAM disk driver initialized:  16 RAM disks of 4096K size
eth0: CPM ENET Version 0.2, 00:01:c4:00:00:b1
RAMDISK: Compressed image found at block 0
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 28k init
Warning: unable to open an initial console.
Kernel panic: No init found.  Try passing init= option to kernel.
Rebooting in 180 seconds..

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: Is the ramdisk mounted?

From: Ben Sapp <hidden>
Date: 2000-04-07 08:04:06

I have seen these errors before on an MVME2301.   My problem was caused
by not having the proper devices in /dev.  I had to add /dev/console and
/dev/ttyS0.  Output from my (working) machine:

 sh-2.03# ls -l /dev/console /dev/ttyS0
crw--w--w-   1 root     root       5,   1 Jul  8 07:19 /dev/console
crw--w--w-   1 root     root       4,  64 Apr 13 08:39 /dev/ttyS0

I also have to give the command boot option:

console=/dev/ttyS0

Now it works.   Good Luck.

Kwansuk Kim wrote:
I just mounted the ramdisk with a warning.

Is there any problem with unchecked fs? But I copied the image to host 'dd if=ramdisk.image of=/dev/ram' and I worked well. (It was given 2.2.13 kernel on linuxppc.org)

Anyway, actual problem appeared at calling at init process. I saw the source and it seems if there is no init then the kernel calls /bin/sh.

Of coarse, the shell is in the image, but the kernel couldn't find it.

---------------------------

Now booting the kernel
ttyS00 at 0x0380 is a SMC
ttyS01 at 0x0100 is a SCC
ttyS02 at 0x0200 is a SCC
pty: 256 Unix98 ptys configured
RAM disk driver initialized:  16 RAM disks of 4096K size
eth0: CPM ENET Version 0.2, 00:01:c4:00:00:b1
RAMDISK: Compressed image found at block 0
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 28k init
Warning: unable to open an initial console.
Kernel panic: No init found.  Try passing init= option to kernel.
Rebooting in 180 seconds..
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: Is the ramdisk mounted?

From: Wang Yong <hidden>
Date: 2000-07-08 01:48:27

of course the root fs has been mounted. maybe there is something wrong with your shell or
execve() itself.
there is a sequence of execve() at the end of init() and if all these calling fail, a message
will be shown as : 'No init found.  Try passing init= option to kernel.'

w.y.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help