Advertisement
WalterHWhite

ubuntu.zfs.grub.install

Dec 4th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.60 KB | None | 0 0
  1. root@ubuntu:/# df /boot/efi
  2. df: /boot/efi: No such file or directory
  3. root@ubuntu:/# df /boot
  4. Filesystem 1K-blocks Used Available Use% Mounted on
  5. bpool/boot 376192 61568 314624 17% /boot
  6. root@ubuntu:/# zfs list
  7. NAME USED AVAIL REFER MOUNTPOINT
  8. bpool 60.6M 307M 96K /mnt
  9. bpool/boot 60.1M 307M 60.1M /mnt/boot
  10. rpool 606M 377G 96K /mnt
  11. rpool/ROOT 505M 377G 96K none
  12. rpool/ROOT/ubuntu 505M 377G 505M /mnt
  13. rpool/home 200K 377G 96K /mnt/home
  14. rpool/home/root 104K 377G 104K /mnt/root
  15. rpool/tmp 96K 377G 96K /mnt/tmp
  16. rpool/var 99.9M 377G 96K /mnt/var
  17. rpool/var/cache 99.1M 377G 99.1M /mnt/var/cache
  18. rpool/var/log 224K 377G 224K /mnt/var/log
  19. rpool/var/mail 96K 377G 96K /mnt/var/mail
  20. rpool/var/nfs 96K 377G 96K /mnt/var/lib/nfs
  21. rpool/var/spool 208K 377G 112K /mnt/var/spool
  22. rpool/var/spool/postfix 96K 377G 96K /mnt/var/spool/postfix
  23. rpool/var/tmp 96K 377G 96K /mnt/var/tmp
  24. root@ubuntu:/# df /mnt/boot
  25. df: /mnt/boot: No such file or directory
  26. root@ubuntu:/# zfs mount bpool/boot /boot/efi
  27. too many arguments
  28. usage:
  29. mount
  30. mount [-vO] [-o opts] <-a | filesystem>
  31.  
  32. For the property list, run: zfs set|get
  33.  
  34. For the delegated permission list, run: zfs allow|unallow
  35. root@ubuntu:/# mount bpool/boot /boot/efi
  36. mount: /boot/efi: mount point does not exist.
  37. root@ubuntu:/# mkdir /boot/efi
  38. root@ubuntu:/# mount bpool/boot /boot/efi
  39. mount: /boot/efi: special device bpool/boot does not exist.
  40. root@ubuntu:/# zfs mount bpool/boot mountpoint=/boot/efi
  41. too many arguments
  42. usage:
  43. mount
  44. mount [-vO] [-o opts] <-a | filesystem>
  45.  
  46. For the property list, run: zfs set|get
  47.  
  48. For the delegated permission list, run: zfs allow|unallow
  49. root@ubuntu:/# zfs mount -o mountpoint=/boot/efi bpool/boot
  50. cannot mount 'bpool/boot': filesystem already mounted
  51. root@ubuntu:/# df|grep bpool
  52. bpool/boot 376064 61440 314624 17% /boot
  53. root@ubuntu:/# ls /boot/efi
  54. root@ubuntu:/# df
  55. Filesystem 1K-blocks Used Available Use% Mounted on
  56. rpool/ROOT/ubuntu 396061568 516864 395544704 1% /
  57. bpool/boot 376064 61440 314624 17% /boot
  58. rpool/home 395544704 0 395544704 0% /home
  59. rpool/home/root 395544704 0 395544704 0% /root
  60. rpool/var/cache 395646208 101504 395544704 1% /var/cache
  61. rpool/var/log 395544832 128 395544704 1% /var/log
  62. rpool/var/spool 395544704 0 395544704 0% /var/spool
  63. rpool/var/tmp 395544704 0 395544704 0% /var/tmp
  64. rpool/var/mail 395544704 0 395544704 0% /var/mail
  65. rpool/var/spool/postfix 395544704 0 395544704 0% /var/spool/postfix
  66. rpool/var/nfs 395544704 0 395544704 0% /var/lib/nfs
  67. rpool/tmp 395544704 0 395544704 0% /tmp
  68. udev 8046292 0 8046292 0% /dev
  69. tmpfs 8067460 0 8067460 0% /dev/shm
  70. tmpfs 8067460 0 8067460 0% /sys/fs/cgroup
  71. root@ubuntu:/# echo PARTUUID=$(blkid -s PARTUUID -o value \
  72. > /dev/disk/by-id/nvme-KXG50ZNV512G_NVMe_TOSHIBA_512GB_289S1190T3ZQ-part2) \
  73. > /boot/efi vfat noatime,nofail,x-systemd.device-timeout=1 0 1 >> /etc/fstab
  74. root@ubuntu:/# mount /boot/efi
  75. root@ubuntu:/# apt install --yes grub-efi-amd64
  76. Reading package lists... Done
  77. Building dependency tree
  78. Reading state information... Done
  79. The following additional packages will be installed:
  80. efibootmgr gettext-base grub-common grub-efi-amd64-bin grub2-common libefiboot1 libefivar1 libfreetype6 libfuse2 libpng16-16
  81. os-prober
  82. Suggested packages:
  83. multiboot-doc grub-emu xorriso desktop-base fuse
  84. The following NEW packages will be installed:
  85. efibootmgr gettext-base grub-common grub-efi-amd64 grub-efi-amd64-bin grub2-common libefiboot1 libefivar1 libfreetype6 libfuse2
  86. libpng16-16 os-prober
  87. 0 upgraded, 12 newly installed, 0 to remove and 69 not upgraded.
  88. Need to get 3762 kB of archives.
  89. After this operation, 18.8 MB of additional disk space will be used.
  90. Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfuse2 amd64 2.9.7-1ubuntu1 [80.9 kB]
  91. Get:2 http://security.ubuntu.com/ubuntu bionic-security/main amd64 gettext-base amd64 0.19.8.1-6ubuntu0.1 [50.1 kB]
  92. Get:3 http://security.ubuntu.com/ubuntu bionic-security/main amd64 libpng16-16 amd64 1.6.34-1ubuntu0.18.04.1 [176 kB]
  93. Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 libefivar1 amd64 34-1 [46.2 kB]
  94. Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libefiboot1 amd64 34-1 [23.5 kB]
  95. Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 efibootmgr amd64 15-1 [28.2 kB]
  96. Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfreetype6 amd64 2.8.1-2ubuntu2 [335 kB]
  97. Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub-common amd64 2.02-2ubuntu8.9 [1769 kB]
  98. Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub2-common amd64 2.02-2ubuntu8.9 [532 kB]
  99. Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 os-prober amd64 1.74ubuntu1 [19.8 kB]
  100. Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub-efi-amd64-bin amd64 2.02-2ubuntu8.9 [655 kB]
  101. Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub-efi-amd64 amd64 2.02-2ubuntu8.9 [47.0 kB]
  102. Fetched 3762 kB in 1s (2712 kB/s)
  103. Preconfiguring packages ...
  104. Selecting previously unselected package gettext-base.
  105. (Reading database ... 19526 files and directories currently installed.)
  106. Preparing to unpack .../00-gettext-base_0.19.8.1-6ubuntu0.1_amd64.deb ...
  107. Unpacking gettext-base (0.19.8.1-6ubuntu0.1) ...
  108. Selecting previously unselected package libfuse2:amd64.
  109. Preparing to unpack .../01-libfuse2_2.9.7-1ubuntu1_amd64.deb ...
  110. Unpacking libfuse2:amd64 (2.9.7-1ubuntu1) ...
  111. Selecting previously unselected package libpng16-16:amd64.
  112. Preparing to unpack .../02-libpng16-16_1.6.34-1ubuntu0.18.04.1_amd64.deb ...
  113. Unpacking libpng16-16:amd64 (1.6.34-1ubuntu0.18.04.1) ...
  114. Selecting previously unselected package libefivar1:amd64.
  115. Preparing to unpack .../03-libefivar1_34-1_amd64.deb ...
  116. Unpacking libefivar1:amd64 (34-1) ...
  117. Selecting previously unselected package libefiboot1:amd64.
  118. Preparing to unpack .../04-libefiboot1_34-1_amd64.deb ...
  119. Unpacking libefiboot1:amd64 (34-1) ...
  120. Selecting previously unselected package efibootmgr.
  121. Preparing to unpack .../05-efibootmgr_15-1_amd64.deb ...
  122. Unpacking efibootmgr (15-1) ...
  123. Selecting previously unselected package libfreetype6:amd64.
  124. Preparing to unpack .../06-libfreetype6_2.8.1-2ubuntu2_amd64.deb ...
  125. Unpacking libfreetype6:amd64 (2.8.1-2ubuntu2) ...
  126. Selecting previously unselected package grub-common.
  127. Preparing to unpack .../07-grub-common_2.02-2ubuntu8.9_amd64.deb ...
  128. Unpacking grub-common (2.02-2ubuntu8.9) ...
  129. Selecting previously unselected package grub2-common.
  130. Preparing to unpack .../08-grub2-common_2.02-2ubuntu8.9_amd64.deb ...
  131. Unpacking grub2-common (2.02-2ubuntu8.9) ...
  132. Selecting previously unselected package os-prober.
  133. Preparing to unpack .../09-os-prober_1.74ubuntu1_amd64.deb ...
  134. Unpacking os-prober (1.74ubuntu1) ...
  135. Selecting previously unselected package grub-efi-amd64-bin.
  136. Preparing to unpack .../10-grub-efi-amd64-bin_2.02-2ubuntu8.9_amd64.deb ...
  137. Unpacking grub-efi-amd64-bin (2.02-2ubuntu8.9) ...
  138. Selecting previously unselected package grub-efi-amd64.
  139. Preparing to unpack .../11-grub-efi-amd64_2.02-2ubuntu8.9_amd64.deb ...
  140. Unpacking grub-efi-amd64 (2.02-2ubuntu8.9) ...
  141. Setting up libpng16-16:amd64 (1.6.34-1ubuntu0.18.04.1) ...
  142. Setting up libfuse2:amd64 (2.9.7-1ubuntu1) ...
  143. Setting up libefivar1:amd64 (34-1) ...
  144. Setting up gettext-base (0.19.8.1-6ubuntu0.1) ...
  145. Setting up libfreetype6:amd64 (2.8.1-2ubuntu2) ...
  146. Processing triggers for libc-bin (2.27-3ubuntu1) ...
  147. Setting up grub-common (2.02-2ubuntu8.9) ...
  148. update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
  149. Running in chroot, ignoring request.
  150. Processing triggers for systemd (237-3ubuntu10) ...
  151. Setting up libefiboot1:amd64 (34-1) ...
  152. Setting up efibootmgr (15-1) ...
  153. Setting up grub2-common (2.02-2ubuntu8.9) ...
  154. Setting up os-prober (1.74ubuntu1) ...
  155. Setting up grub-efi-amd64-bin (2.02-2ubuntu8.9) ...
  156. Setting up grub-efi-amd64 (2.02-2ubuntu8.9) ...
  157.  
  158. Creating config file /etc/default/grub with new version
  159. Installing for x86_64-efi platform.
  160. Installation finished. No error reported.
  161. Processing triggers for libc-bin (2.27-3ubuntu1) ...
  162. root@ubuntu:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement