2011-06-28 05:43:48     Reboot doesn't unmount Ubifs partition

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-06-28 05:43:48     Reboot doesn't unmount Ubifs partition

Gilles Ganault (FRANCE)

Message: 101787   

 

Hello

 

The "reboot" application that comes with uClinux doesn't unmount the Ubifs partition where the root filesystem lives. As a result, at the next reboot, dmesg says "UBIFS: recovery needed".

 

What would be a good solution? Modify the source code for "reboot" to include unmounting the Ubifs partition? Replacing "reboot" with another version or a script?

 

Thank you.

QuoteReplyEditDelete

 

 

2011-06-28 09:03:01     Re: Reboot doesn't unmount Ubifs partition

Gilles Ganault (FRANCE)

Message: 101791   

 

For those looking for the same thing: user/sysutils/reboot.c includes calls to sync(), so the Ubifs partition should be OK even without unmounting it before reboot.

QuoteReplyEditDelete

 

 

2011-06-28 11:57:50     Re: Reboot doesn't unmount Ubifs partition

Mike Frysinger (UNITED STATES)

Message: 101798   

 

the default reboot app only reboots.  if you need something more fancy, then you'll have to implement it.  pretty sure this has come up in the past, so searching the forums for "reboot" or "shutdown" might yield info.

 

note, rootfs's cant be unmounted.  just remounted ro.

QuoteReplyEditDelete

 

 

2011-06-29 17:56:30     Re: Reboot doesn't unmount Ubifs partition

Gilles Ganault (FRANCE)

Message: 101873   

 

Thanks. I'll see how others have dealt with the issue.

Attachments

    Outcomes