Extending a partition on usb

Forum rules
Before you post please read this
Post Reply
Mercuzio
Level 1
Level 1
Posts: 48
Joined: Mon May 09, 2016 3:49 pm
Location: Verona /Ξ\ Italy

Extending a partition on usb

Post by Mercuzio » Thu Sep 27, 2018 12:28 pm

Ciao. I've created a full bootable Linux usb. Is it possible to extend the ext4 partiton from 25 Gb to 50 Gb or should create a new full installation ?

gm10
Level 12
Level 12
Posts: 4163
Joined: Thu Jun 21, 2018 5:11 pm

Re: Extending a partition on usb

Post by gm10 » Thu Sep 27, 2018 12:33 pm

You can use e.g. GParted for that (may have to install it first).

Mercuzio
Level 1
Level 1
Posts: 48
Joined: Mon May 09, 2016 3:49 pm
Location: Verona /Ξ\ Italy

Re: Extending a partition on usb

Post by Mercuzio » Thu Sep 27, 2018 12:36 pm

gm10 wrote:
Thu Sep 27, 2018 12:33 pm
You can use e.g. GParted for that (may have to install it first).
From the same o.s. ?

gm10
Level 12
Level 12
Posts: 4163
Joined: Thu Jun 21, 2018 5:11 pm

Re: Extending a partition on usb

Post by gm10 » Thu Sep 27, 2018 12:54 pm

Mercuzio wrote:
Thu Sep 27, 2018 12:36 pm
gm10 wrote:
Thu Sep 27, 2018 12:33 pm
You can use e.g. GParted for that (may have to install it first).
From the same o.s. ?
Yes. As long as all you want to do is increase the partition size as you said then there's no problem, GParted should let you do that even to a mounted root partition.

It's only moving or shrinking partitions that cannot safely be done to a mounted partition because it involves moving data, but extending a partition just involves changing a few values in the partition table, that's safe.

Mercuzio
Level 1
Level 1
Posts: 48
Joined: Mon May 09, 2016 3:49 pm
Location: Verona /Ξ\ Italy

Re: Extending a partition on usb

Post by Mercuzio » Fri Sep 28, 2018 9:53 am

gm10 wrote:
Thu Sep 27, 2018 12:54 pm
Mercuzio wrote:
Thu Sep 27, 2018 12:36 pm
gm10 wrote:
Thu Sep 27, 2018 12:33 pm
You can use e.g. GParted for that (may have to install it first).
From the same o.s. ?
Yes. As long as all you want to do is increase the partition size as you said then there's no problem, GParted should let you do that even to a mounted root partition.

It's only moving or shrinking partitions that cannot safely be done to a mounted partition because it involves moving data, but extending a partition just involves changing a few values in the partition table, that's safe.
Great

Post Reply

Return to “Mounting Partitions”