{"id":1544,"date":"2022-12-14T04:33:25","date_gmt":"2022-12-14T02:33:25","guid":{"rendered":"https:\/\/www.shukko.com\/x3\/?p=1544"},"modified":"2022-12-14T04:46:13","modified_gmt":"2022-12-14T02:46:13","slug":"1544","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2022\/12\/14\/1544\/","title":{"rendered":"manjaro \/ arch linux BTRFS chroot grub install story."},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\"><strong>[manjaro@manjaro-cinnamon ~]$<\/strong> sudo pacman -Sy arch-install-scripts\n:: Synchronizing package databases...\n core                  163.9 KiB   303 KiB\/s 00:01 [######################] 100%\n extra                          1865.8 KiB  2.29 MiB\/s 00:01 [################################] 100%\n community                         7.5 MiB  5.84 MiB\/s 00:01 [################################] 100%\n multilib                        169.3 KiB  1411 KiB\/s 00:00 [################################] 100%\nerror: failed retrieving file 'core.db' from kambing.ui.ac.id : Failed to connect to kambing.ui.ac.id port 80 after 5212 ms: Connection timed out\nerror: failed retrieving file 'core.db' from ftp.cuhk.edu.hk : Failed to connect to ftp.cuhk.edu.hk port 80 after 5210 ms: Connection timed out\nerror: failed retrieving file 'extra.db' from kambing.ui.ac.id : Failed to connect to kambing.ui.ac.id port 80 after 5202 ms: Connection timed out\nerror: failed retrieving file 'extra.db' from ftp.cuhk.edu.hk : Failed to connect to ftp.cuhk.edu.hk port 80 after 5201 ms: Connection timed out\nerror: failed retrieving file 'community.db' from kambing.ui.ac.id : Failed to connect to kambing.ui.ac.id port 80 after 5201 ms: Connection timed out\nwarning: too many errors from kambing.ui.ac.id, skipping for the remainder of this transaction\nerror: failed retrieving file 'community.db' from ftp.cuhk.edu.hk : Failed to connect to ftp.cuhk.edu.hk port 80 after 5202 ms: Connection timed out\nwarning: too many errors from ftp.cuhk.edu.hk, skipping for the remainder of this transaction\n:: Some packages should be upgraded first...\nresolving dependencies...\nlooking for conflicting packages...\n\nPackages (2) archlinux-keyring-20221123-1  manjaro-keyring-20221028-4\n\nTotal Download Size:   1.64 MiB\nTotal Installed Size:  2.28 MiB\nNet Upgrade Size:      0.02 MiB\n\n:: Proceed with installation? [Y\/n] y\n:: Retrieving packages...\n archlinux-keyring-20221123...  1140.5 KiB  2.46 MiB\/s 00:00 [################################] 100%\n manjaro-keyring-20221028-4-any  541.6 KiB  6.96 MiB\/s 00:00 [################################] 100%\n Total (2\/2)                    1682.2 KiB  2.49 MiB\/s 00:01 [################################] 100%\n(2\/2) checking keys in keyring                               [################################] 100%\n(2\/2) checking package integrity                             [################################] 100%\n(2\/2) loading package files                                  [################################] 100%\n(2\/2) checking for file conflicts                            [################################] 100%\n(2\/2) checking available disk space                          [################################] 100%\n:: Processing package changes...\n(1\/2) upgrading archlinux-keyring                            [################################] 100%\n==&gt; Appending keys from archlinux.gpg...\n==&gt; Locally signing trusted keys in keyring...\n  -&gt; Locally signed 1 keys.\n==&gt; Importing owner trust values...\ngpg: inserting ownertrust of 4\n==&gt; Disabling revoked keys in keyring...\n  -&gt; Disabled 2 keys.\n==&gt; Updating trust database...\ngpg: marginals needed: 3  completes needed: 1  trust model: pgp\ngpg: depth: 0  valid:   1  signed:  20  trust: 0-, 0q, 0n, 0m, 0f, 1u\ngpg: depth: 1  valid:  20  signed:  94  trust: 0-, 0q, 0n, 20m, 0f, 0u\ngpg: depth: 2  valid:  74  signed:  28  trust: 74-, 0q, 0n, 0m, 0f, 0u\ngpg: next trustdb check due at 2023-01-01\n==&gt; Updating trust database...\ngpg: next trustdb check due at 2023-01-01\n<strong>==&gt; Delete expired Build-Server Key<\/strong>\n==&gt; Updating trust database...\ngpg: marginals needed: 3  completes needed: 1  trust model: pgp\ngpg: depth: 0  valid:   1  signed:  20  trust: 0-, 0q, 0n, 0m, 0f, 1u\ngpg: depth: 1  valid:  20  signed:  94  trust: 0-, 0q, 0n, 20m, 0f, 0u\ngpg: depth: 2  valid:  74  signed:  28  trust: 74-, 0q, 0n, 0m, 0f, 0u\ngpg: next trustdb check due at 2023-01-01\n(2\/2) upgrading manjaro-keyring                              [################################] 100%\n==&gt; Appending keys from manjaro.gpg...\n==&gt; Locally signing trusted keys in keyring...\n  -&gt; Locally signed 4 keys.\n==&gt; Importing owner trust values...\ngpg: setting ownertrust to 4\ngpg: setting ownertrust to 4\n==&gt; Updating trust database...\ngpg: marginals needed: 3  completes needed: 1  trust model: pgp\ngpg: depth: 0  valid:   1  signed:  22  trust: 0-, 0q, 0n, 0m, 0f, 1u\ngpg: depth: 1  valid:  22  signed:  94  trust: 0-, 0q, 0n, 22m, 0f, 0u\ngpg: depth: 2  valid:  74  signed:  28  trust: 74-, 0q, 0n, 0m, 0f, 0u\ngpg: next trustdb check due at 2023-01-01\n:: Running post-transaction hooks...\n(1\/2) Reloading system manager configuration...\n(2\/2) Arming ConditionNeedsUpdate...\n\nresolving dependencies...\nlooking for conflicting packages...\n\nPackages (1) arch-install-scripts-28-1\n\nTotal Download Size:   0.02 MiB\nTotal Installed Size:  0.05 MiB\n\n:: Proceed with installation? [Y\/n] \n:: Retrieving packages...\n arch-install-scripts-28-1-any    15.8 KiB  42.3 KiB\/s 00:00 [################################] 100%\nerror: failed retrieving file 'arch-install-scripts-28-1-any.pkg.tar.zst' from kambing.ui.ac.id : Failed to connect to kambing.ui.ac.id port 80 after 6160 ms: Connection timed out\nerror: failed retrieving file 'arch-install-scripts-28-1-any.pkg.tar.zst' from ftp.cuhk.edu.hk : Failed to connect to ftp.cuhk.edu.hk port 80 after 5212 ms: Connection timed out\n(1\/1) checking keys in keyring                               [################################] 100%\n(1\/1) checking package integrity                             [################################] 100%\n(1\/1) loading package files                                  [################################] 100%\n(1\/1) checking for file conflicts                            [################################] 100%\n(1\/1) checking available disk space                          [################################] 100%\n:: Processing package changes...\n(1\/1) installing arch-install-scripts                        [################################] 100%\n:: Running post-transaction hooks...\n(1\/1) Arming ConditionNeedsUpdate...\n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> sudo lsblk -f\nNAME FSTYPE FSVER LABEL         UUID                                 FSAVAIL FSUSE% MOUNTPOINTS\nloop0\n     squash 4.0                                                            0   100% \/run\/miso\/sfs\/livefs\nloop1\n     squash 4.0                                                            0   100% \/run\/miso\/sfs\/mhwdfs\nloop2\n     squash 4.0                                                            0   100% \/run\/miso\/sfs\/desktopfs\nloop3\n     squash 4.0                                                            0   100% \/run\/miso\/sfs\/rootfs\nsda                                                                                 \n\u2514\u2500sda1\n     ext4   1.0   10tb1         d59252fa-9b89-42c4-b966-5606a6f02b89    8.2T     4% \/run\/media\/manjaro\/10tb1\nsdb                                                                                 \n\u2514\u2500sdb1\n     ext4   1.0   10tb2         47a23e21-ec2f-4f79-b1e2-0d6d62c0c8ef  355.9G    91% \/run\/media\/manjaro\/10tb2\nsdc                                                                                 \n\u2514\u2500sdc1\n     ext4   1.0   10tb3         0ea2653e-5cb2-4f29-8904-c45c525961af  751.8G    87% \/run\/media\/manjaro\/10tb3\nsdd                                                                                 \n\u2514\u2500sdd1\n     ext4   1.0   EVO860-2      f12442dd-5018-45db-9523-d92a857bf6b1                \nsde                                                                                 \n\u2514\u2500sde1\n     ext4   1.0   EVO860-1      ddb9d9b0-c043-4162-8607-28d0cfbf199f                \nsdf  iso966 Jolie MANJARO_CINNAMON_2137\n                                2022-08-26-08-40-30-00                     0   100% \/run\/miso\/bootmnt\n\u251c\u2500sdf1\n\u2502    iso966 Jolie MANJARO_CINNAMON_2137\n\u2502                               2022-08-26-08-40-30-00                              \n\u2514\u2500sdf2\n     vfat   FAT12 MISO_EFI      2664-DC36                                           \nnvme1n1\n\n\u251c\u2500nvme1n1p1\n\u2502    vfat   FAT32               3C81-0B10                                           \n\u251c\u2500nvme1n1p2\n\u2502                                                                                   \n\u251c\u2500nvme1n1p3\n\u2502    ntfs                       429481D89481CF3B                                    \n\u2514\u2500nvme1n1p4\n     ntfs                       DC76D99C76D9782A                                    \nnvme0n1\n\n\u251c\u2500nvme0n1p1\n\u2502    vfat   FAT32 NO_LABEL      D380-908E                                           \n\u2514\u2500nvme0n1p2\n     btrfs                      aca29224-1164-4d3f-807c-170e5a9174f2                \n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> sudo mount -o subvol=@ \/dev\/nvme0n1p2 \/mnt\n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> sudo mount -o subvol=@log \/dev\/nvme0n1p2 \/mnt\/var\/log\n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> sudo mount -o subvol=@cache \/dev\/nvme0n1p2 \/mnt\/var\/cache\n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> sudo mount -o subvol=@home \/dev\/nvme0n1p2 \/mnt\/home\n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> sudo mount \/dev\/nvme0n1p1 \/mnt\/boot\/efi\n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> \n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> \n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> arch\narch-chroot                 archlinux-java              archlinux-keyring-wkd-sync\n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> arch-chroot \/mnt\n==&gt; ERROR: This script must be run with root privileges\n<strong>[manjaro@manjaro-cinnamon ~]$<\/strong> sudo arch-chroot \/mnt\n<strong>[manjaro-cinnamon \/]#<\/strong> sudo arch-chroot \/mnt\nInstalling for x86_64-efi platform.\nInstallation finished. No error reported.\n<strong>[manjaro-cinnamon \/]#<\/strong> \n\n<\/pre>\n\n\n\n<p>Summary:<\/p>\n\n\n\n<p>Whenever I did a BIOS update my manjaro cinnamon installation which boots in UEFI mode and which also happens to be a BTRFS installation fucks up and never boots again , because by somehow my fucking BIOS can not find the UEFI boot entry again.<\/p>\n\n\n\n<p>So what I do do fix this problem:<\/p>\n\n\n\n<p>1- create a bootable manjaro cinnamon usb using etcher.<\/p>\n\n\n\n<p>2- boot from this usb into manjaro cinnamon live using UEFI (important)<\/p>\n\n\n\n<p>3- then appy these commands: ( details above)<\/p>\n\n\n\n<p>sudo pacman -Sy arch-install-scripts <\/p>\n\n\n\n<p>sudo lsblk -f<\/p>\n\n\n\n<p> sudo mount -o subvol=@ \/dev\/nvme0n1p2 \/mnt<\/p>\n\n\n\n<p>sudo mount -o subvol=@log \/dev\/nvme0n1p2 \/mnt\/var\/log<\/p>\n\n\n\n<p>sudo mount -o subvol=@cache \/dev\/nvme0n1p2 \/mnt\/var\/cache<\/p>\n\n\n\n<p> sudo mount -o subvol=@home \/dev\/nvme0n1p2 \/mnt\/home<\/p>\n\n\n\n<p>sudo mount \/dev\/nvme0n1p1 \/mnt\/boot\/efi<\/p>\n\n\n\n<p>sudo arch-chroot \/mnt<\/p>\n\n\n\n<p>grub-install<\/p>\n\n\n\n<p>exit chroot , reboot , set BIOS UEFI boot entry to &#8220;manjaro&#8221; again and boot&#8230;.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>important notes: For this to work you MUST first boot into Live USB environment using UEFI boot. Otherwise you can not chroot and write grub to \/boot\/efi<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[manjaro@manjaro-cinnamon ~]$ sudo pacman -Sy arch-install-scripts :: Synchronizing package databases&#8230; core 163.9 KiB 303 KiB\/s 00:01 [######################] 100% extra 1865.8 KiB 2.29 MiB\/s 00:01 [################################] 100% community 7.5 MiB 5.84 MiB\/s 00:01 [################################] 100% multilib 169.3 KiB 1411 KiB\/s 00:00 [################################] 100% error: failed retrieving file &#8216;core.db&#8217; from kambing.ui.ac.id : Failed to connect to kambing.ui.ac.id [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1544","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=1544"}],"version-history":[{"count":6,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1544\/revisions"}],"predecessor-version":[{"id":1551,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1544\/revisions\/1551"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=1544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=1544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=1544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}