Hi Juergen, Thank you for point out that the boot message on the previous mail was garbled. So re-send it again the email with the attachment of the boot-up message log. As of this writing, I observed that when I do clean reboot the system (by typing reboot command in the terminal) the deleted files will not restore in the mounted spare partition. But if I do power reboot by flipping the power switch, the issue will surface. It seems to me it is a partition safety mechanism in the event of power failure (e.g. rebooting the system through power supply). Anyway, I will leave the comment from the expert about my observation. Best Regards and have happy holidays!Ian
From: psycl...@hotmail.com To: j...@pengutronix.de; oselas@community.pengutronix.de Date: Thu, 18 Dec 2014 10:54:29 +0000 Subject: Re: [oselas] u-boot_hd.config Hi Juergen, I am currently in use the spare partition for saving some application. One thing I noticed that when I delete a file and reboot the system, the deleted file will automatically restore. Any idea why it did happen? Here is the boot up log for reference:[ 1.886867] systemd[1]: /etc/mtab is not a symlink or not pointing to /proc/self/mounts. This is not supported anymore. Please make sure to replace this file by a symlink to avoid incorrect or misleading mount(8) output.[ 1.907927] hub 2-1:1.0: USB hub found[ 1.919175] hub 2-1:1.0: 4 ports detected[ 2.274296] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.[ 2.282982] systemd[1]: Started Forward Password Requests to Wall Directory Watch.[ 2.291164] systemd[1]: Expecting device dev-ttymxc1.device... Expecting device dev-ttymxc1.device...[ 2.319263] systemd[1]: Starting Remote File Systems.[ OK ] Reached target Remote File Systems.[ 2.349193] systemd[1]: Reached target Remote File Systems.[ 2.355033] systemd[1]: Starting Delayed Shutdown Socket.[ OK ] Listening on Delayed Shutdown Socket.[ 2.379195] systemd[1]: Listening on Delayed Shutdown Socket.[ 2.385205] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.[ OK ] Listening on /dev/initctl Compatibility Named Pipe.[ 2.409264] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.[ 2.417201] systemd[1]: Starting udev Kernel Socket.[ OK ] Listening on udev Kernel Socket.[ 2.439201] systemd[1]: Listening on udev Kernel Socket.[ 2.445399] systemd[1]: Starting udev Control Socket.[ OK ] Listening on udev Control Socket.[ 2.469198] systemd[1]: Listening on udev Control Socket.[ 2.475214] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.[ OK ] Set up automount Arbitrary Executable File Formats F...utomount Point.[ 2.509198] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.[ 2.519067] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.[ 2.527750] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.[ 2.536103] systemd[1]: Starting Swap.[ OK ] Reached target Swap.[ 2.559166] systemd[1]: Reached target Swap.[ 2.563709] systemd[1]: Expecting device dev-mmcblk0p3.device... Expecting device dev-mmcblk0p3.device...[ 2.589296] systemd[1]: Starting Journal Socket.[ OK ] Listening on Journal Socket.[ 2.609285] systemd[1]: Listening on Journal Socket.[ 2.614693] systemd[1]: Started File System Check on Root Device.[ 2.621258] systemd[1]: Starting Remount Root and Kernel File Systems... Starting Remount Root and Kernel File Systems...[ 2.653159] systemd[1]: Started Set Up Additional Binary Formats.[ 2.666523] systemd[1]: Starting udev Coldplug all Devices... Starting udev Coldplug all Devices...[ 2.682904] systemd[1]: Mounted POSIX Message Queue File System.[ 2.720167] systemd[1]: Starting Apply Kernel Variables... Starting Apply Kernel Variables...[ 2.763424] systemd[1]: Starting udev Kernel Device Manager... Starting udev Kernel Device Manager...[ 2.817487] systemd[1]: Started Load Kernel Modules.[ 2.896414] systemd[1]: Mounting FUSE Control File System... Mounting FUSE Control File System...[ 2.953510] systemd-udevd[81]: starting version 195[ 2.962275] systemd[1]: Mounting Configuration File System... Mounting Configuration File System...[ 2.997842] systemd[1]: Mounted Huge Pages File System.[ 3.032671] systemd[1]: Starting Journal Service... Starting Journal Service...[ OK ] Started Journal Service.[ 3.130359] systemd[1]: Started Journal Service.[ OK ] Started udev Kernel Device Manager.[ 3.170463] systemd[1]: Started udev Kernel Device Manager.[ OK ] Started Remount Root and Kernel File Systems.[ 3.229306] systemd[1]: Started Remount Root and Kernel File Systems.[ OK ] Started Apply Kernel Variables.[ 3.329290] systemd[1]: Started Apply Kernel Variables.[ OK ] Mounted FUSE Control File System.[ 3.366290] systemd[1]: Mounted FUSE Control File System.[ OK ] Mounted Configuration File System.[ 3.429275] systemd[1]: Mounted Configuration File System.[ 3.435277] systemd[1]: Starting Local File Systems (Pre).[ OK ] Reached target Local File Systems (Pre).[ 3.500873] systemd[1]: Reached target Local File Systems (Pre).[ 3.507199] systemd[1]: Mounting /var/tmp... Mounting /var/tmp...[ 3.573417] systemd[1]: Mounting /var/lock... Mounting /var/lock...[ 3.643780] systemd[1]: Mounting /var/run... Mounting /var/run...[ 3.722439] systemd[1]: Mounting /var/log... Mounting /var/log...[ 3.766135] systemd[1]: Mounting /tmp... Mounting /tmp...[ 3.845927] systemd[1]: Mounting /sys/kernel/debug... Mounting /sys/kernel/debug...[ 3.922233] systemd[1]: Starting Load Random Seed... Starting Load Random Seed...[ OK ] Mounted /tmp.[ 4.061960] systemd[1]: Mounted /tmp.[ OK ] Mounted /var/log.[ 4.119282] systemd[1]: Mounted /var/log.[ OK ] Mounted /var/run.[ 4.139294] systemd[1]: Mounted /var/run.[ OK ] Mounted /var/lock.[ 4.189277] systemd[1]: Mounted /var/lock.[ OK ] Mounted /var/tmp.[ 4.206704] systemd[1]: Mounted /var/tmp.[ OK ] Mounted /sys/kernel/debug.[ 4.259295] systemd[1]: Mounted /sys/kernel/debug.[FAILED] Failed to start Load Random Seed.See 'systemctl status systemd-random-seed-load.service' for details.[ OK ] Started udev Coldplug all Devices.[ OK ] Found device /dev/ttymxc1.[ OK ] Found device /dev/mmcblk0p3. Mounting /home...[ 5.589957] EXT2-fs (mmcblk0p3): warning: mounting unchecked fs, running e2fsck is recommended[ OK ] Mounted /home.[ OK ] Reached target Local File Systems. Starting Trigger Flushing of Journal to Persistent Storage... Starting Recreate Volatile Files and Directories...[ 5.860084] imx-sdma 63fb0000.sdma: loaded firmware 1.1[ OK ] Started Trigger Flushing of Journal to Persistent Storage.[ OK ] Started Recreate Volatile Files and Directories.[ OK ] Reached target System Initialization.[ 6.107619] systemd[1]: [/lib/systemd/system/pure-uploadscript.service:4] Path in condition not absolute, ignoring:[ OK ] Listening on pure-ftpd.socket.[ OK ] Listening on D-Bus System Message Bus Socket.[ OK ] Listening on sshd.socket.[ OK ] Reached target Sockets.[ OK ] Reached target Basic System. Starting user independend autostart... Starting user independend autostart... Starting user independend autostart... Starting user independend autostart...[ 6.502994] can: isotp protocol (rev 20090105 alpha) Starting user independend autostart... Starting Mark kernel activated network interfaces as up... Starting Login Service... Starting Permit User Sessions... Starting D-Bus System Message Bus...[ OK ] Started D-Bus System Message Bus. Starting Network Manager configuration (ignore kerne... interfaces)...[ OK ] Started Permit User Sessions.[ OK ] Started Mark kernel activated network interfaces as up. Starting Handle network interface with ifup/ifdown... Starting Getty on tty1...[ OK ] Started Getty on tty1. Starting Serial Getty on ttymxc1...[ 7.468727] flexcan 53fc8000.can can0: bitrate error 0.2%[ OK ] Started Serial Getty on ttymxc1.[ OK ] Reached target Login Prompts.[ 7.577542] flexcan 53fc8000.can can0: writing ctrl=0x12092081[ 8.073917] flexcan 53fc8000.can can0: bitrate error 0.2%[ OK ] Started Login Service.[ 8.157588] flexcan 53fc8000.can can0: writing ctrl=0x1209e0d1[ 8.210733] flexcan 53fcc000.can can1: bitrate error 0.2%[ 8.216830] flexcan 53fcc000.can can1: writing ctrl=0x12092081[ 8.368352] fec 63fec000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:01, irq=-1)[ 8.420845] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready[ 8.537149] systemd-journald[90]: Received SIGUSR1[ OK ] Started Network Manager configuration (ignore kernel...rk interfaces). Starting Network Manager...[FAILED] Failed to start Handle network interface with ifup/ifdown.See 'systemctl status ifupdown.service' for details.[ 10.359103] libphy: fixed-0:01 - Link is Up - 100/Full[ 10.364314] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready[ OK ] Started Network Manager.[ OK ] Reached target Network. Thanks,Ian > From: j...@pengutronix.de > To: oselas@community.pengutronix.de > Date: Wed, 1 Oct 2014 09:01:50 +0200 > CC: psycl...@hotmail.com > Subject: Re: [oselas] u-boot_hd.config > > Hi Ian, > > please keep the mailing list at least on CC. Thanks. > > On Wednesday 01 October 2014 07:19:08 ian c wrote: > > thanks for the detailed description. However, I still have question, > > though. > > > > >> partition spare { > > >> size = 256M > > >> partition-type = 0x83 > > >> } > > >> size=1024M > > >> } > > > > What is mean for size=1024M? If I add partition (e.g. I name its partition > > duplicate), should I reduce that size value? > > If you take a closer look, the "size=1024M" is inside the "image" block. So > it > defines the size of the whole image file to be created. > > Regards, > Juergen > > -- > Pengutronix e.K. | Juergen Borleis | > Industrial Linux Solutions | http://www.pengutronix.de/ | >
[ 1.886867] systemd[1]: /etc/mtab is not a symlink or not pointing to /proc/self/mounts. This is not supported anymore. Please make sure to replace this file by a symlink to avoid incorrect or misleading mount(8) output. [ 1.907927] hub 2-1:1.0: USB hub found [ 1.919175] hub 2-1:1.0: 4 ports detected [ 2.274296] systemd[1]: Starting Forward Password Requests to Wall Directory Watch. [ 2.282982] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 2.291164] systemd[1]: Expecting device dev-ttymxc1.device... Expecting device dev-ttymxc1.device... [ 2.319263] systemd[1]: Starting Remote File Systems. [ OK ] Reached target Remote File Systems. [ 2.349193] systemd[1]: Reached target Remote File Systems. [ 2.355033] systemd[1]: Starting Delayed Shutdown Socket. [ OK ] Listening on Delayed Shutdown Socket. [ 2.379195] systemd[1]: Listening on Delayed Shutdown Socket. [ 2.385205] systemd[1]: Starting /dev/initctl Compatibility Named Pipe. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. [ 2.409264] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. [ 2.417201] systemd[1]: Starting udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. [ 2.439201] systemd[1]: Listening on udev Kernel Socket. [ 2.445399] systemd[1]: Starting udev Control Socket. [ OK ] Listening on udev Control Socket. [ 2.469198] systemd[1]: Listening on udev Control Socket. [ 2.475214] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point. [ OK ] Set up automount Arbitrary Executable File Formats F...utomount Point. [ 2.509198] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 2.519067] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch. [ 2.527750] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 2.536103] systemd[1]: Starting Swap. [ OK ] Reached target Swap. [ 2.559166] systemd[1]: Reached target Swap. [ 2.563709] systemd[1]: Expecting device dev-mmcblk0p3.device... Expecting device dev-mmcblk0p3.device... [ 2.589296] systemd[1]: Starting Journal Socket. [ OK ] Listening on Journal Socket. [ 2.609285] systemd[1]: Listening on Journal Socket. [ 2.614693] systemd[1]: Started File System Check on Root Device. [ 2.621258] systemd[1]: Starting Remount Root and Kernel File Systems... Starting Remount Root and Kernel File Systems... [ 2.653159] systemd[1]: Started Set Up Additional Binary Formats. [ 2.666523] systemd[1]: Starting udev Coldplug all Devices... Starting udev Coldplug all Devices... [ 2.682904] systemd[1]: Mounted POSIX Message Queue File System. [ 2.720167] systemd[1]: Starting Apply Kernel Variables... Starting Apply Kernel Variables... [ 2.763424] systemd[1]: Starting udev Kernel Device Manager... Starting udev Kernel Device Manager... [ 2.817487] systemd[1]: Started Load Kernel Modules. [ 2.896414] systemd[1]: Mounting FUSE Control File System... Mounting FUSE Control File System... [ 2.953510] systemd-udevd[81]: starting version 195 [ 2.962275] systemd[1]: Mounting Configuration File System... Mounting Configuration File System... [ 2.997842] systemd[1]: Mounted Huge Pages File System. [ 3.032671] systemd[1]: Starting Journal Service... Starting Journal Service... [ OK ] Started Journal Service. [ 3.130359] systemd[1]: Started Journal Service. [ OK ] Started udev Kernel Device Manager. [ 3.170463] systemd[1]: Started udev Kernel Device Manager. [ OK ] Started Remount Root and Kernel File Systems. [ 3.229306] systemd[1]: Started Remount Root and Kernel File Systems. [ OK ] Started Apply Kernel Variables. [ 3.329290] systemd[1]: Started Apply Kernel Variables. [ OK ] Mounted FUSE Control File System. [ 3.366290] systemd[1]: Mounted FUSE Control File System. [ OK ] Mounted Configuration File System. [ 3.429275] systemd[1]: Mounted Configuration File System. [ 3.435277] systemd[1]: Starting Local File Systems (Pre). [ OK ] Reached target Local File Systems (Pre). [ 3.500873] systemd[1]: Reached target Local File Systems (Pre). [ 3.507199] systemd[1]: Mounting /var/tmp... Mounting /var/tmp... [ 3.573417] systemd[1]: Mounting /var/lock... Mounting /var/lock... [ 3.643780] systemd[1]: Mounting /var/run... Mounting /var/run... [ 3.722439] systemd[1]: Mounting /var/log... Mounting /var/log... [ 3.766135] systemd[1]: Mounting /tmp... Mounting /tmp... [ 3.845927] systemd[1]: Mounting /sys/kernel/debug... Mounting /sys/kernel/debug... [ 3.922233] systemd[1]: Starting Load Random Seed... Starting Load Random Seed... [ OK ] Mounted /tmp. [ 4.061960] systemd[1]: Mounted /tmp. [ OK ] Mounted /var/log. [ 4.119282] systemd[1]: Mounted /var/log. [ OK ] Mounted /var/run. [ 4.139294] systemd[1]: Mounted /var/run. [ OK ] Mounted /var/lock. [ 4.189277] systemd[1]: Mounted /var/lock. [ OK ] Mounted /var/tmp. [ 4.206704] systemd[1]: Mounted /var/tmp. [ OK ] Mounted /sys/kernel/debug. [ 4.259295] systemd[1]: Mounted /sys/kernel/debug. [FAILED] Failed to start Load Random Seed. See 'systemctl status systemd-random-seed-load.service' for details. [ OK ] Started udev Coldplug all Devices. [ OK ] Found device /dev/ttymxc1. [ OK ] Found device /dev/mmcblk0p3. Mounting /home... [ 5.589957] EXT2-fs (mmcblk0p3): warning: mounting unchecked fs, running e2fsck is recommended [ OK ] Mounted /home. [ OK ] Reached target Local File Systems. Starting Trigger Flushing of Journal to Persistent Storage... Starting Recreate Volatile Files and Directories... [ 5.860084] imx-sdma 63fb0000.sdma: loaded firmware 1.1 [ OK ] Started Trigger Flushing of Journal to Persistent Storage. [ OK ] Started Recreate Volatile Files and Directories. [ OK ] Reached target System Initialization. [ 6.107619] systemd[1]: [/lib/systemd/system/pure-uploadscript.service:4] Path in condition not absolute, ignoring: [ OK ] Listening on pure-ftpd.socket. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Listening on sshd.socket. [ OK ] Reached target Sockets. [ OK ] Reached target Basic System. Starting user independend autostart... Starting user independend autostart... Starting user independend autostart... Starting user independend autostart... [ 6.502994] can: isotp protocol (rev 20090105 alpha) Starting user independend autostart... Starting Mark kernel activated network interfaces as up... Starting Login Service... Starting Permit User Sessions... Starting D-Bus System Message Bus... [ OK ] Started D-Bus System Message Bus. Starting Network Manager configuration (ignore kerne... interfaces)... [ OK ] Started Permit User Sessions. [ OK ] Started Mark kernel activated network interfaces as up. Starting Handle network interface with ifup/ifdown... Starting Getty on tty1... [ OK ] Started Getty on tty1. Starting Serial Getty on ttymxc1... [ 7.468727] flexcan 53fc8000.can can0: bitrate error 0.2% [ OK ] Started Serial Getty on ttymxc1. [ OK ] Reached target Login Prompts. [ 7.577542] flexcan 53fc8000.can can0: writing ctrl=0x12092081 [ 8.073917] flexcan 53fc8000.can can0: bitrate error 0.2% [ OK ] Started Login Service. [ 8.157588] flexcan 53fc8000.can can0: writing ctrl=0x1209e0d1 [ 8.210733] flexcan 53fcc000.can can1: bitrate error 0.2% [ 8.216830] flexcan 53fcc000.can can1: writing ctrl=0x12092081 [ 8.368352] fec 63fec000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:01, irq=-1) [ 8.420845] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 8.537149] systemd-journald[90]: Received SIGUSR1 [ OK ] Started Network Manager configuration (ignore kernel...rk interfaces). Starting Network Manager... [FAILED] Failed to start Handle network interface with ifup/ifdown. See 'systemctl status ifupdown.service' for details. [ 10.359103] libphy: fixed-0:01 - Link is Up - 100/Full [ 10.364314] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ OK ] Started Network Manager. [ OK ] Reached target Network.