分区教训

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

分区教训

#1

帖子 自由建客 » 2015-07-30 22:23

GPT,无论用 BIOS 还是 UEFI。开头都分一个小的分区,最小 1M,我给 10M,类型为 21686148-6449-6E6F-744E-656564454649,fdisk 中为 04 BIOS boot。
最后一个分区不要用完磁盘,末尾 1M 空出不要用,我空 10M。
onlylove
论坛版主
帖子: 5230
注册时间: 2007-01-14 16:23

Re: 分区教训

#2

帖子 onlylove » 2015-07-30 22:29

这是为何?
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 分区教训

#3

帖子 adagio » 2015-07-31 0:58

onlylove 写了:这是为何?
同问,难道还能兼容MBR不成?
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
primes
帖子: 138
注册时间: 2007-05-10 11:43
系统: Ubuntu18.04、Win 10

Re: 分区教训

#4

帖子 primes » 2015-07-31 1:18

什么格式?fat32?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 分区教训

#5

帖子 poloshiao » 2015-07-31 7:44

GPT
fdisk
1. Ubuntu 14.04 及 以前的 fdisk 不適用於 GPT 其結果 不正確 無參考價值
http://manpages.ubuntu.com/manpages/tru ... isk.8.html
fdisk does not understand GUID partition tables (GPTs) and it is not designed for large partitions. In these cases, use the more advanced GNU parted(8).
1-1. 請使用 gdisk 或 parted (圖形前端 gparted)

2. Ubuntu 14.10 及 以後的 fdisk 適用於 GPT
http://manpages.ubuntu.com/manpages/uto ... isk.8.html
fdisk is a dialog-driven program for creation and manipulation of partition tables. It understands GPT, MBR, Sun, SGI and BSD partition tables.

3. 如果不是 ubuntu 而是其他 作業系統 請查一下 fdisk 版本
fdisk -V # V 大寫
xfcy
帖子: 113
注册时间: 2011-11-26 12:07

Re: 分区教训

#6

帖子 xfcy » 2015-07-31 8:17

poloshiao 写了:
GPT
fdisk
1. Ubuntu 14.04 及 以前的 fdisk 不適用於 GPT 其結果 不正確 無參考價值
http://manpages.ubuntu.com/manpages/tru ... isk.8.html
fdisk does not understand GUID partition tables (GPTs) and it is not designed for large partitions. In these cases, use the more advanced GNU parted(8).
1-1. 請使用 gdisk 或 parted (圖形前端 gparted)

2. Ubuntu 14.10 及 以後的 fdisk 適用於 GPT
http://manpages.ubuntu.com/manpages/uto ... isk.8.html
fdisk is a dialog-driven program for creation and manipulation of partition tables. It understands GPT, MBR, Sun, SGI and BSD partition tables.

3. 如果不是 ubuntu 而是其他 作業系統 請查一下 fdisk 版本
fdisk -V # V 大寫
也就是说kubuntu14.04也不支持GPT分区了?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 分区教训

#7

帖子 poloshiao » 2015-07-31 8:27

也就是说kubuntu14.04也不支持GPT分区了?
1. 不是
上面只有說 fdisk 指令 不支持 GPT
可以使用 parted gparted gdisk 支持 GPT

2. 補充
kubuntu14.04
2-1. 如果 開機硬盤是 GPT
2-1-1. 開機韌體是 Legacy Bios
開機硬盤需要額外分割一個 BIOS Boot Partition 分割類型 bios_grub 不需掛載
參見
http://mcs.une.edu.au/doc/grub2-tools/g ... stallation
4.4 BIOS installation
GPT
2-1-2. 開機韌體是 UEFI
開機硬盤需要額外分割一個 efi system Partition 分割類型 FAT32 或 EFI boot partition 掛載 /boot/efi 參見
https://help.ubuntu.com/community/UEFI# ... _partition
2-2. 如果 非開機硬盤是 GPT
最多可以分割成 128 個主分割區
沒有特別要求跟 2-1 類似的 boot partition 或 system partition
回复