Gentoo:磁盘分区:修订间差异
imported>Soleverlee |
imported>Soleverlee |
||
第6行: | 第6行: | ||
刻录[http://www.system-rescue-cd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick SystemRescueCd]并进入系统,开始分区。 | 刻录[http://www.system-rescue-cd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick SystemRescueCd]并进入系统,开始分区。 | ||
<pre> | |||
Disk /dev/sdb: 223.6 GiB, 240057409536 bytes, 468862128 sectors | |||
Units: sectors of 1 * 512 = 512 bytes | |||
Sector size (logical/physical): 512 bytes / 4096 bytes | |||
I/O size (minimum/optimal): 4096 bytes / 4096 bytes | |||
Disklabel type: gpt | |||
Disk identifier: 19FC4662-CDC6-44A2-A78B-717085B89743 | |||
Device Start End Sectors Size Type | |||
/dev/sdb1 2048 616447 614400 300M Windows recovery environment | |||
/dev/sdb2 616448 821247 204800 100M EFI System | |||
/dev/sdb3 821248 1083391 262144 128M Microsoft reserved | |||
/dev/sdb4 1083392 168855551 167772160 80G Microsoft basic data | |||
/dev/sdb5 168855552 378570751 209715200 100G Microsoft basic data | |||
livecd ~ # gdisk /dev/sdb | |||
GPT fdisk (gdisk) version 1.0.1 | |||
Partition table scan: | |||
MBR: protective | |||
BSD: not present | |||
APM: not present | |||
GPT: present | |||
Found valid GPT with protective MBR; using GPT. | |||
Command (? for help): p | |||
Disk /dev/sdb: 468862128 sectors, 223.6 GiB | |||
Logical sector size: 512 bytes | |||
Disk identifier (GUID): 19FC4662-CDC6-44A2-A78B-717085B89743 | |||
Partition table holds up to 128 entries | |||
First usable sector is 34, last usable sector is 468862094 | |||
Partitions will be aligned on 2048-sector boundaries | |||
Total free space is 90293357 sectors (43.1 GiB) | |||
Number Start (sector) End (sector) Size Code Name | |||
1 2048 616447 300.0 MiB 2700 Basic data partition | |||
2 616448 821247 100.0 MiB EF00 EFI system partition | |||
3 821248 1083391 128.0 MiB 0C01 Microsoft reserved ... | |||
4 1083392 168855551 80.0 GiB 0700 Basic data partition | |||
5 168855552 378570751 100.0 GiB 0700 Basic data partition | |||
</pre> | |||
=磁盘分区= | =磁盘分区= |
2016年12月15日 (四) 13:55的版本
本文记载win10与gentoo双系统分区。参考这里。
环境准备
同时需要禁用掉快速启动。原因是:Without it, Windows' filesystems are not unmounted even when you're using Linux, so editing Windows files can result in data loss. Even if you do not intend to share filesystems, the EFI System Partition is likely to be damaged on an EFI system.
刻录SystemRescueCd并进入系统,开始分区。
Disk /dev/sdb: 223.6 GiB, 240057409536 bytes, 468862128 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 19FC4662-CDC6-44A2-A78B-717085B89743 Device Start End Sectors Size Type /dev/sdb1 2048 616447 614400 300M Windows recovery environment /dev/sdb2 616448 821247 204800 100M EFI System /dev/sdb3 821248 1083391 262144 128M Microsoft reserved /dev/sdb4 1083392 168855551 167772160 80G Microsoft basic data /dev/sdb5 168855552 378570751 209715200 100G Microsoft basic data livecd ~ # gdisk /dev/sdb GPT fdisk (gdisk) version 1.0.1 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Command (? for help): p Disk /dev/sdb: 468862128 sectors, 223.6 GiB Logical sector size: 512 bytes Disk identifier (GUID): 19FC4662-CDC6-44A2-A78B-717085B89743 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 468862094 Partitions will be aligned on 2048-sector boundaries Total free space is 90293357 sectors (43.1 GiB) Number Start (sector) End (sector) Size Code Name 1 2048 616447 300.0 MiB 2700 Basic data partition 2 616448 821247 100.0 MiB EF00 EFI system partition 3 821248 1083391 128.0 MiB 0C01 Microsoft reserved ... 4 1083392 168855551 80.0 GiB 0700 Basic data partition 5 168855552 378570751 100.0 GiB 0700 Basic data partition
磁盘分区
gdisk /dev/sdx
...
mkfs.ext2 /dev/sda1
mkfs.ext4 /dev/sda3
mkswap /dev/sda2
swapon /dev/sda2
挂载磁盘
mount /dev/sda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda1 /mnt/gentoo/boot