1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務時間:8:30-17:00
      你可能遇到了下面的問題
      關閉右側工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      archlinux下安裝上btrfsgpt使用bios_grub方式啟動-創(chuàng)新互聯(lián)

      https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface#EFI_System_Partition
      https://wiki.archlinux.org/index.php/Beginners'_Guide_(簡體中文)#Grub_2
      https://wiki.archlinux.org/index.php/Beginners%27_guide_(簡體中文)
      http://www.linuxsir.org/bbs/thread379335.html 虛擬機中測試使用全btrfs + GPT 過程需要注意的事項[分享]
      https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface#EFI_System_Partition
      https://wiki.archlinux.org/index.php/GRUB2_(簡體中文)#.E5.88.9B.E5.BB.BA.E5.B9.B6.E6.8C.82.E8.BD.BD_UEFI_.E7.B3.BB.E7.BB.9F.E5.88.86.E5.8C.BA

      以前舊的fstab中
      /dev/disk/by-label/btrfs-root / btrfs defaults,noatime,compress=lzo,space_cache,autodefrag 0 0
      /dev/disk/by-label/btrfs-root / btrfs defaults,noatime,compress=lzo,space_cache,autodefrag 0 0

      #/dev/disk/by-label/debian64 / ext4 defaults,noatime 0 1
      /dev/disk/by-label/arch74 / btrfs subvol=arch74_rootfs,compress=lzo,space_cache,autodefrag,rw,relatime,noatime 0 1
      /dev/disk/by-label/arch74 /home btrfs subvol=arch74_homefs,compress=lzo,space_cache,autodefrag,rw,relatime,noatime 0 1
      /dev/disk/by-label/arch74 /var/cache/pacman/pkg btrfs subvol=arch74_pkg,compress=lzo,space_cache,autodefrag,rw,relatime,noatime 0 1

      創(chuàng)新互聯(lián)公司堅持“要么做到,要么別承諾”的工作理念,服務領域包括:成都做網(wǎng)站、成都網(wǎng)站設計、企業(yè)官網(wǎng)、英文網(wǎng)站、手機端網(wǎng)站、網(wǎng)站推廣等服務,滿足客戶于互聯(lián)網(wǎng)時代的壽寧網(wǎng)站設計、移動媒體設計的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡建設合作伙伴!

      menuentry 'Arch Linux Btrfs' {

      load_video

      set gfxpayload=keep

      insmod gzio

      #insmod zlib

      insmod btrfs

      #set root='hd1'

      set btrfs_rootfs=arch74_rootfs

      set root_label=arch74

      search --label --no-floppy --set=root $root_label

      linux /$btrfs_rootfs/boot/vmlinuz-linux root=/dev/disk/by-label/$root_label ro rootfstype=btrfs rootflags=subvol=$btrfs_rootfs,compress=lzo,space_cache,autodefrag rootwait init=/usr/lib/systemd/systemd

      initrd /$btrfs_rootfs/boot/initramfs-linux.img

      #linux /boot/vmlinuz-linux root=/dev/disk/by-label/$root_label rw rootfstype=btrfs rootflags=subvol=$btrfs_rootfs rootwait init=/usr/lib/systemd/systemd

      #initrd /boot/initramfs-linux.img

      }

      parted -a optimal -s ${DISC} mkpart 1 1 ${GUID_PART_SIZE} >${LOG}
      parted -a optimal -s ${DISC} set 1 bios_grub on 腳本自動設置指定分區(qū)為bios_grub

      ip link set enp2s0f0 up
      ip addr add 192.168.1.2/24 dev enp2s0f0
      ip route add default via IP地址
      nano /etc/modules-load.d/virtio-net.conf
      # Load 'virtio-net.ko' at boot.

      virtio-net
      # pacman -S grub
      # grub-install --target=i386-pc --recheck /dev/sda

      提示: 若想自動檢測硬盤上安裝的其它操作系統(tǒng),請在執(zhí)行下面命令前先安裝 os-prober, 即 pacman -S os-prober.

      # grub-mkconfig -o /boot/grub/grub.cfg
      Gummiboot

      安裝 gummiboot, 執(zhí)行 gummiboot install 以安裝 bootloader 至 EFI 系統(tǒng):

      # pacman -S gummiboot
      # gummiboot install

      GRUB

      安裝 grub 和 efibootmgr, 再執(zhí)行 grub-install 來安裝 bootloader:

      # pacman -S grub efibootmgr
      # grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck

      btrfs subvolume create /mnt/arch74_rootfs
      mount -t btrfs -o subvol=arch74_rootfs,space_cache,autodefrag,compress=lzo,noatime /dev/disk/by-label/arch74 /mnt

      顯示當前分區(qū)布局:
      # lsblk -f

      UEFI 用戶也要格式化相應的 EFI 系統(tǒng)分區(qū)(以 /dev/sdaXY 為例):

      # mkfs.vfat -F32 /dev/sdaXY
      # pacman -S dosfstools

      注意: 對于 UEFI 引導模式,磁盤需要有 GPT 分區(qū)表和 Unified Extensible Firmware Interface#EFI 系統(tǒng)分區(qū),F(xiàn)AT32 格式,512 MiB 或更大,gdisk type 為 EF00). 在以下示范中,假設 ESP 被掛載至 /boot.

      在第一扇區(qū)選擇 New (或者按 N) – Enter – Enter 以使用全部剩余空間(或者您也可以輸入確定的大小,比如 "30G") – Enter 以保持默認的十六進制碼 (8300) –

      UEFI boot. It should be marked as EF00 or ef00 type code in gdisk,
      Create a FAT32 partition and in GNU Parted set/activate the boot flag (not legacy_boot flag) on that partition
      Note: If you get the message WARNING: Not enough clusters for a 32 bit FAT!, reduce cluster size with mkfs.fat -s2 -F32 ... or -s1, otherwise the partition may be unreadable by UEFI.
      Shell代碼

      GUID Partition Table aka GPT
      Main article GUID_Partition_Table

      Bit 2 of the attributes for the /boot partition need to be set.
      # sgdisk /dev/sda --attributes=1:set:2

      This would toggle the attribute legacy bios bootable on partition 1

      Verify:
      # sgdisk /dev/sda --attributes=1:show
      1:2:1 (legacy BIOS bootable)

      Install the master boot record:
      # dd bs=440 conv=notrunc count=1 if=/usr/lib/syslinux/gptmbr.bin of=/dev/sda

      Shell代碼

      error filesystem 'btrfs' doesn't support blocklists
      網(wǎng)上也多建議/boot單獨分區(qū),非btrfs,但貌似樓上諸位都是btrfs的/boot分區(qū),需要什么特別的hack嗎
      已解決:還是需要gpt,分一個2M的bios分區(qū),看來grub2還是不能象支持ext4及其它分區(qū)一樣簡單支持btrfs

      額外要求的分區(qū):
      如果您使用 UEFI 主板,您需要創(chuàng)建一個額外的 EFI 系統(tǒng)分區(qū)。

      如果您使用 BIOS 主板(或打算以 BIOS 兼容模式引導),并且您希望在 GPT 分區(qū)驅(qū)動器上安裝 GRUB, 您需要創(chuàng)建一個額外的 1 至 2 MiB,類型代碼為 EF02 的 BIOS 引導分區(qū)。syslinux 則不用

      EF00類型為UEFI分區(qū)

      另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。


      網(wǎng)頁題目:archlinux下安裝上btrfsgpt使用bios_grub方式啟動-創(chuàng)新互聯(lián)
      網(wǎng)頁網(wǎng)址:http://www.ef60e0e.cn/article/ddpdih.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        工布江达县| 澄迈县| 额济纳旗| 莱州市| 金秀| 吴川市| 田东县| 宁明县| 四会市| 东至县| 城固县| 麻阳| 凤台县| 牟定县| 长子县| 忻州市| 宁波市| 宁陕县| 合江县| 昭觉县| 苏尼特右旗| 锡林浩特市| 巴中市| 那曲县| 衡水市| 远安县| 商丘市| 新闻| 饶阳县| 大邑县| 法库县| 榆树市| 靖远县| 宜都市| 德庆县| 确山县| 昂仁县| 环江| 延津县| 寿宁县| 遵义县|