install_raspbian_on_f2fs_root

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
install_raspbian_on_f2fs_root [30.01.2017 16:17] – created Pascal Suterinstall_raspbian_on_f2fs_root [16.05.2018 14:46] Pascal Suter
Line 11: Line 11:
   - mount it <code>mkdir /tmp/sd   - mount it <code>mkdir /tmp/sd
 mount -t f2fs /dev/sdf2 /tmp/sd/</code> mount -t f2fs /dev/sdf2 /tmp/sd/</code>
-  - mount second partition from image (see also [[]]): <code>mkdir /tmp/image+  - mount second partition from image (see also [[mount_a_single_partition_from_a_dd_disk_image]]): <code>mkdir /tmp/image
 kpartx -av raspbianimage.img kpartx -av raspbianimage.img
 mount /dev/mapper/loop0p2 /tmp/image mount /dev/mapper/loop0p2 /tmp/image
 </code> </code>
   - now copy the os to the sd card <code>rsync -aHvx /tmp/image/ /tmp/sd/</code>   - now copy the os to the sd card <code>rsync -aHvx /tmp/image/ /tmp/sd/</code>
-  - edit fstab: <code>nano /tmp/sd/etc/fstab</code> and replace ''ext4'' in the root mount line with ''f2fs''+  - find the partition uuid by using ''blkid'' and copy the "PARTUUID" number 
 +  - edit fstab: <code>nano /tmp/sd/etc/fstab</code> and replace ''ext4'' in the root mount line with ''f2fs'', also update the ''PARTUUID'' with the one you found in the previous step. 
   - unmount it all again <code>umount /tmp/sd /tmp/image</code>   - unmount it all again <code>umount /tmp/sd /tmp/image</code>
   - mount boot partition and edit boot options:<code>mount /dev/sdf1 /tmp/sd   - mount boot partition and edit boot options:<code>mount /dev/sdf1 /tmp/sd
-nano /tmp/sd/cmdline.txt</code> and now replace ext4 with f2fs in here as well. +nano /tmp/sd/cmdline.txt</code> and now replace ext4 with f2fs in here and paste the correct ''PARTUUID'' as well. 
   - cleanup: <code>umount /tmp/sd   - cleanup: <code>umount /tmp/sd
 rmdir /tmp/sd /tmp/image rmdir /tmp/sd /tmp/image
 </code> </code>
   - insert the sd card into your raspberry pi and finally start configuring it :)   - insert the sd card into your raspberry pi and finally start configuring it :)
  • install_raspbian_on_f2fs_root.txt
  • Last modified: 22.12.2020 18:33
  • by Pascal Suter