| Linux - Embedded & Single-board computer This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-16-2011, 06:09 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2011
Posts: 2
Rep: 
|
"Late Saving" Problem
Hello,
Im working on I.MX28 dev board and using kernel 2.6.35 on it. The problem is that when i created a file and echo some text to it, i can see content of the file in the correct form. After this operations, if i restart my board with poweroff command , i can see file and its content again. But if i restart my board hardly(with reset button), i can see the file but it contains nothing.
How can I solve the "late saving" problem ?
Regards,
Snan
|
|
|
|
06-16-2011, 07:35 AM
|
#2
|
|
Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,369
|
Try
cat >> your_file <<EOF, which should return
>
type or paste your text there. When you press return, you get another
>
When you simply type EOF, the whole thing should be saved off.
|
|
|
|
06-16-2011, 08:25 AM
|
#3
|
|
LQ 5k Club
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
|
Do you have a good reason to improperly shut down Linux?
There are other files that this could also happen to. Also, if it happened to be writing to the hard drive while you turned off the power, it might corrupt your filesystem.
|
|
|
|
06-17-2011, 06:40 AM
|
#4
|
|
LQ Newbie
Registered: Jun 2011
Posts: 2
Original Poster
Rep: 
|
business_kid,
Thank you for your reply.i tried, it works !
MTK358,
my project will be used on the vehicles and it will shut down if the driver stops engine.
Last edited by elemaniaq; 06-17-2011 at 07:21 AM.
|
|
|
|
06-17-2011, 07:59 AM
|
#5
|
|
LQ 5k Club
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
|
If the thread is solved, mark it as solved.
|
|
|
|
06-17-2011, 09:46 AM
|
#6
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware, Debian
Posts: 12,525
|
Quote:
Originally Posted by elemaniaq
my project will be used on the vehicles and it will shut down if the driver stops engine.
|
Wouldn't it be better to do a proper shutdown when the driver stops the engine?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:06 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|