2015年01月09日_安裝archlinux中一些注意事項


  一直以來是用win或ubuntu辦公。新手不懂高手怎么那么喜歡linux,做完一個大項目后才發覺一個快速運行的系統多么重要。ubuntu與win7的娛樂化辦公相比雖然快一些,但是在跑資源的辦公方面感覺還是略差一節,現決定使用archlinux及輕量級桌面,把所有能用得起的物理資源全部用在工作軟件方面。2015年01月09日在安裝時出現了一些小問題,現記錄如下,供以后自己及有心人查閱。

1. arch wiki文檔中可切換到中文查看。確保順序沒錯

2. vi中搜索關鍵字:  /vi  

 vi中的剪切一行:dd

 vi中的復制一行:yy

 vi中的粘貼一行:p

 將所有mirrorlist添加注釋--->  :1,$ s/^Server/#Server/g

3. pacstrap /mnt base base-devel 過程中,出現過斷網的情況,此時更新包會出錯,即沒有下載完全的情況。出現這種情況后,使用   rm      mnt/var/cache/pacman/pkg/*.part 命令將未下載完全的包刪除掉,重新執行

4. 安裝grub時出現一個報錯:

1 # grub-install /dev/sda
2 /usr/sbin/grub-setup: warn: This GPT partition label has no BIOS Boot Partition; embedding won't be possible!.
3 /usr/sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
4 /usr/sbin/grub-setup: error: will not proceed with blocklists.

解決辦法:

查看磁盤分區

1 #  parted /dev/sda unit s print
2 Model: ATA QEMU HARDDISK (scsi)
3 Disk /dev/sda: 20971520s
4 Sector size (logical/physical): 512B/512B
5 Partition Table: gpt
6 
7 Number  Start   End        Size       File system  Name       Flags
8  1      34s     97656s     97623s     ext2         bios_grub  boot
9  2      98304s  20969471s  20871168s  ext4         rootfs

flag標記需要置為 : bios_grub  而非boot

輸入命令:

1 # parted /dev/sda set 1 bios_grub on
2 Information: You may need to update /etc/fstab.
3 
4 # partprobe

解決。

再次查看:

1 #  parted /dev/sda unit s print
2 Model: ATA QEMU HARDDISK (scsi)
3 Disk /dev/sda: 20971520s
4 Sector size (logical/physical): 512B/512B
5 Partition Table: gpt
6 
7 Number  Start   End        Size       File system  Name       Flags
8  1      34s     97656s     97623s     ext2         bios_grub  bios_grub
9  2      98304s  20969471s  20871168s  ext4         rootfs

再次安裝grub : 

1 # grub-install /dev/sda
2 Installation finished. No error reported.

OK ! 解決!

 

暫時記錄這么些,再遇到問題再進行記錄。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM