You are not logged in.

#1 2022-08-30 18:45:19

DeerFreak
Member
From: Bavaria
Registered: 2022-08-30
Posts: 2

Fdisk can not create new disks [SOLVED]

I am following the installation guide in the wiki. However, when trying to set up the partitions with `fdisk` I get the following output when trying to write:
```
Re-reading the partition table failed.: Invalid argument

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or partx(8).
```
Rebooting does not help for me. Running partprobe or partx did not show any information about the modified partition. I can not modify my partitions. What are the best steps to solve this issue? All steps in the installation guide up until this point worked as described in the wiki. On my machine there are still partitions from a previous installation of Linux, which I am trying to frankenstein.

Thank you!

Last edited by DeerFreak (2022-08-30 20:39:12)

Offline

#2 2022-08-30 19:22:09

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Fdisk can not create new disks [SOLVED]

What fdisk command are you running?

What's the output of...

lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,UUID

PS - This forum uses BBCode instead of markup. See the following link...
https://bbs.archlinux.org/help.php#bbcode


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-08-30 19:55:40

DeerFreak
Member
From: Bavaria
Registered: 2022-08-30
Posts: 2

Re: Fdisk can not create new disks [SOLVED]

I am running (the util-linux version)

fdisk /dev/nvme0n1p2

where I then create a new GPT disklabel with g, and then create two different partitions. One for swap, one root-, and one home-partition.
The out of the list command is:

NAME            FSTYPE    SIZE     MOUNTPOINT            LABEL               UUID
loop0             squashfs 680M   /run/archiso/airootfs
sda                iso9669   29.3G                                    ARCH_202208 2022-08-05-11-09-34-00
┠sda1            iso9660   773M   /run/archiso/bootmnt ARCH_202208 2022-08-05-11-09-34-00
┗sda2            vfat         13M      ARCHISO_EFI                                    ACE9-8D8E
nvme0n1                      953G
┠nvme0n1p1 vfat         512M    C047-4D5A
┗nvme0n1p2                953G

I think I might have figured out what is going wrong here because of your kind help. I was trying to partition a partition even further, which in itself is an invalid command. Thank you for kind help.

Offline

#4 2022-08-30 20:30:33

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Fdisk can not create new disks [SOLVED]

DeerFreak wrote:

I think I might have figured out what is going wrong here because of your kind help. I was trying to partition a partition even further, which in itself is an invalid command. Thank you for kind help.

Correct. You need to point at the whole drive instead of the partition...

fdisk  /dev/nvme0n1

If that fixes the issue then please remember to mark the thread as [SOLVED].
CoC - How to post


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB