You are not logged in.

#1 2023-06-30 20:11:26

forward_one
Member
Registered: 2023-06-30
Posts: 32

fdisk cannot change the partition type

arch linux on a virtual machine (Virtual Box 7.0.6)
I made partitions and gave them a type. But the partition did not change its type

root@archiso # fdisk -1 /dev/sda
Disk /dev/sda: 10.86 GiB, 11660835840 bytes, 22775070 sectors
Disk model: UBOX HARD DISK
Units: sectors of 1 × 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/0 size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: CB84A1FB-84CD-42C6-A78E-501E437F7FAC
Device              Start          End             Sectors      Size       Type
deusda1          2048         1050623     1048576     512M    EFI System
deu/sda2         1050624  22773759   21723136  10 .4G   Linux filesystem


root@archiso # lsblk
NAME       MAJ: MIN     RM        SIZE   RO     TYPE      MOUNTPOINT
loop0            7:0            0           672M    1       loop      /run/archiso/airootfs
sda                8:0            0           10.9G    0      disk
  - sda1          8:1           0            512M    0      part
  - sda2          8:2           0           10.4G    0      part
sr0                11:0          1           790.3M 0      rom        /run/archiso/bootmnt

Offline

#2 2023-06-30 22:18:19

jonno2002
Member
Registered: 2016-11-21
Posts: 868

Re: fdisk cannot change the partition type

i dont see a problem, you have 'Efi System' and 'Linux Filesystem' types.
type does not mean format, you still need to make filesystems on the partitions.

lsblk -f

shows filesystem info

Offline

#3 2023-07-02 13:37:55

forward_one
Member
Registered: 2023-06-30
Posts: 32

Re: fdisk cannot change the partition type

jonno2002 wrote:

i dont see a problem, you have 'Efi System' and 'Linux Filesystem' types.
type does not mean format, you still need to make filesystems on the partitions.

lsblk -f

shows filesystem info

How do I get EFI in TYPE when using lsblk ?
which command should I use?
when using bootctl install it does not see the efi

Offline

#4 2023-07-02 13:39:54

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

Re: fdisk cannot change the partition type

"EFI" is not a filesystem.  An ESP should have a FAT32 filesystem (there may be some options for other filesystems on modern EFI implementations, but FAT32 is still the standard).

You can include "PARTTYPENAME" in lsblk outpu if you want to see that as well, but it is a seperate bit of information from the filesystem (it will not be in the FSTYPE column as it's not an FSTYPE).  For example, if you want "lsblk -f" type of output plus this column:

lsblk -o NAME,FSTYPE,FSVER,PARTTYPENAME,LABEL,UUID,FSAVAIL,FSUSE%,MOUNTPOINTS

EDIT: I just learned something ...

lsblk -fo +PARTTYPENAME

That's a little cleaner, though you can't control the column order with that.

Last edited by Trilby (2023-07-02 13:48:10)


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

Offline

#5 2023-07-02 20:45:10

jonno2002
Member
Registered: 2016-11-21
Posts: 868

Re: fdisk cannot change the partition type

read the first section of this page:
https://wiki.archlinux.org/title/Systemd-boot
specifically this part:

wiki wrote:

Note:
    When running bootctl install, systemd-boot will try to locate the ESP at /efi, /boot, and /boot/efi. Setting esp to a different location requires passing the --esp-path=esp option. (See bootctl(1) §OPTIONS for details.)

make sure your efi partition is mounted and has the correct filesystem (fat32)

Last edited by jonno2002 (2023-07-02 20:45:27)

Offline

#6 2023-07-03 00:04:34

forward_one
Member
Registered: 2023-06-30
Posts: 32

Re: fdisk cannot change the partition type

I apologize for the time taken.
I missed something in the arch linux installation instructions.
Now I have repeated all the steps and everything works

Offline

#7 2023-07-03 06:35:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,164

Re: fdisk cannot change the partition type

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB