0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

実機のubuntu のパーティションサイズを変更する

Posted at

概要

  • ubuntu 用に切っておいたパーティションの容量が足りなくなってきた
  • 他に空いているパーティションがあるので、ubuntu を入れ直さずにサイズを追加したい
  • ただし、free space が隣接していないので、そのままfree space を割り当てることはできない

手順

1.変更前のパーティション構成をsudo df -h で調べる

もとの構成

Number  Start   End     Size    File system  Name                          Flags
        17.4kB  1049kB  1031kB  Free Space
 1      1049kB  128GB   128GB   fat32        win
 2      128GB   384GB   256GB   ext4         hdd1
 3      384GB   384GB   105MB   fat32        EFI system partition          boot, esp, no_automount
 4      384GB   384GB   16.8MB               Microsoft reserved partition  msftres, no_automount
 5      384GB   511GB   127GB   ntfs         Basic data partition          msftdata
 6      511GB   512GB   849MB   ntfs                                       hidden, diag, no_automount
        512GB   512GB   1384kB  Free Space

2.どこのパーティションを追加に用いるか決める

  • 今回は windows 用に取っていたパーティションを使うことにした

3.電源オフ
4.Live USB から起動する
5.sudo gparted (インストールされていない場合は sudo apt-get install gparted )
6.パーティションの整理

  • 今回であれば
    • 1,5,6 を削除
    • 2 を Resize/Move で拡張
    • 保存

7.再起動

終わり

パーティションをリサイズできました。めでたしめでたし。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?