Hi, i'm using raspberry pi.
I tried to migrate archarm from ext4 to f2fs, but I got a problem.
My best guess is that rootfs gets mounted as read only and then stuck.
This is what I did initially:
1. copied system with cp -a to desktop computer
2. replaced original ext4 partition with f2fs one.
3. copied system with cp -a back into new partition
4. modified /boot/cmdline.txt
$this->bbcode_second_pass_code('', '
# before :
ipv6.disable=1 selinux=0 plymouth.enable=0 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p5 ro rootfstype=ext4 elevator=noop rootwait
# the rootfs is mounted as ro to enable fsck on boot. it will be remounted as in /etc/fstab
# after :
ipv6.disable=1 selinux=0 plymouth.enable=0 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p5 ro rootfstype=f2fs elevator=noop rootwait
')
5. modified /etc/fstab
$this->bbcode_second_pass_code('', '
# before :
/dev/mmcblk0p1 /boot vfat defaults,noatime 0 0
/dev/mmcblk0p5 / ext4 remount,rw,noatime 0 0
# after :
/dev/mmcblk0p1 /boot vfat defaults,noatime 0 0
/dev/mmcblk0p5 / fstab remount,rw,noatime 0 0
')
After the migration, it reaches login prompt after boot, but it doesn't proceed to login.
some systemd or kernel error messages shows from time to time:
$this->bbcode_second_pass_code('', '
systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
systemd[1]: Failed to start Network Time Service.
systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack
INFO: task kworker/u2:0:6 blocked for more than 120 seconds.
Not tained 3.12.23-1-ARCH #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
')
Most,if not every, of the messages are one of above four.
If I wait more, the screen gets cleand and new login prompt is shown, but it goes just the same.
these are everything I treid to fix the issue but nothing worked:
- I realized that I forgot to install f2fs-tools package, so I downloaded it and manually located bin & lib files with cp -a, chmod & chown
- fsck(does fsck.f2fs work yet? prior to this installation the partition was garbled due to card reader failure but fsck didn't report any problem. I had to reformat.)
- replacing ro to rw in cmdline.txt
- commentating the line of rootfs in /etc/fstab along with prior edit to cmdline.txt