From st.lambert02@gmail.com Thu Aug 30 10:41:31 2012
From: stl <st.lambert02@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: Is my rootfs correctly mounted?
Date: Thu, 30 Aug 2012 16:40:07 +0200
Message-ID:
 <CAOPDcRxmf3ojDJX1UFRBP+yga4JdY24nJBrEVav_LDfWURS1Vg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1825033068740573352=="

--===============1825033068740573352==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Hello all,
if I try to boot Linux 2.6.37 by supplying a configuration file to the
kernel to create initramfs_data.cpio,
(without any compression), is it normal that the kernel doesn't print the
well known message:

VFS: Mounted root (<type> filesystem)

even if the boot reaches the point where it tries to run init executable?
Does it mean that my rootfs is not correctly mounted?

Here is the kernel output printed during the boot:

<5>[    0.000000] Linux version 2.6.37+ (gcc version 4.6.3 20120816 (GCC) )
#57 Thu Aug 30 12:00:00 CEST 2012
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.
Total pages: 2032
[    0.000000] Kernel command line:
[    0.000000] PID hash table entries: 32 (order: -5, 128 bytes)
[    0.000000] Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Memory: 7656k/8196k available (1098k kernel code, 536k
reserved, 2096117k data, 12k init)
[    0.000000] SLUB: Genslabs=15, HWalign=16, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
[    0.000000] NR_IRQS:64
[    0.000000] Timer start: timer interrupt every 10 ms
[    0.000000] console [ttyS0] enabled
[42949372.980000] Calibrating delay loop... 0.00 BogoMIPS (lpj=0)
[42949373.180000] pid_max: default: 32768 minimum: 301
[42949373.200000] Security Framework initialized
[42949373.210000] Mount-cache hash table entries: 512
[42949373.260000] khelper used greatest stack depth: 7548 bytes left
[42949373.340000] kworker/u:0 used greatest stack depth: 7324 bytes left
[42949373.500000] bio: create slab <bio-0> at 0
[42949373.630000] kworker/u:0 used greatest stack depth: 7260 bytes left
[42949374.630000] kworker/u:0 used greatest stack depth: 7180 bytes left
[42949375.250000] VFS: Disk quotas dquot_6.5.2
[42949375.270000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[42949375.390000] msgmni has been set to 16
[42949375.420000] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[42949375.430000] io scheduler noop registered
[42949375.440000] io scheduler deadline registered
[42949375.460000] io scheduler cfq registered (default)
[42949375.490000] Architecture Specific Serial Driver
[42949375.500000] ttyS0 at MMIO 0x40001000 (irq = 5) is a arch_uart
[42949375.700000] loop: module loaded
[42949375.720000] mice: PS/2 mouse device common for all mice
[42949375.780000] ------------[ cut here ]------------
[42949375.800000] WARNING: at fs/proc/generic.c:589 .LBE364+0x0/0x2()
[42949375.810000] proc_dir_entry '/proc/schedstat' already registered
[42949375.820000] Modules linked in:
[42949375.830000] ---[ end trace 31baa4bbf69a8bbc ]---
[42949375.850000] Failed to execute /init
[42949375.870000] Kernel panic - not syncing: No init found.  Try passing
init= option to kernel. See Linux Documentation/init.txt for guidance.

In my opinion, it seems to be correct because the following message doesn't
appear:

Warning: unable to open an initial console

This means that the file /dev/console has been found, so that the rootfs
has been correctly mounted, isn't it?


Thanks in advance for your help!



--===============1825033068740573352==
Content-Type: text/html
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="attachment.html"
MIME-Version: 1.0

SGVsbG8gYWxsLDxicj5pZiBJIHRyeSB0byBib290IExpbnV4IDIuNi4zNyBieSBzdXBwbHlpbmcg
YSBjb25maWd1cmF0aW9uIGZpbGUgdG8gdGhlIGtlcm5lbCB0byBjcmVhdGUgaW5pdHJhbWZzX2Rh
dGEuY3BpbywgPGJyPih3aXRob3V0IGFueSBjb21wcmVzc2lvbiksIGlzIGl0IG5vcm1hbCB0aGF0
IHRoZSBrZXJuZWwgZG9lc24mIzM5O3QgcHJpbnQgdGhlIHdlbGwga25vd24gbWVzc2FnZTo8YnI+
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YnI+PGJyPlRoYW5rcyBpbiBhZHZhbmNlIGZvciB5b3VyIGhlbHAh
PGJyPjxicj4K

--===============1825033068740573352==--


From rpal143@gmail.com Thu Aug 30 10:49:35 2012
From: Rahul Bedarkar <rpal143@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: Re: Is my rootfs correctly mounted?
Date: Thu, 30 Aug 2012 20:18:53 +0530
Message-ID:
 <CA+NV+V=QCwgAE5CoTM5fnv7g9F-9vWHAT6rBAY1a3Yx4Ph+t6A@mail.gmail.com>
In-Reply-To:
 <CAOPDcRxmf3ojDJX1UFRBP+yga4JdY24nJBrEVav_LDfWURS1Vg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3744490473800467728=="

--===============3744490473800467728==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

yes root file system is mounted correctly. It is just it didn't find init.

On Thu, Aug 30, 2012 at 8:10 PM, stl <st.lambert02@gmail.com> wrote:
> Hello all,
> if I try to boot Linux 2.6.37 by supplying a configuration file to the
> kernel to create initramfs_data.cpio,
> (without any compression), is it normal that the kernel doesn't print the
> well known message:
>
> VFS: Mounted root (<type> filesystem)
>
> even if the boot reaches the point where it tries to run init executable?
> Does it mean that my rootfs is not correctly mounted?
>
> Here is the kernel output printed during the boot:
>
> <5>[    0.000000] Linux version 2.6.37+ (gcc version 4.6.3 20120816 (GCC) )
> #57 Thu Aug 30 12:00:00 CEST 2012
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping off.
> Total pages: 2032
> [    0.000000] Kernel command line:
> [    0.000000] PID hash table entries: 32 (order: -5, 128 bytes)
> [    0.000000] Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.000000] Memory: 7656k/8196k available (1098k kernel code, 536k
> reserved, 2096117k data, 12k init)
> [    0.000000] SLUB: Genslabs=15, HWalign=16, Order=0-3, MinObjects=0,
> CPUs=1, Nodes=1
> [    0.000000] NR_IRQS:64
> [    0.000000] Timer start: timer interrupt every 10 ms
> [    0.000000] console [ttyS0] enabled
> [42949372.980000] Calibrating delay loop... 0.00 BogoMIPS (lpj=0)
> [42949373.180000] pid_max: default: 32768 minimum: 301
> [42949373.200000] Security Framework initialized
> [42949373.210000] Mount-cache hash table entries: 512
> [42949373.260000] khelper used greatest stack depth: 7548 bytes left
> [42949373.340000] kworker/u:0 used greatest stack depth: 7324 bytes left
> [42949373.500000] bio: create slab <bio-0> at 0
> [42949373.630000] kworker/u:0 used greatest stack depth: 7260 bytes left
> [42949374.630000] kworker/u:0 used greatest stack depth: 7180 bytes left
> [42949375.250000] VFS: Disk quotas dquot_6.5.2
> [42949375.270000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> [42949375.390000] msgmni has been set to 16
> [42949375.420000] Block layer SCSI generic (bsg) driver version 0.4 loaded
> (major 253)
> [42949375.430000] io scheduler noop registered
> [42949375.440000] io scheduler deadline registered
> [42949375.460000] io scheduler cfq registered (default)
> [42949375.490000] Architecture Specific Serial Driver
> [42949375.500000] ttyS0 at MMIO 0x40001000 (irq = 5) is a arch_uart
> [42949375.700000] loop: module loaded
> [42949375.720000] mice: PS/2 mouse device common for all mice
> [42949375.780000] ------------[ cut here ]------------
> [42949375.800000] WARNING: at fs/proc/generic.c:589 .LBE364+0x0/0x2()
> [42949375.810000] proc_dir_entry '/proc/schedstat' already registered
> [42949375.820000] Modules linked in:
> [42949375.830000] ---[ end trace 31baa4bbf69a8bbc ]---
> [42949375.850000] Failed to execute /init
> [42949375.870000] Kernel panic - not syncing: No init found.  Try passing
> init= option to kernel. See Linux Documentation/init.txt for guidance.
>
> In my opinion, it seems to be correct because the following message doesn't
> appear:
>
> Warning: unable to open an initial console
>
> This means that the file /dev/console has been found, so that the rootfs has
> been correctly mounted, isn't it?
>
>
> Thanks in advance for your help!
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>


--===============3744490473800467728==--


From st.lambert02@gmail.com Thu Aug 30 11:03:50 2012
From: stl <st.lambert02@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: Re: Is my rootfs correctly mounted?
Date: Thu, 30 Aug 2012 17:00:14 +0200
Message-ID:
 <CAOPDcRxV=ZDQ27dC-ps2yRk12cbF9t1axYAYFfnnN7VNgBRn=Q@mail.gmail.com>
In-Reply-To:
 <CA+NV+V=QCwgAE5CoTM5fnv7g9F-9vWHAT6rBAY1a3Yx4Ph+t6A@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2216468677764509531=="

--===============2216468677764509531==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Thanks Rahul for your very quick answer.
Glad to hear this.
So, when does the message "VFS: Mounted root" appear?
Maybe when using init ramdisk (initrd) support?



2012/8/30 Rahul Bedarkar <rpal143@gmail.com>

> yes root file system is mounted correctly. It is just it didn't find init.
>
> On Thu, Aug 30, 2012 at 8:10 PM, stl <st.lambert02@gmail.com> wrote:
> > Hello all,
> > if I try to boot Linux 2.6.37 by supplying a configuration file to the
> > kernel to create initramfs_data.cpio,
> > (without any compression), is it normal that the kernel doesn't print the
> > well known message:
> >
> > VFS: Mounted root (<type> filesystem)
> >
> > even if the boot reaches the point where it tries to run init executable?
> > Does it mean that my rootfs is not correctly mounted?
> >
> > Here is the kernel output printed during the boot:
> >
> > <5>[    0.000000] Linux version 2.6.37+ (gcc version 4.6.3 20120816
> (GCC) )
> > #57 Thu Aug 30 12:00:00 CEST 2012
> > [    0.000000] Built 1 zonelists in Zone order, mobility grouping off.
> > Total pages: 2032
> > [    0.000000] Kernel command line:
> > [    0.000000] PID hash table entries: 32 (order: -5, 128 bytes)
> > [    0.000000] Dentry cache hash table entries: 1024 (order: 0, 4096
> bytes)
> > [    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096
> bytes)
> > [    0.000000] Memory: 7656k/8196k available (1098k kernel code, 536k
> > reserved, 2096117k data, 12k init)
> > [    0.000000] SLUB: Genslabs=15, HWalign=16, Order=0-3, MinObjects=0,
> > CPUs=1, Nodes=1
> > [    0.000000] NR_IRQS:64
> > [    0.000000] Timer start: timer interrupt every 10 ms
> > [    0.000000] console [ttyS0] enabled
> > [42949372.980000] Calibrating delay loop... 0.00 BogoMIPS (lpj=0)
> > [42949373.180000] pid_max: default: 32768 minimum: 301
> > [42949373.200000] Security Framework initialized
> > [42949373.210000] Mount-cache hash table entries: 512
> > [42949373.260000] khelper used greatest stack depth: 7548 bytes left
> > [42949373.340000] kworker/u:0 used greatest stack depth: 7324 bytes left
> > [42949373.500000] bio: create slab <bio-0> at 0
> > [42949373.630000] kworker/u:0 used greatest stack depth: 7260 bytes left
> > [42949374.630000] kworker/u:0 used greatest stack depth: 7180 bytes left
> > [42949375.250000] VFS: Disk quotas dquot_6.5.2
> > [42949375.270000] Dquot-cache hash table entries: 1024 (order 0, 4096
> bytes)
> > [42949375.390000] msgmni has been set to 16
> > [42949375.420000] Block layer SCSI generic (bsg) driver version 0.4
> loaded
> > (major 253)
> > [42949375.430000] io scheduler noop registered
> > [42949375.440000] io scheduler deadline registered
> > [42949375.460000] io scheduler cfq registered (default)
> > [42949375.490000] Architecture Specific Serial Driver
> > [42949375.500000] ttyS0 at MMIO 0x40001000 (irq = 5) is a arch_uart
> > [42949375.700000] loop: module loaded
> > [42949375.720000] mice: PS/2 mouse device common for all mice
> > [42949375.780000] ------------[ cut here ]------------
> > [42949375.800000] WARNING: at fs/proc/generic.c:589 .LBE364+0x0/0x2()
> > [42949375.810000] proc_dir_entry '/proc/schedstat' already registered
> > [42949375.820000] Modules linked in:
> > [42949375.830000] ---[ end trace 31baa4bbf69a8bbc ]---
> > [42949375.850000] Failed to execute /init
> > [42949375.870000] Kernel panic - not syncing: No init found.  Try passing
> > init= option to kernel. See Linux Documentation/init.txt for guidance.
> >
> > In my opinion, it seems to be correct because the following message
> doesn't
> > appear:
> >
> > Warning: unable to open an initial console
> >
> > This means that the file /dev/console has been found, so that the rootfs
> has
> > been correctly mounted, isn't it?
> >
> >
> > Thanks in advance for your help!
> >
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
>



--===============2216468677764509531==
Content-Type: text/html
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="attachment.html"
MIME-Version: 1.0

VGhhbmtzIFJhaHVsIGZvciB5b3VyIHZlcnkgcXVpY2sgYW5zd2VyLjxicj5HbGFkIHRvIGhlYXIg
dGhpcy48YnI+U28sIHdoZW4gZG9lcyB0aGUgbWVzc2FnZSAmcXVvdDtWRlM6IE1vdW50ZWQgcm9v
dCZxdW90OyBhcHBlYXI/PGJyPk1heWJlIHdoZW4gdXNpbmcgaW5pdCByYW1kaXNrIChpbml0cmQp
IHN1cHBvcnQ/PGJyPjxicj48YnI+PGJyPjxkaXYgY2xhc3M9ImdtYWlsX3F1b3RlIj4yMDEyLzgv
MzAgUmFodWwgQmVkYXJrYXIgPHNwYW4gZGlyPSJsdHIiPiZsdDs8YSBocmVmPSJtYWlsdG86cnBh
bDE0M0BnbWFpbC5jb20iIHRhcmdldD0iX2JsYW5rIj5ycGFsMTQzQGdtYWlsLmNvbTwvYT4mZ3Q7
PC9zcGFuPjxicj4KPGJsb2NrcXVvdGUgY2xhc3M9ImdtYWlsX3F1b3RlIiBzdHlsZT0ibWFyZ2lu
OjAgMCAwIC44ZXg7Ym9yZGVyLWxlZnQ6MXB4ICNjY2Mgc29saWQ7cGFkZGluZy1sZWZ0OjFleCI+
eWVzIHJvb3QgZmlsZSBzeXN0ZW0gaXMgbW91bnRlZCBjb3JyZWN0bHkuIEl0IGlzIGp1c3QgaXQg
ZGlkbiYjMzk7dCBmaW5kIGluaXQuPGJyPgo8ZGl2PjxkaXYgY2xhc3M9Img1Ij48YnI+Ck9uIFRo
dSwgQXVnIDMwLCAyMDEyI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vciB5b3VyIGhlbHAhPGJyPgomZ3Q7PGJyPgomZ3Q7PGJyPgo8L2Rpdj48L2Rpdj4mZ3Q7
IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fPGJyPgomZ3Q7
IEtlcm5lbG5ld2JpZXMgbWFpbGluZyBsaXN0PGJyPgomZ3Q7IDxhIGhyZWY9Im1haWx0bzpLZXJu
ZWxuZXdiaWVzQGtlcm5lbG5ld2JpZXMub3JnIj5LZXJuZWxuZXdiaWVzQGtlcm5lbG5ld2JpZXMu
b3JnPC9hPjxicj4KJmd0OyA8YSBocmVmPSJodHRwOi8vbGlzdHMua2VybmVsbmV3Ymllcy5vcmcv
bWFpbG1hbi9saXN0aW5mby9rZXJuZWxuZXdiaWVzIiB0YXJnZXQ9Il9ibGFuayI+aHR0cDovL2xp
c3RzLmtlcm5lbG5ld2JpZXMub3JnL21haWxtYW4vbGlzdGluZm8va2VybmVsbmV3YmllczwvYT48
YnI+CiZndDs8YnI+CjwvYmxvY2txdW90ZT48L2Rpdj48YnI+Cg==

--===============2216468677764509531==--


From st.lambert02@gmail.com Thu Aug 30 11:14:10 2012
From: stl <st.lambert02@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: Re: Is my rootfs correctly mounted?
Date: Thu, 30 Aug 2012 17:08:44 +0200
Message-ID:
 <CAOPDcRxWeGx4N26R0Qds069JawEtCcBnD84L1CzwKBfsfUrMbA@mail.gmail.com>
In-Reply-To:
 <CAOPDcRxV=ZDQ27dC-ps2yRk12cbF9t1axYAYFfnnN7VNgBRn=Q@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6893537026717006152=="

--===============6893537026717006152==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

And another question,
since the kernel is booting with initramfs support,
is it normal that it tries to run /init instead of bin/init or sbin/init

To be more precise, it runs this:

    if (ramdisk_execute_command) {
        run_init_process(ramdisk_execute_command);           <---this
        printk(KERN_WARNING "Failed to execute %s\n",
                ramdisk_execute_command);
    }

instead of this:

    run_init_process("/sbin/init");
    run_init_process("/etc/init");
    run_init_process("/bin/init");
    run_init_process("/bin/sh");

is it normal?

Thanks!

2012/8/30 stl <st.lambert02@gmail.com>

> Thanks Rahul for your very quick answer.
> Glad to hear this.
> So, when does the message "VFS: Mounted root" appear?
> Maybe when using init ramdisk (initrd) support?
>
>
>
>
> 2012/8/30 Rahul Bedarkar <rpal143@gmail.com>
>
>> yes root file system is mounted correctly. It is just it didn't find init.
>>
>> On Thu, Aug 30, 2012 at 8:10 PM, stl <st.lambert02@gmail.com> wrote:
>> > Hello all,
>> > if I try to boot Linux 2.6.37 by supplying a configuration file to the
>> > kernel to create initramfs_data.cpio,
>> > (without any compression), is it normal that the kernel doesn't print
>> the
>> > well known message:
>> >
>> > VFS: Mounted root (<type> filesystem)
>> >
>> > even if the boot reaches the point where it tries to run init
>> executable?
>> > Does it mean that my rootfs is not correctly mounted?
>> >
>> > Here is the kernel output printed during the boot:
>> >
>> > <5>[    0.000000] Linux version 2.6.37+ (gcc version 4.6.3 20120816
>> (GCC) )
>> > #57 Thu Aug 30 12:00:00 CEST 2012
>> > [    0.000000] Built 1 zonelists in Zone order, mobility grouping off.
>> > Total pages: 2032
>> > [    0.000000] Kernel command line:
>> > [    0.000000] PID hash table entries: 32 (order: -5, 128 bytes)
>> > [    0.000000] Dentry cache hash table entries: 1024 (order: 0, 4096
>> bytes)
>> > [    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096
>> bytes)
>> > [    0.000000] Memory: 7656k/8196k available (1098k kernel code, 536k
>> > reserved, 2096117k data, 12k init)
>> > [    0.000000] SLUB: Genslabs=15, HWalign=16, Order=0-3, MinObjects=0,
>> > CPUs=1, Nodes=1
>> > [    0.000000] NR_IRQS:64
>> > [    0.000000] Timer start: timer interrupt every 10 ms
>> > [    0.000000] console [ttyS0] enabled
>> > [42949372.980000] Calibrating delay loop... 0.00 BogoMIPS (lpj=0)
>> > [42949373.180000] pid_max: default: 32768 minimum: 301
>> > [42949373.200000] Security Framework initialized
>> > [42949373.210000] Mount-cache hash table entries: 512
>> > [42949373.260000] khelper used greatest stack depth: 7548 bytes left
>> > [42949373.340000] kworker/u:0 used greatest stack depth: 7324 bytes left
>> > [42949373.500000] bio: create slab <bio-0> at 0
>> > [42949373.630000] kworker/u:0 used greatest stack depth: 7260 bytes left
>> > [42949374.630000] kworker/u:0 used greatest stack depth: 7180 bytes left
>> > [42949375.250000] VFS: Disk quotas dquot_6.5.2
>> > [42949375.270000] Dquot-cache hash table entries: 1024 (order 0, 4096
>> bytes)
>> > [42949375.390000] msgmni has been set to 16
>> > [42949375.420000] Block layer SCSI generic (bsg) driver version 0.4
>> loaded
>> > (major 253)
>> > [42949375.430000] io scheduler noop registered
>> > [42949375.440000] io scheduler deadline registered
>> > [42949375.460000] io scheduler cfq registered (default)
>> > [42949375.490000] Architecture Specific Serial Driver
>> > [42949375.500000] ttyS0 at MMIO 0x40001000 (irq = 5) is a arch_uart
>> > [42949375.700000] loop: module loaded
>> > [42949375.720000] mice: PS/2 mouse device common for all mice
>> > [42949375.780000] ------------[ cut here ]------------
>> > [42949375.800000] WARNING: at fs/proc/generic.c:589 .LBE364+0x0/0x2()
>> > [42949375.810000] proc_dir_entry '/proc/schedstat' already registered
>> > [42949375.820000] Modules linked in:
>> > [42949375.830000] ---[ end trace 31baa4bbf69a8bbc ]---
>> > [42949375.850000] Failed to execute /init
>> > [42949375.870000] Kernel panic - not syncing: No init found.  Try
>> passing
>> > init= option to kernel. See Linux Documentation/init.txt for guidance.
>> >
>> > In my opinion, it seems to be correct because the following message
>> doesn't
>> > appear:
>> >
>> > Warning: unable to open an initial console
>> >
>> > This means that the file /dev/console has been found, so that the
>> rootfs has
>> > been correctly mounted, isn't it?
>> >
>> >
>> > Thanks in advance for your help!
>> >
>> >
>> > _______________________________________________
>> > Kernelnewbies mailing list
>> > Kernelnewbies@kernelnewbies.org
>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>> >
>>
>
>



--===============6893537026717006152==
Content-Type: text/html
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="attachment.html"
MIME-Version: 1.0

QW5kIGFub3RoZXIgcXVlc3Rpb24sPGJyPnNpbmNlIHRoZSBrZXJuZWwgaXMgYm9vdGluZyB3aXRo
IGluaXRyYW1mcyBzdXBwb3J0LDxicj5pcyBpdCBub3JtYWwgdGhhdCBpdCB0cmllcyB0byBydW4g
L2luaXQgaW5zdGVhZCBvZiBiaW4vaW5pdCBvciBzYmluL2luaXQ8YnI+PGJyPlRvIGJlIG1vcmUg
cHJlY2lzZSwgaXQgcnVucyB0aGlzOjxicj48YnI+oKCgIGlmIChyYW1kaXNrX2V4ZWN1dGVfY29t
bWFuZCkgezxicj4KoKCgIKCgoCBydW5faW5pdF9wcm9jZXNzKHJhbWRpc2tfZXhlY3V0ZV9jb21t
YW5kKTugoKCgoKCgoKCgICZsdDstLS10aGlzPGJyPqCgoCCgoKAgcHJpbnRrKEtFUk5fV0FSTklO
RyAmcXVvdDtGYWlsZWQgdG8gZXhlY3V0ZSAlc1xuJnF1b3Q7LDxicj6goKAgoKCgIKCgoCCgoKAg
cmFtZGlza19leGVjdXRlX2NvbW1hbmQpOzxicj6goKAgfTxicj48YnI+aW5zdGVhZCBvZiB0aGlz
OiA8YnI+CqCgIDxicj6goKAgcnVuX2luaXRfcHJvY2VzcygmcXVvdDsvc2Jpbi9pbml0JnF1b3Q7
KTs8YnI+oKCgIHJ1bl9pbml0X3Byb2Nlc3MoJnF1b3Q7L2V0Yy9pbml0JnF1b3Q7KTs8YnI+oKCg
IHJ1bl9pbml0X3Byb2Nlc3MoJnF1b3Q7L2Jpbi9pbml0JnF1b3Q7KTs8YnI+oKCgIHJ1bl9pbml0
X3Byb2Nlc3MoJnF1b3Q7L2Jpbi9zaCZxdW90Oyk7PGJyPjxicj5pcyBpdCBub3JtYWw/PGJyPjxi
cj4KVGhhbmtzITxicj48YnI+PGRpdiBjbG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d0Ozxicj4KJmd0OyBUaGlzIG1lYW5zIHRoYXQg
dGhlIGZpbGUgL2Rldi9jb25zb2xlIGhhcyBiZWVuIGZvdW5kLCBzbyB0aGF0IHRoZSByb290ZnMg
aGFzPGJyPgomZ3Q7IGJlZW4gY29ycmVjdGx5IG1vdW50ZWQsIGlzbiYjMzk7dCBpdD88YnI+CiZn
dDs8YnI+CiZndDs8YnI+CiZndDsgVGhhbmtzIGluIGFkdmFuY2UgZm9yIHlvdXIgaGVscCE8YnI+
CiZndDs8YnI+CiZndDs8YnI+CjwvZGl2PjwvZGl2PiZndDsgX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX188YnI+CiZndDsgS2VybmVsbmV3YmllcyBtYWlsaW5n
IGxpc3Q8YnI+CiZndDsgPGEgaHJlZj0ibWFpbHRvOktlcm5lbG5ld2JpZXNAa2VybmVsbmV3Ymll
cy5vcmciIHRhcmdldD0iX2JsYW5rIj5LZXJuZWxuZXdiaWVzQGtlcm5lbG5ld2JpZXMub3JnPC9h
Pjxicj4KJmd0OyA8YSBocmVmPSJodHRwOi8vbGlzdHMua2VybmVsbmV3Ymllcy5vcmcvbWFpbG1h
bi9saXN0aW5mby9rZXJuZWxuZXdiaWVzIiB0YXJnZXQ9Il9ibGFuayI+aHR0cDovL2xpc3RzLmtl
cm5lbG5ld2JpZXMub3JnL21haWxtYW4vbGlzdGluZm8va2VybmVsbmV3YmllczwvYT48YnI+CiZn
dDs8YnI+CjwvYmxvY2txdW90ZT48L2Rpdj48YnI+CjwvZGl2PjwvZGl2PjwvYmxvY2txdW90ZT48
L2Rpdj48YnI+Cg==

--===============6893537026717006152==--


From rpal143@gmail.com Fri Aug 31 01:28:06 2012
From: Rahul Bedarkar <rpal143@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: Re: Is my rootfs correctly mounted?
Date: Fri, 31 Aug 2012 10:57:24 +0530
Message-ID:
 <CA+NV+Vk2wPM3COdkAOXLvR1a2qX_vyPEROjaXA4S=RDUUQ+o-A@mail.gmail.com>
In-Reply-To:
 <CAOPDcRxWeGx4N26R0Qds069JawEtCcBnD84L1CzwKBfsfUrMbA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0965400029559019365=="

--===============0965400029559019365==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

On Thu, Aug 30, 2012 at 8:38 PM, stl <st.lambert02@gmail.com> wrote:
> And another question,
> since the kernel is booting with initramfs support,
> is it normal that it tries to run /init instead of bin/init or sbin/init
>
> To be more precise, it runs this:
>
>     if (ramdisk_execute_command) {
>         run_init_process(ramdisk_execute_command);           <---this
>         printk(KERN_WARNING "Failed to execute %s\n",
>                 ramdisk_execute_command);
>     }
>
> instead of this:
>
>     run_init_process("/sbin/init");
>     run_init_process("/etc/init");
>     run_init_process("/bin/init");
>     run_init_process("/bin/sh");
>
> is it normal?
>
yes it is obvious from code (init/main.c) that it tries /init
/sbin/init .... unless it fails to execute anything.
> Thanks!
>
>
> 2012/8/30 stl <st.lambert02@gmail.com>
>>
>> Thanks Rahul for your very quick answer.
>> Glad to hear this.
>> So, when does the message "VFS: Mounted root" appear?
>> Maybe when using init ramdisk (initrd) support?
I don't know but if it fails to mount root file system or file system
is just a garbage with initramfs the well known log is "kernel panic:
junk in compressed archive"
>>
>>
>>
>>
>> 2012/8/30 Rahul Bedarkar <rpal143@gmail.com>
>>>
>>> yes root file system is mounted correctly. It is just it didn't find
>>> init.
>>>
>>> On Thu, Aug 30, 2012 at 8:10 PM, stl <st.lambert02@gmail.com> wrote:
>>> > Hello all,
>>> > if I try to boot Linux 2.6.37 by supplying a configuration file to the
>>> > kernel to create initramfs_data.cpio,
>>> > (without any compression), is it normal that the kernel doesn't print
>>> > the
>>> > well known message:
>>> >
>>> > VFS: Mounted root (<type> filesystem)
>>> >
>>> > even if the boot reaches the point where it tries to run init
>>> > executable?
>>> > Does it mean that my rootfs is not correctly mounted?
>>> >
>>> > Here is the kernel output printed during the boot:
>>> >
>>> > <5>[    0.000000] Linux version 2.6.37+ (gcc version 4.6.3 20120816
>>> > (GCC) )
>>> > #57 Thu Aug 30 12:00:00 CEST 2012
>>> > [    0.000000] Built 1 zonelists in Zone order, mobility grouping off.
>>> > Total pages: 2032
>>> > [    0.000000] Kernel command line:
>>> > [    0.000000] PID hash table entries: 32 (order: -5, 128 bytes)
>>> > [    0.000000] Dentry cache hash table entries: 1024 (order: 0, 4096
>>> > bytes)
>>> > [    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096
>>> > bytes)
>>> > [    0.000000] Memory: 7656k/8196k available (1098k kernel code, 536k
>>> > reserved, 2096117k data, 12k init)
>>> > [    0.000000] SLUB: Genslabs=15, HWalign=16, Order=0-3, MinObjects=0,
>>> > CPUs=1, Nodes=1
>>> > [    0.000000] NR_IRQS:64
>>> > [    0.000000] Timer start: timer interrupt every 10 ms
>>> > [    0.000000] console [ttyS0] enabled
>>> > [42949372.980000] Calibrating delay loop... 0.00 BogoMIPS (lpj=0)
>>> > [42949373.180000] pid_max: default: 32768 minimum: 301
>>> > [42949373.200000] Security Framework initialized
>>> > [42949373.210000] Mount-cache hash table entries: 512
>>> > [42949373.260000] khelper used greatest stack depth: 7548 bytes left
>>> > [42949373.340000] kworker/u:0 used greatest stack depth: 7324 bytes
>>> > left
>>> > [42949373.500000] bio: create slab <bio-0> at 0
>>> > [42949373.630000] kworker/u:0 used greatest stack depth: 7260 bytes
>>> > left
>>> > [42949374.630000] kworker/u:0 used greatest stack depth: 7180 bytes
>>> > left
>>> > [42949375.250000] VFS: Disk quotas dquot_6.5.2
>>> > [42949375.270000] Dquot-cache hash table entries: 1024 (order 0, 4096
>>> > bytes)
>>> > [42949375.390000] msgmni has been set to 16
>>> > [42949375.420000] Block layer SCSI generic (bsg) driver version 0.4
>>> > loaded
>>> > (major 253)
>>> > [42949375.430000] io scheduler noop registered
>>> > [42949375.440000] io scheduler deadline registered
>>> > [42949375.460000] io scheduler cfq registered (default)
>>> > [42949375.490000] Architecture Specific Serial Driver
>>> > [42949375.500000] ttyS0 at MMIO 0x40001000 (irq = 5) is a arch_uart
>>> > [42949375.700000] loop: module loaded
>>> > [42949375.720000] mice: PS/2 mouse device common for all mice
>>> > [42949375.780000] ------------[ cut here ]------------
>>> > [42949375.800000] WARNING: at fs/proc/generic.c:589 .LBE364+0x0/0x2()
>>> > [42949375.810000] proc_dir_entry '/proc/schedstat' already registered
>>> > [42949375.820000] Modules linked in:
>>> > [42949375.830000] ---[ end trace 31baa4bbf69a8bbc ]---
>>> > [42949375.850000] Failed to execute /init
>>> > [42949375.870000] Kernel panic - not syncing: No init found.  Try
>>> > passing
>>> > init= option to kernel. See Linux Documentation/init.txt for guidance.
>>> >
>>> > In my opinion, it seems to be correct because the following message
>>> > doesn't
>>> > appear:
>>> >
>>> > Warning: unable to open an initial console
>>> >
>>> > This means that the file /dev/console has been found, so that the
>>> > rootfs has
>>> > been correctly mounted, isn't it?
>>> >
>>> >
>>> > Thanks in advance for your help!
>>> >
>>> >
>>> > _______________________________________________
>>> > Kernelnewbies mailing list
>>> > Kernelnewbies@kernelnewbies.org
>>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>> >
>>
>>
>


--===============0965400029559019365==--


