You are not logged in.

#1 2018-10-02 15:56:39

funkaddict
Member
Registered: 2018-08-13
Posts: 117

[SOLVED] sda0 - sda1 confusion between fdisk and blkid

Hello,

I am trying to install Arch on my desktop computer, a Dell Precision Workstation with a 500GB SSD.

I was partitioning the SSD by using gdisk. Now fdisk -l shows that /dev/sda looks like this:

Device              Start                      End                    Sectors              Size                     Type
/dev/sda1         2048                      1128447            1126400            550M                   EFI System
/dev/sda2         1128448            294728727       293601280             140G                   Linux filesystem
/dev/sda3         294729728        328284159           33554432           16G                     Linux swap

using gdisk -l it shows of course the same.

When I try to format /sda2 as ext4 I get no error. When I try to format sda3 as swap It says that sda3 does not exist.


so when I use blkid it shows:

/dev/sda1: UUID =.... Type = "ext4"  Partlabel="EFI"...
/dev/sda2: UUID = ... Type = "SWAP" 

There is no sda3 listed.

So it seems there is a problem with the devienames?! Why the hack fdisk/gdisk see /sda1 /sda2 /sda3 corretly but I run into an error when trying to format the file partitions?

Last edited by funkaddict (2018-10-02 16:39:42)

Offline

#2 2018-10-02 16:22:05

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,719
Website

Re: [SOLVED] sda0 - sda1 confusion between fdisk and blkid

Sometimes disk partition utilities fail to inform the kernel of partition changes. Run 'partprobe -s' to manually get the kernel to check for changes.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2018-10-02 16:29:56

funkaddict
Member
Registered: 2018-08-13
Posts: 117

Re: [SOLVED] sda0 - sda1 confusion between fdisk and blkid

Thank you. A reboot, did the same wink Now I ran into another problem as I made gdisk to assign 550M for /dev/sda1. But when running lsblk it sees sda1 to be only 275K. Is this a problem of lsblk or gdisk? I assume the latter because when trying to format sda1 as fat32 I run into an error which says that has not enough clusters. This is really annoying hmm I have installed arch before on my PC at home. But today, the entire thing is a pain in the ass.

Offline

#4 2018-10-02 16:39:22

funkaddict
Member
Registered: 2018-08-13
Posts: 117

Re: [SOLVED] sda0 - sda1 confusion between fdisk and blkid

Well this was solved by using cgdisk instead of gdisk. I don't have any idea why gdisk didn't work and made sda a wrong size.

Offline

Board footer

Powered by FluxBB