Re: unclean root file-system after shutting down from single-user-mode

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

 



Hi,

On Feb 13, 2008 12:23 PM, Pravin <shindepravin@xxxxxxxxx> wrote:
> Hi,
>
> I need to run single application on a linux kernel so that I can get
> better performance.
> For that I used "init=/my_application" as kernel parameter
> This made sure that kernel will run only this application.
> As there are no other processes, my application gets most of the resources,
> and hence I am expecting that it will improve the performance.
>
> The problem comes when stopping the system.
> The only way to do it is by pressing CTRL+ALT+DEL as CTRL+C does not
> work in that mode.
> Unfortunately, by using CTRL+ALT+DEL combination, Linux kernel does
> the unclean unmounting of root filesystem.
> This causes the file-system check on next boot time. :-(

I think you'd better use the standard init, which has support for
startup and shutdown scripts. If you customize them, together with a
custom inittab, then you can have your system start just your
application, but still do certain actions upon startup and shutdown.

This is (for example) explained in "Chapter 6. System Initialization"
of the book "Embedded Linux Primer. A Practical Real-World Approach"
(Christopher Hallinan ; publisher: Prentice Hall).

Thomas

>
> I want to know if there is any way by which I can run my application
> in single-user-mode and still I should be able
> to halt the kernel properly so that there is no need to run
> file-system check on next boot.
>
> I am using kernel Linux 2.6.23 and my root file-system is EXT2.
> Please let me know if there is any way by which I can stop unclean
> unmounting in this case.
>
> --
> Thanx and Regards,
> Pravin Shinde
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux