Is there a sync command before the unmount?

Maybe the system does not reach the umount call, and therefor it is
never cleanly unmounted? You could debug that.

Maybe the controller is caching and needs specific commands to write the
cache to disc? Did you search the web?

good luck, ede


On 30.01.2010 00:11, Gerlando Falauto wrote:
> Hi all,
> 
> I am (slowly) experimenting with my LaCie Ethernet Disk Mini v2 NAS.
> In order to maintain compatibility with Lacie's software, I did not change
> the disk layout (yet).
> I can run my own OpenWRT without disrupting the original firmware
> by putting the kernel's uImage on [sda9]/snaps/00/boot and the root filesystem
> on [sda2] which is an xfs partition (it's the 300GB user partition)
> mounted as read/write.
> 
> Now every time I shutdown the box, my xfs filesystem gets corrupted
> and at the next reboot
> kernel ends up panicking because it can't mount the root filesystem to
> find an init file.
> 
> I figured the shutdown sequence did not correctly unmount my filesystem;
> I found the executed command was "umount -a -r", so I tried doing it manually:
> 
> r...@openwrt:~# umount -a -r
> umount: devpts busy - remounted read-only
> umount: tmpfs busy - remounted read-only
> umount: tmpfs busy - remounted read-only
> umount: can't remount /dev/root read-only
> umount: can't remount rootfs read-only
> 
> r...@openwrt:~# mount -t proc proc /proc
> r...@openwrt:~# umount -r /
> umount: can't remount /dev/root read-only
> 
> I know that mounting the initial root filesystem as read-write is not
> a very nice thing to do,
> but could someone please point out why it's, like, forbidden by law,
> so that I even get punished for doing it?
> 
> Thanks a lot!
> Gerlando
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to