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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.