PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=2.45 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=59 time=2.47 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=59 time=2.42 ms
出現類似的東西應該就是連上了
切割硬碟
如果有電腦裡面已經有 Windows 的話,要先去磁碟管理割出一些空間給 Linux 使用 通常使用 Linux 會割出
EFI (開機用通常已經有了,假設他在 /dev/sda1)
Swap (dev/sda2)
Root (dev/sda3)
Home (dev/sda4)
把 Home 獨立出來的用意是重灌的時候比較方便的樣子,大小的話 EFI 2~300M,Root 大概 3, 40G 就可以了 使用 gdisk: 這裡 /dev/sdx 的 x 要看你要灌在哪個硬碟 可以先用 fdisk -l 看硬碟的狀況
1 2 3 4 5 6 7 8 9 10 11 12
$ gdisk /dev/sda GPT fdisk (gdisk) version 1.0.3
Partition table scan: MBR: protective BSD: not present APM: not present GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help):
然後打個 ? 看看他要怎麼用
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
b back up GPT data to a file c change a partition's name d delete a partition i show detailed information on a partition l list known partition types n add a new partition o create a new empty GUID partition table (GPT) p print the partition table q quit without saving changes r recovery and transformation options (experts only) s sort partitions t change a partition's type code v verify disk w write table to disk and exit x extra functionality (experts only) ? print this menu
所以新增磁區是用 n 接著它會問你 First sector、Last sector 跟 Hex code First sector 按 Enter 就好 Last sector 輸入你要的磁區大小 Hex code 要看你割什麼 按 L 可以看表
1 2 3 4 5 6 7
0700 Microsoft basic data 0c01 Microsoft reserved 2700 Windows RE 3000 ONIE boot 3001 ONIE config 3900 Plan 9 4100 PowerPC PReP boot 4200 Windows LDM data 4201 Windows LDM metadata 4202 Windows Storage Spac 7501 IBM GPFS 7f00 ChromeOS kernel 7f01 ChromeOS root 7f02 ChromeOS reserved 8200 Linux swap 8300 Linux filesystem 8301 Linux reserved 8302 Linux /home 8303 Linux x86 root (/) 8304 Linux x86-64 root (/ 8305 Linux ARM64 root (/)
要注意的是
1
ef00 EFI System 8300 Linux filesystem 8200 Linux swap
這裡示範其中一個:
1 2 3 4 5 6 7
Command (? for help): n Partition number (3-128, default 3): First sector (34-1953525134, default = 878848000) or {+-}size{KMGTP}: Last sector (878848000-1953525134, default = 1953525134) or {+-}size{KMGTP}: +16G Current type is 'Linux filesystem' Hex code or GUID (L to show codes, Enter = 8300): 8200 Changed type of partition to 'Linux filesystem'