sebanc / brunch

Boot ChromeOS on x86_64 PC - Supports Intel CPU/GPU from 8th gen or AMD Ryzen
GNU General Public License v3.0
3.64k stars 389 forks source link

Add support ntfs3. #2035

Closed forumi0721 closed 6 months ago

forumi0721 commented 6 months ago

Hi,

I use brunch with windows dual boot. My laptop is surface go so I have not enough storage for os (SDCARD not working for booting, External USB is my type...)

So I use brunch ChromeOS img on ntfs but it not perform native.

But ntfs3 is new kernel driver for ntfs, and it is good performace.

Brunch used ntfs3 but now disabled. Code is "scripts/brunch-init"

        # Disable ntfs3 for now as it causes issues with older kernels that can only use ntfs-3g
        #if [ "$(cat /proc/version | cut -d' ' -f3 | cut -c1-4 | sed 's@\.@@g')" -eq 61 ]; then
        #   ntfsfix "$img_part"
        #   ntfsfix -d "$img_part"
        #   mount -n -t ntfs3 "$img_part" /mainroot
        #else
            ntfs-3g "$img_part" /mainroot
        #fi

I test ntfs3, it works good.

Comment means ntfs3 disabled for older kernel, So my oppinion is

  1. initramfs.img-default - default initramfs
  2. initramfs.img-ntfs3 - enabled initramfs
  3. initramfs.img <- initramfs.img-default - symlink like kernels
  4. Add option for brunch-config like kernel version change.

Please add this feature in brunch-config...

forumi0721 commented 6 months ago

ntfs3 is very unstable...