ext4パーティションのサイズを変更してスワップスペースの半分を割り当てようとしています。スワップパーティション(/dev/sda6)は現在、ext4パーティション(/dev/sda5)の背後にあります。
からfdisk
ext4パーティションとswapパーティションを削除しましたが、新しいパーティションを作成して既存のext4パーティションと同じ場所に起動しようとすると、fdiskは私の値がforに入力されたと主張してそれを許可しません。最初のセクタ領域が範囲外です。
Ubuntu 14.04を使用しています。これをどのように強制するか、ここで正しい手順は何ですか?拡張パーティションで何をすべきですか?
whlt@myBox:~$ sudo fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x16d16f08
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 218609663 109303808 7 HPFS/NTFS/exFAT
/dev/sda2 218611710 250068991 15728641 5 Extended
/dev/sda5 218611712 233865215 7626752 83 Linux
/dev/sda6 233867264 250068991 8100864 82 Linux swap / Solaris
Command (m for help): d
Partition number (1-6): 6
Command (m for help): d
Partition number (1-5): 5
Command (m for help): p
Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x16d16f08
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 218609663 109303808 7 HPFS/NTFS/exFAT
/dev/sda2 218611710 250068991 15728641 5 Extended
Command (m for help): n
Partition type:
p primary (1 primary, 1 extended, 2 free)
l logical (numbered from 5)
Select (default p): l
Adding logical partition 5
First sector (218613758-250068991, default 218613758): 218611712
Value out of range.
First sector (218613758-250068991, default 218613758):
ベストアンサー1
利用できないセクタを使用しようとしています。
First sector (218613758-250068991, default 218613758): 218611712
218611712を218613758に変更してください...
なぜできないのかよくわかりません。
拡張sda2が空の場合でも、削除して再生成してみてください。 sda1とsda2の間に空きスペースがあるようです。
セクタがシリンダ材料と一致しない場合があります。