You are not logged in.

#1 2016-04-21 15:34:53

moesi
Member
Registered: 2014-02-27
Posts: 48

[SOLVED] with cgdisk resized partition but size not changed...

Hi!

Today i installed a second SSD to my laptop. I moved my home partition to the new ssd.
Now i resized the root partition with live-arch-flashdrive and cgdisk...

i deleted the root and home partition and created the root again with new size. (startpoints are the same.)
I created new fstab and so on and then rebooted.

It boots without a problem.

with df-command i see that the partition size has not been changed.
Did i miss something?

I am aware that it may brake the whole partition but i wanted to try this before comlete install everything fresh....


greetings
Moesi

Last edited by moesi (2016-04-21 16:11:58)

Offline

#2 2016-04-21 15:36:41

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] with cgdisk resized partition but size not changed...

You resized the partition, but did you also resize the filesystem on it?

Offline

#3 2016-04-21 15:44:53

moesi
Member
Registered: 2014-02-27
Posts: 48

Re: [SOLVED] with cgdisk resized partition but size not changed...

No, i dont think so. Is this somehow possible afterwards now?

EDIT: I think i should run:

resize2fs /dev/nvme...

Is this right? Should i do this in live-cd-mode?

Last edited by moesi (2016-04-21 15:48:00)

Offline

#4 2016-04-21 15:56:48

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: [SOLVED] with cgdisk resized partition but size not changed...

Yes, you should do it from a LiveCD.  The volume cannot be mounted (booted from) when you're modifying it.

An easy LiveCD to use is: GParted.  The CD boots into a graphical interface and has all the tools needed for managing hard drives.

Offline

#5 2016-04-21 16:07:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] with cgdisk resized partition but size not changed...

Yes, resize2fs should do it (assuming it's a ext{2,3,4} filesystem), but I honestly have never used it before, so I can't give you much guidance there.

Offline

#6 2016-04-21 16:11:35

moesi
Member
Registered: 2014-02-27
Posts: 48

Re: [SOLVED] with cgdisk resized partition but size not changed...

Great!!!
Thank you! I just used the arch-live-usb again and it worked without any problems!

Moesi

Offline

Board footer

Powered by FluxBB