[SOLVED] how many times system restart from installation
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We work on embedded linux platform, and for future diagnosic, we need to find out that
how many times our system reboot or reset from installation.
Is there any command or way for this in linux?
it depends on what do you want to install.
usually a full system update/upgrade requires a reboot, but otherwise hard to say anything without knowing any details.
This really depends on what is being done, and what you mean by working on the platform. Do you mean that you happen to have an embedded Linux platform and are installing something? For that you should check with the provider of that system. If you are developing software to run on an embedded Linux platform then you should be able to determine whether or not you require a reboot for various changes to your system.
I think my problem misunderstood by reader due to lack of description in my header, sorry for that.
I need total reboot count from fresh Linux(OS) install on my embedded platform.
I think my problem misunderstood by reader due to lack of description in my header, sorry for that.
I need total reboot count from fresh Linux(OS) install on my embedded platform.
Regards,
Ghanshyam
Then this is really what you need. Because it sounds like you need to write a private disk or NV area which is not affected by system installs.
Quote:
Originally Posted by smeezekitty
You would likely need to write a logger that runs at startup
and increments a count in a file somewhere.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.