You are not logged in.

#1 2020-11-03 21:02:07

sked
Guest

How can i resize my main partition within my arch installation? SOLVED

I recently installed arch and made my home partition about 12GB (I did it in order to first install arch and then uninstall ubuntu that I used before arch and then use the size that I had used in the previous ubuntu partition within the arch one ) but I cannot resize this one and I have tried with some partition editor that I have found like minitool partition wizard or niubi partition editor but none works for me to resize the partition, could someone help me and tell me how to modify the size of my partition to a larger one ? PS: Sorry if you can't understand some parts of the text, I've used google translate to write it.

Last edited by sked (2020-11-05 20:32:09)

#2 2020-11-03 21:05:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: How can i resize my main partition within my arch installation? SOLVED

https://bbs.archlinux.org/viewtopic.php?id=57855

Enlarging partitions is easy.  A home partition should be ver easy.  But you have not provided enough information to help.

Why can't you resize the partition?  What goes wrong?  What error messages do you get?

Last edited by Trilby (2020-11-03 21:08:26)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-11-03 21:12:53

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

Trilby wrote:

https://bbs.archlinux.org/viewtopic.php?id=57855

Enlarging partitions is easy.  A home partition should be ver easy.  But you have not provided enough information to help.

Why can't you resize the partition?  What goes wrong?  What error messages do you get?

My error message when trying to expand the partition with cfdisk is "the maximum size is 13421772800 bytes." and with the other tools that I have tried such as niubi partition editor or mini tool partition wizard, the option to extend simply does not appear (having a free space of a total of 40GB).

#4 2020-11-03 21:18:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: How can i resize my main partition within my arch installation? SOLVED

Please describe the complete disk layout or post the output of `fdisk -l`.

Have you deleted the ubuntu partition?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2020-11-03 21:26:38

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

Trilby wrote:

Please describe the complete disk layout or post the output of `fdisk -l`.

Have you deleted the ubuntu partition?

Yes, I have erased the ubuntu partition and with fdisk -l it is the following:

/ dev / sda1 2048 1232895 1230848 601M EFI system
/ dev / sda2 2955264 2988031 32768 16M Microsoft Core Data
/ dev / sda3 2988032 684593151 681605120 325G Microsoft Core Data
/ dev / sda4 684593152 692981759 8388608 4G Linux swap
/ dev / sda5 692981760 719196159 26214400 12.5G Linux filesystem
/ dev / sda6 719196160 746227711 27031552 12.9G Linux boot
/ dev / sda8 974675968 976773119 2097152 1G Windows Recovery Environment


(the partition I want to modify is /dev/sda5)

#6 2020-11-03 21:34:07

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: How can i resize my main partition within my arch installation? SOLVED

There's space between sda6 and sda8, bnut not between sda5 and sda6 - you'll have to move sda6 or swap the function of sda5 and sda6.

Online

#7 2020-11-03 22:00:57

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

seth wrote:

There's space between sda6 and sda8, bnut not between sda5 and sda6 - you'll have to move sda6 or swap the function of sda5 and sda6.

The space between the /dev/sda6 and /dev/sda8 partitions is due to the fact that the ubuntu partition which was / dev / sda7 used to be between those

#8 2020-11-03 22:02:54

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: How can i resize my main partition within my arch installation? SOLVED

Guessed as much, but that doesn't change the status.

seth wrote:

you'll have to move sda6 or swap the function of sda5 and sda6.

You cannot just grow sda5 because sda6 is "in the way".

Online

#9 2020-11-03 22:05:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: How can i resize my main partition within my arch installation? SOLVED

Ah, while just enlarging a partition is very easy, moving partitions takes a little more care.  And as you need to move to move the root partition, I don't believe there is any way to do that from within the running system.  You'll need to use a live medium (or work from windows).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2020-11-03 22:17:56

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

I have already tried using windows to edit the partition with Niubi partition editor and minitool partition wizard.

#11 2020-11-03 22:34:32

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: How can i resize my main partition within my arch installation? SOLVED

"man sfdisk", but as Trilby pointed out, you'll have to do that offline for the root partition (eg. using grml) AND:
When massively tampering w/ your partition table and esp. moving data around YOU WANT TO HAVE A BACKUP!

Online

#12 2020-11-04 01:58:42

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

I've seen a few things googling and I think the problem is about starting partition /dev/sda5 and /dev/sda6:
(/dev/sda5 692981760 719196159
/dev/sda6 719196160 746227711)
Since if I try to increase the start of the /dev/sda6 partition it would affect the increase, would deleting the /dev/sda6 partition be a viable option? (since I have not used it I think for nothing important except root which I suppose if I delete this partition the root should be used in the same /dev/sda5 partition although I am not really sure).

#13 2020-11-04 02:06:04

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: How can i resize my main partition within my arch installation? SOLVED

sked wrote:

I've seen a few things googling and I think the problem is about starting partition /dev/sda5 and /dev/sda6:
(/dev/sda5 692981760 719196159
/dev/sda6 719196160 746227711)
Since if I try to increase the start of the /dev/sda6 partition it would affect the increase, would deleting the /dev/sda6 partition be a viable option? (since I have not used it I think for nothing important except root which I suppose if I delete this partition the root should be used in the same /dev/sda5 partition although I am not really sure).


I'm not fully sure about your setup, but if you are not using UEFI, you can forgo a boot partition and just use the master boot record. But that doesn't necessarily mean you should depending on your setup. A question about this has been asked here. Keep in mind that you need a boot partition if you are using UEFI/EFI.

Offline

#14 2020-11-04 02:09:07

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

Toad39 wrote:
sked wrote:

I've seen a few things googling and I think the problem is about starting partition /dev/sda5 and /dev/sda6:
(/dev/sda5 692981760 719196159
/dev/sda6 719196160 746227711)
Since if I try to increase the start of the /dev/sda6 partition it would affect the increase, would deleting the /dev/sda6 partition be a viable option? (since I have not used it I think for nothing important except root which I suppose if I delete this partition the root should be used in the same /dev/sda5 partition although I am not really sure).


I'm not fully sure about your setup, but if you are not using UEFI, you can forgo a boot partition and just use the master boot record. But that doesn't necessarily mean you should depending on your setup. A question about this has been asked here. Keep in mind that you need a boot partition if you are using UEFI/EFI.

I use the windows boot partition since I am doing dual boot because if I created one from scratch I would have to believe until I reinstall windows, and yes, I use uefi.

#15 2020-11-04 02:10:59

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: How can i resize my main partition within my arch installation? SOLVED

sked wrote:
Toad39 wrote:
sked wrote:

I've seen a few things googling and I think the problem is about starting partition /dev/sda5 and /dev/sda6:
(/dev/sda5 692981760 719196159
/dev/sda6 719196160 746227711)
Since if I try to increase the start of the /dev/sda6 partition it would affect the increase, would deleting the /dev/sda6 partition be a viable option? (since I have not used it I think for nothing important except root which I suppose if I delete this partition the root should be used in the same /dev/sda5 partition although I am not really sure).


I'm not fully sure about your setup, but if you are not using UEFI, you can forgo a boot partition and just use the master boot record. But that doesn't necessarily mean you should depending on your setup. A question about this has been asked here. Keep in mind that you need a boot partition if you are using UEFI/EFI.

I use the windows boot partition since I am doing dual boot because if I created one from scratch I would have to believe until I reinstall windows, and yes, I use uefi.

Oh, ok. If you have UEFI, you need a boot partition of some kind. But why do you have both /dev/sda1 and /dev/sda6? I think you might be able to get rid of one. Is /dev/sda1 for Windows?

Offline

#16 2020-11-04 02:17:57

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

Toad39 wrote:
sked wrote:
Toad39 wrote:

I'm not fully sure about your setup, but if you are not using UEFI, you can forgo a boot partition and just use the master boot record. But that doesn't necessarily mean you should depending on your setup. A question about this has been asked here. Keep in mind that you need a boot partition if you are using UEFI/EFI.

I use the windows boot partition since I am doing dual boot because if I created one from scratch I would have to believe until I reinstall windows, and yes, I use uefi.

Oh, ok. If you have UEFI, you need a boot partition of some kind. But why do you have both /dev/sda1 and /dev/sda6? I think you might be able to get rid of one. Is /dev/sda1 for Windows?

Yes, the / dev / sda1 partition is the windows one (although I increase the size to be able to put the arch linux grub and the images, that is, I use it for arch linux and windows 10), the / dev / sda6 partition really is I had planned to put it as "Linux root" (and I think I put it like that within the installation), but, I really don't think it has any use since it puts me in type "Linux Start".

#17 2020-11-04 02:24:26

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: How can i resize my main partition within my arch installation? SOLVED

sked wrote:
Toad39 wrote:
sked wrote:

I use the windows boot partition since I am doing dual boot because if I created one from scratch I would have to believe until I reinstall windows, and yes, I use uefi.

Oh, ok. If you have UEFI, you need a boot partition of some kind. But why do you have both /dev/sda1 and /dev/sda6? I think you might be able to get rid of one. Is /dev/sda1 for Windows?

Yes, the / dev / sda1 partition is the windows one (although I increase the size to be able to put the arch linux grub and the images, that is, I use it for arch linux and windows 10), the / dev / sda6 partition really is I had planned to put it as "Linux root" (and I think I put it like that within the installation), but, I really don't think it has any use since it puts me in type "Linux Start".

You won't need two EFI system partitions, so you might be able to delete the /dev/sda6 partition and use this guide to install your bootloader on the windows ESP. But why is /dev/sda6 so large if it is a boot partition? Was it a typo, and supposed to be "Linux root?" Sorry I saw that just now. You probably would be able to use /dev/sda6 for your new archlinux root. You would be able to forgo two partitions in favor of one, because you can just keep /home on the same partition as /. So, because the space is taken, I think you need to delete one of the partitions and resize the other one.

Last edited by Toad39 (2020-11-04 02:29:03)

Offline

#18 2020-11-04 02:31:43

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

Toad39 wrote:
sked wrote:
Toad39 wrote:

Oh, ok. If you have UEFI, you need a boot partition of some kind. But why do you have both /dev/sda1 and /dev/sda6? I think you might be able to get rid of one. Is /dev/sda1 for Windows?

Yes, the / dev / sda1 partition is the windows one (although I increase the size to be able to put the arch linux grub and the images, that is, I use it for arch linux and windows 10), the / dev / sda6 partition really is I had planned to put it as "Linux root" (and I think I put it like that within the installation), but, I really don't think it has any use since it puts me in type "Linux Start".

You won't need two EFI system partitions, so you might be able to delete the /dev/sda6 partition and use this guide to install your bootloader on the windows ESP. But why is /dev/sda6 so large if it is a boot partition? Was it a typo, and supposed to be "Linux root?" Sorry I saw that just now. You probably would be able to use /dev/sda6 for your new archlinux root. You would be able to forgo two partitions in favor of one, because you can just keep /home on the same partition as /. So, because the space is taken, I think you need to delete one of the partitions and resize the other one.

I think I was wrong and put boot instead of root haha, all my files are in /dev/sda5 and there is nothing in /dev/sda6 except for a folder called lost+found or something like that (which does not have nothing).

#19 2020-11-04 02:41:17

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: How can i resize my main partition within my arch installation? SOLVED

sked wrote:

I think I was wrong and put boot instead of root haha, all my files are in /dev/sda5 and there is nothing in /dev/sda6 except for a folder called lost+found or something like that (which does not have nothing).

The lost+found folder is where pieces of corrupted files that have been recovered are placed. What's in /dev/sda5, then? Is it a typical Linux root, usr, bin, dev, var, etc?

Offline

#20 2020-11-04 03:56:47

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

Toad39 wrote:
sked wrote:

I think I was wrong and put boot instead of root haha, all my files are in /dev/sda5 and there is nothing in /dev/sda6 except for a folder called lost+found or something like that (which does not have nothing).

The lost+found folder is where pieces of corrupted files that have been recovered are placed. What's in /dev/sda5, then? Is it a typical Linux root, usr, bin, dev, var, etc?

Yes, it is a typical root with everything you mention.

#21 2020-11-04 04:25:22

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: How can i resize my main partition within my arch installation? SOLVED

sked wrote:
Toad39 wrote:
sked wrote:

I think I was wrong and put boot instead of root haha, all my files are in /dev/sda5 and there is nothing in /dev/sda6 except for a folder called lost+found or something like that (which does not have nothing).

The lost+found folder is where pieces of corrupted files that have been recovered are placed. What's in /dev/sda5, then? Is it a typical Linux root, usr, bin, dev, var, etc?

Yes, it is a typical root with everything you mention.

Okay, that means there is probably nothing on /dev/sda6. Just to be sure, can you run the following command on it?

ls -la

That lists if there are any files or directories that begin with a period that may have data.

Offline

#22 2020-11-04 04:51:06

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

Toad39 wrote:
sked wrote:
Toad39 wrote:

The lost+found folder is where pieces of corrupted files that have been recovered are placed. What's in /dev/sda5, then? Is it a typical Linux root, usr, bin, dev, var, etc?

Yes, it is a typical root with everything you mention.

Okay, that means there is probably nothing on /dev/sda6. Just to be sure, can you run the following command on it?

ls -la

That lists if there are any files or directories that begin with a period that may have data.

ok, I already did that and put ls -la and it gives me the following:
total 20
drwxrwxrwx 3 root root 4096 Oct 29 20:09.
drwxr-x --- + 3 root root 60 Nov 4 01:44 ..
drwx ------ 2 root root 16384 Oct 29 20:09 lost + found
I also made a cd in lost + found to later make an ls where nothing appeared

#23 2020-11-04 06:51:30

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: How can i resize my main partition within my arch installation? SOLVED

So sda5 is your root partition and sda6 proabably an unused /home partition?
If you boot archlinux, what's the output of "mount" and "lsblk -f"?

Online

#24 2020-11-04 20:55:18

sked
Guest

Re: How can i resize my main partition within my arch installation? SOLVED

seth wrote:

So sda5 is your root partition and sda6 proabably an unused /home partition?
If you boot archlinux, what's the output of "mount" and "lsblk -f"?

I guess so (answering the first) and what it says once put "mount" is:
proc on / proc type proc (rw, nosuid, nodev, noexec, relatime)
sys on / sys type sysfs (rw, nosuid, nodev, noexec, relatime)
dev on / dev type devtmpfs (rw, nosuid, relatime, size = 1937708k, nr_inodes = 484427, mode = 755, inode64)
run on / run type tmpfs (rw, nosuid, nodev, relatime, mode = 755, inode64)
efivarfs on / sys / firmware / efi / efivars type efivarfs (rw, nosuid, nodev, noexec, relatime)
/ dev / sda5 on / type ext4 (rw, relatime)
securityfs on / sys / kernel / security type securityfs (rw, nosuid, nodev, noexec, relatime)
tmpfs on / dev / shm type tmpfs (rw, nosuid, nodev, inode64)
devpts on / dev / pts type devpts (rw, nosuid, noexec, relatime, gid = 5, mode = 620, ptmxmode = 000)
tmpfs on / sys / fs / cgroup type tmpfs (ro, nosuid, nodev, noexec, size = 4096k, nr_inodes = 1024, mode = 755, inode64)
cgroup2 on / sys / fs / cgroup / unified type cgroup2 (rw, nosuid, nodev, noexec, relatime, nsdelegate)
cgroup on / sys / fs / cgroup / systemd type cgroup (rw, nosuid, nodev, noexec, relatime, xattr, name = systemd)
pstore on / sys / fs / pstore type pstore (rw, nosuid, nodev, noexec, relatime)
none on / sys / fs / bpf type bpf (rw, nosuid, nodev, noexec, relatime, mode = 700)
cgroup on / sys / fs / cgroup / perf_event type cgroup (rw, nosuid, nodev, noexec, relatime, perf_event)
cgroup on / sys / fs / cgroup / net_cls, net_prio type cgroup (rw, nosuid, nodev, noexec, relatime, net_cls, net_prio)
cgroup on / sys / fs / cgroup / blkio type cgroup (rw, nosuid, nodev, noexec, relatime, blkio)
cgroup on / sys / fs / cgroup / cpuset type cgroup (rw, nosuid, nodev, noexec, relatime, cpuset)
cgroup on / sys / fs / cgroup / cpu, cpuacct type cgroup (rw, nosuid, nodev, noexec, relatime, cpu, cpuacct)
cgroup on / sys / fs / cgroup / hugetlb type cgroup (rw, nosuid, nodev, noexec, relatime, hugetlb)
cgroup on / sys / fs / cgroup / devices type cgroup (rw, nosuid, nodev, noexec, relatime, devices)
cgroup on / sys / fs / cgroup / pids type cgroup (rw, nosuid, nodev, noexec, relatime, pids)
cgroup on / sys / fs / cgroup / memory type cgroup (rw, nosuid, nodev, noexec, relatime, memory)
cgroup on / sys / fs / cgroup / rdma type cgroup (rw, nosuid, nodev, noexec, relatime, rdma)
cgroup on / sys / fs / cgroup / freezer type cgroup (rw, nosuid, nodev, noexec, relatime, freezer)
systemd-1 on / proc / sys / fs / binfmt_misc type autofs (rw, relatime, fd = 29, pgrp = 1, timeout = 0, minproto = 5, maxproto = 5, direct, pipe_ino = 13825)
tracefs on / sys / kernel / tracing type tracefs (rw, nosuid, nodev, noexec, relatime)
mqueue on / dev / mqueue type mqueue (rw, nosuid, nodev, noexec, relatime)
debugfs on / sys / kernel / debug type debugfs (rw, nosuid, nodev, noexec, relatime)
hugetlbfs on / dev / hugepages type hugetlbfs (rw, relatime, pagesize = 2M)
configfs on / sys / kernel / config type configfs (rw, nosuid, nodev, noexec, relatime)
tmpfs on / tmp type tmpfs (rw, nosuid, nodev, size = 1945656k, nr_inodes = 409600, inode64)
/ dev / sda1 on / efi type vfat (rw, relatime, fmask = 0022, dmask = 0022, codepage = 437, iocharset = iso8859-1, shortname = mixed, utf8, errors = remount-ro)
tmpfs on / run / user / 1000 type tmpfs (rw, nosuid, nodev, relatime, size = 389128k, nr_inodes = 97282, mode = 700, uid = 1000, gid = 1000, inode64)
fusectl on / sys / fs / fuse / connections type fusectl (rw, nosuid, nodev, noexec, relatime)
gvfsd-fuse on / run / user / 1000 / gvfs type fuse.gvfsd-fuse (rw, nosuid, nodev, relatime, user_id = 1000, group_id = 1000)
/ dev / sda6 on / run / media / sked / 7a06223b-10f2-48c1-bfe0-a140a395b5ad type ext4 (rw, nosuid, nodev, relatime, uhelper = udisks2)
and what you put with "lsblk -f" is the following:
sda
├─sda1 vfat FAT32 ESP 7301-A310 502.6M 16% / efi
├─sda2
├─sda3 ntfs Acer 01D6AE426E86C950
├─sda4 swap 1 ccd52f2a-a1fd-46db-88d4-1d4bab4fd23c [SWAP]
├─sda5 ext4 1.0 f4dce0c3-c2fd-456d-a06f-21c7df264713 1.5G 83% /
├─sda6 ext4 1.0 7a06223b-10f2-48c1-bfe0-a140a395b5ad 11.9G 0% / run / media / sked / 7a06223b-10f2-48c1-bfe0-a140a395b5ad
└─sda8 ntfs Recovery E0F005C4F005A240

Last edited by sked (2021-02-02 18:19:47)

#25 2020-11-04 21:27:08

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: How can i resize my main partition within my arch installation? SOLVED

Please use "code" tags, https://bbs.archlinux.org/help.php#bbcode - also there're stray  blanks around the slashes.

/run/media/lummostre/7a06223b-10f2-48c1-bfe0-a140a395b5ad is some runtime mount - you have no /home partition.
If you want to make sda6 your home partition, you can just grow it.

If you don't want a home partition (and since sda6 appears to be empty, check /run/media/lummostre/7a06223b-10f2-48c1-bfe0-a140a395b5ad) you can just delete that partition and grow sda5
Dont forget to also grow the filesystem, https://wiki.archlinux.org/index.php/Pa … partitions

Online

Board footer

Powered by FluxBB