How should I convert ext4 to F2FS for main system usage?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I was able to boot once but haven't been able to replicate a fresh install. This is a list of what I've tried and posted in hope that someone else can figure this out.
I took the shotgun approach + ended up choosing a distribution that uses Calamares as its installer. I partitioned /usr as ext4 because GRUB's files are located there and I kept running into issues with /usr as F2FS. I assume the issues came from GRUB being unable to read its files from a F2FS filesystem.
/boot/efi - FAT32
/usr - ext4
/ - F2FS
I extracted the before installing and ISO and issued these commands:
add-apt-repository ppa:rodsmith/refind; apt update; apt install f2fs* libf2fs* gparted -y; apt install refind
List of modules loaded in /etc/initramfs-tools/modules
crct10dif_pclmul
crc32_pclmul
libcrc32c
f2fs
Then saved with update-iniramfs -u
.
Now booted into Live CD. I tried using kvpm to create logical volumes (and used mkfs.f2fs to format them as f2fs) but installation would fail to write. If it fails due to unpackfs
then I chroot into the partitions while still in the live environment:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi
mount --bind /dev /mnt/dev
. . .
chroot /mnt
apt install refind # or apt install refind --reinstall
cp -r /usr/share/refind/refind/ /boot/efi/EFI/refind
cd /boot/efi/EFI/refind/drivers_x64
curl -a http://efi.akeo.ie/downloads/efifs-1.3/x64/f2fs_x64.efi -o f2fs_x64.efi
Other things I've tried that failed:
Running the whole drive as F2FS with a FAT32 boot partition failed to load OS
Copying an ext partition to F2FS failed. GRUB 2.02 can't read F2FS UUIDs properly. Editing /boot/grub/grub.cfg to change labels to UUIDs did not help.
Built the current branch of GRUB 2.03 and was hit with a fail when running
make check TESTS='f2fs_test'
; the list of dependencies is incomplete for novices (me).Partitioning root as ext4, then the rest as F2FS. GRUB's files are located in /usr.
Tried formatting boot as NTFS to retain the ability to dual boot Windows and symlink GRUB's needed files (FAT32 can't). This did not work because NTFS is not respected as a ESP partition, flags irregardless.
References I used:
https://ubuntuforums.org/showthread.php?t=2326934&p=13705533#post13705533
https://github.com/void-linux/void-packages/issues/4436
http://www.rodsbooks.com/refind/
http://efi.akeo.ie/
https://www.phoronix.com/scan.php?page=news_item&px=GRUB-Now-Supports-F2FS
f2fs
add a comment |
I was able to boot once but haven't been able to replicate a fresh install. This is a list of what I've tried and posted in hope that someone else can figure this out.
I took the shotgun approach + ended up choosing a distribution that uses Calamares as its installer. I partitioned /usr as ext4 because GRUB's files are located there and I kept running into issues with /usr as F2FS. I assume the issues came from GRUB being unable to read its files from a F2FS filesystem.
/boot/efi - FAT32
/usr - ext4
/ - F2FS
I extracted the before installing and ISO and issued these commands:
add-apt-repository ppa:rodsmith/refind; apt update; apt install f2fs* libf2fs* gparted -y; apt install refind
List of modules loaded in /etc/initramfs-tools/modules
crct10dif_pclmul
crc32_pclmul
libcrc32c
f2fs
Then saved with update-iniramfs -u
.
Now booted into Live CD. I tried using kvpm to create logical volumes (and used mkfs.f2fs to format them as f2fs) but installation would fail to write. If it fails due to unpackfs
then I chroot into the partitions while still in the live environment:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi
mount --bind /dev /mnt/dev
. . .
chroot /mnt
apt install refind # or apt install refind --reinstall
cp -r /usr/share/refind/refind/ /boot/efi/EFI/refind
cd /boot/efi/EFI/refind/drivers_x64
curl -a http://efi.akeo.ie/downloads/efifs-1.3/x64/f2fs_x64.efi -o f2fs_x64.efi
Other things I've tried that failed:
Running the whole drive as F2FS with a FAT32 boot partition failed to load OS
Copying an ext partition to F2FS failed. GRUB 2.02 can't read F2FS UUIDs properly. Editing /boot/grub/grub.cfg to change labels to UUIDs did not help.
Built the current branch of GRUB 2.03 and was hit with a fail when running
make check TESTS='f2fs_test'
; the list of dependencies is incomplete for novices (me).Partitioning root as ext4, then the rest as F2FS. GRUB's files are located in /usr.
Tried formatting boot as NTFS to retain the ability to dual boot Windows and symlink GRUB's needed files (FAT32 can't). This did not work because NTFS is not respected as a ESP partition, flags irregardless.
References I used:
https://ubuntuforums.org/showthread.php?t=2326934&p=13705533#post13705533
https://github.com/void-linux/void-packages/issues/4436
http://www.rodsbooks.com/refind/
http://efi.akeo.ie/
https://www.phoronix.com/scan.php?page=news_item&px=GRUB-Now-Supports-F2FS
f2fs
Is the last edit supposed to be an answer? It looks like the question body is no longer asking a question.
– Olorin
Mar 7 at 6:58
Sorry, it was meant to be a detail of what processes I have attempted. I'm new to AskUbuntu procedure. Should I delete my question?
– avisitoritseems
Mar 7 at 7:01
I'm not sure... If you have managed to get it to boot, you could post the steps as an answer.
– Olorin
Mar 7 at 7:09
Right. I've got it only once but I failed to document the exact steps taken. I'll reword the edit in that case.
– avisitoritseems
Mar 7 at 7:15
add a comment |
I was able to boot once but haven't been able to replicate a fresh install. This is a list of what I've tried and posted in hope that someone else can figure this out.
I took the shotgun approach + ended up choosing a distribution that uses Calamares as its installer. I partitioned /usr as ext4 because GRUB's files are located there and I kept running into issues with /usr as F2FS. I assume the issues came from GRUB being unable to read its files from a F2FS filesystem.
/boot/efi - FAT32
/usr - ext4
/ - F2FS
I extracted the before installing and ISO and issued these commands:
add-apt-repository ppa:rodsmith/refind; apt update; apt install f2fs* libf2fs* gparted -y; apt install refind
List of modules loaded in /etc/initramfs-tools/modules
crct10dif_pclmul
crc32_pclmul
libcrc32c
f2fs
Then saved with update-iniramfs -u
.
Now booted into Live CD. I tried using kvpm to create logical volumes (and used mkfs.f2fs to format them as f2fs) but installation would fail to write. If it fails due to unpackfs
then I chroot into the partitions while still in the live environment:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi
mount --bind /dev /mnt/dev
. . .
chroot /mnt
apt install refind # or apt install refind --reinstall
cp -r /usr/share/refind/refind/ /boot/efi/EFI/refind
cd /boot/efi/EFI/refind/drivers_x64
curl -a http://efi.akeo.ie/downloads/efifs-1.3/x64/f2fs_x64.efi -o f2fs_x64.efi
Other things I've tried that failed:
Running the whole drive as F2FS with a FAT32 boot partition failed to load OS
Copying an ext partition to F2FS failed. GRUB 2.02 can't read F2FS UUIDs properly. Editing /boot/grub/grub.cfg to change labels to UUIDs did not help.
Built the current branch of GRUB 2.03 and was hit with a fail when running
make check TESTS='f2fs_test'
; the list of dependencies is incomplete for novices (me).Partitioning root as ext4, then the rest as F2FS. GRUB's files are located in /usr.
Tried formatting boot as NTFS to retain the ability to dual boot Windows and symlink GRUB's needed files (FAT32 can't). This did not work because NTFS is not respected as a ESP partition, flags irregardless.
References I used:
https://ubuntuforums.org/showthread.php?t=2326934&p=13705533#post13705533
https://github.com/void-linux/void-packages/issues/4436
http://www.rodsbooks.com/refind/
http://efi.akeo.ie/
https://www.phoronix.com/scan.php?page=news_item&px=GRUB-Now-Supports-F2FS
f2fs
I was able to boot once but haven't been able to replicate a fresh install. This is a list of what I've tried and posted in hope that someone else can figure this out.
I took the shotgun approach + ended up choosing a distribution that uses Calamares as its installer. I partitioned /usr as ext4 because GRUB's files are located there and I kept running into issues with /usr as F2FS. I assume the issues came from GRUB being unable to read its files from a F2FS filesystem.
/boot/efi - FAT32
/usr - ext4
/ - F2FS
I extracted the before installing and ISO and issued these commands:
add-apt-repository ppa:rodsmith/refind; apt update; apt install f2fs* libf2fs* gparted -y; apt install refind
List of modules loaded in /etc/initramfs-tools/modules
crct10dif_pclmul
crc32_pclmul
libcrc32c
f2fs
Then saved with update-iniramfs -u
.
Now booted into Live CD. I tried using kvpm to create logical volumes (and used mkfs.f2fs to format them as f2fs) but installation would fail to write. If it fails due to unpackfs
then I chroot into the partitions while still in the live environment:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi
mount --bind /dev /mnt/dev
. . .
chroot /mnt
apt install refind # or apt install refind --reinstall
cp -r /usr/share/refind/refind/ /boot/efi/EFI/refind
cd /boot/efi/EFI/refind/drivers_x64
curl -a http://efi.akeo.ie/downloads/efifs-1.3/x64/f2fs_x64.efi -o f2fs_x64.efi
Other things I've tried that failed:
Running the whole drive as F2FS with a FAT32 boot partition failed to load OS
Copying an ext partition to F2FS failed. GRUB 2.02 can't read F2FS UUIDs properly. Editing /boot/grub/grub.cfg to change labels to UUIDs did not help.
Built the current branch of GRUB 2.03 and was hit with a fail when running
make check TESTS='f2fs_test'
; the list of dependencies is incomplete for novices (me).Partitioning root as ext4, then the rest as F2FS. GRUB's files are located in /usr.
Tried formatting boot as NTFS to retain the ability to dual boot Windows and symlink GRUB's needed files (FAT32 can't). This did not work because NTFS is not respected as a ESP partition, flags irregardless.
References I used:
https://ubuntuforums.org/showthread.php?t=2326934&p=13705533#post13705533
https://github.com/void-linux/void-packages/issues/4436
http://www.rodsbooks.com/refind/
http://efi.akeo.ie/
https://www.phoronix.com/scan.php?page=news_item&px=GRUB-Now-Supports-F2FS
f2fs
f2fs
edited Mar 7 at 7:27
avisitoritseems
asked Feb 18 at 2:54
avisitoritseemsavisitoritseems
10312
10312
Is the last edit supposed to be an answer? It looks like the question body is no longer asking a question.
– Olorin
Mar 7 at 6:58
Sorry, it was meant to be a detail of what processes I have attempted. I'm new to AskUbuntu procedure. Should I delete my question?
– avisitoritseems
Mar 7 at 7:01
I'm not sure... If you have managed to get it to boot, you could post the steps as an answer.
– Olorin
Mar 7 at 7:09
Right. I've got it only once but I failed to document the exact steps taken. I'll reword the edit in that case.
– avisitoritseems
Mar 7 at 7:15
add a comment |
Is the last edit supposed to be an answer? It looks like the question body is no longer asking a question.
– Olorin
Mar 7 at 6:58
Sorry, it was meant to be a detail of what processes I have attempted. I'm new to AskUbuntu procedure. Should I delete my question?
– avisitoritseems
Mar 7 at 7:01
I'm not sure... If you have managed to get it to boot, you could post the steps as an answer.
– Olorin
Mar 7 at 7:09
Right. I've got it only once but I failed to document the exact steps taken. I'll reword the edit in that case.
– avisitoritseems
Mar 7 at 7:15
Is the last edit supposed to be an answer? It looks like the question body is no longer asking a question.
– Olorin
Mar 7 at 6:58
Is the last edit supposed to be an answer? It looks like the question body is no longer asking a question.
– Olorin
Mar 7 at 6:58
Sorry, it was meant to be a detail of what processes I have attempted. I'm new to AskUbuntu procedure. Should I delete my question?
– avisitoritseems
Mar 7 at 7:01
Sorry, it was meant to be a detail of what processes I have attempted. I'm new to AskUbuntu procedure. Should I delete my question?
– avisitoritseems
Mar 7 at 7:01
I'm not sure... If you have managed to get it to boot, you could post the steps as an answer.
– Olorin
Mar 7 at 7:09
I'm not sure... If you have managed to get it to boot, you could post the steps as an answer.
– Olorin
Mar 7 at 7:09
Right. I've got it only once but I failed to document the exact steps taken. I'll reword the edit in that case.
– avisitoritseems
Mar 7 at 7:15
Right. I've got it only once but I failed to document the exact steps taken. I'll reword the edit in that case.
– avisitoritseems
Mar 7 at 7:15
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1119109%2fhow-should-i-convert-ext4-to-f2fs-for-main-system-usage%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1119109%2fhow-should-i-convert-ext4-to-f2fs-for-main-system-usage%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is the last edit supposed to be an answer? It looks like the question body is no longer asking a question.
– Olorin
Mar 7 at 6:58
Sorry, it was meant to be a detail of what processes I have attempted. I'm new to AskUbuntu procedure. Should I delete my question?
– avisitoritseems
Mar 7 at 7:01
I'm not sure... If you have managed to get it to boot, you could post the steps as an answer.
– Olorin
Mar 7 at 7:09
Right. I've got it only once but I failed to document the exact steps taken. I'll reword the edit in that case.
– avisitoritseems
Mar 7 at 7:15