Page 1 of 1

Type Microsoft basic

Posted: 2018/07/10 10:06:00
by kbergros69
Hi...

I have set up a new virtual machine with Centos 7.5.1804.
Have set up ext4 partion for /dev/sda2 but it shows Microsoft basic when i run fdisk -l

# Start End Size Type Name
1 2048 6143 2M BIOS boot
2 6144 61446143 29.3G Microsoft basic
3 61446144 6221854719 2.9T Linux LVM

df -Th shows it as a ext4 (which is correct)

/dev/sda2 ext4 29G 1.9G 26G 7% /

lsblk -f shows it also as a ext4

NAME FSTYPE LABEL UUID MOUNTPOINT
fd0
sda
├─sda1
├─sda2 ext4 262ef079-cc1c-425a-a534-b3714136221d /
└─sda3 LVM2_member bvXywP-sZUa-ho6R-nOdW-UqyL-s4LO-yIgeRr
├─ain--backuppc-swap swap 7a1354a6-d1a5-4844-b340-f844f2a9b9b6 [SWAP]

Why is it shown as Microsoft basic if i run fdisk -l? Can it be corrected or is nothing to care about?

Re: Type Microsoft basic

Posted: 2018/07/10 10:13:12
by TrevorH
It doesn't really matter that much but if you want to correct it then you need to use the fdisk command 't' to tag the partition with the correct type.

When I do fdisk -l here, I get an extra field that your output isn't showing - it's got a column heading of "Id" and lists the hex tag of the partition. 0x83 is "Linux", 0x8e is "Linux LVM" etc.

I suspect you may have a disk with a GPT label on it, not an MSDOS one so the output from fdisk may be different because of that. The id column as changes on GPT from being a single byte to a 2 byte field so the id ends up being 0x8300 and 0x8e00 for the same types. I don't see "Microsoft Basic" listed as an option in my fdisk running against an MSDOS labeled disk.

Re: Type Microsoft basic

Posted: 2018/07/10 15:14:02
by kbergros69
Ok..

Thank you for your reply.
So it just a cosmetic "error" that Microsoft Basic is shown? If i correct it can the data get corrupted?

Re: Type Microsoft basic

Posted: 2018/07/10 17:02:55
by TrevorH
Tagging a partition with a new type is something that I've done many many times without problem.

Re: Type Microsoft basic

Posted: 2018/07/10 17:28:41
by kbergros69
Ok. Will change tomorrow, thank you!

Re: Type Microsoft basic

Posted: 2018/07/11 03:52:14
by hunter86_bg
By the way can you put the whole 'fdisk -l' outpit, because if the disk is GPT, you need to use gdisk to change the partition type?
Just to be on the safe side.

Re: Type Microsoft basic

Posted: 2018/07/11 05:13:28
by kbergros69
Hi.

Now I have changed the type to Linux system I used gdisk for that, thank you for the tip.
Everything went well and now it looks like this:

# Start End Size Type Name
1 2048 6143 2M BIOS boot
2 6144 61446143 29.3G Linux filesyste
3 61446144 6221854719 2.9T Linux LVM

Thank You!

Re: Type Microsoft basic

Posted: 2022/05/04 01:43:47
by hendranata
our linux partition also same..

fdisk -l /dev/sda
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 1199.6 GB, 1199638052864 bytes, 2343043072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
Disk identifier: C2CA8878-8DB6-4C16-AD24-A6AB04D523EB


# Start End Size Type Name
1 2048 976895 476M EFI System EFI System Partition
2 976896 196288511 93,1G Microsoft basic
3 196288512 204099583 3,7G Linux swap
4 204099584 2343041023 1019,9G Microsoft basic


do u think that if we ignore and still keep running using type: Microsoft basic .
will it be okay?

Re: Type Microsoft basic

Posted: 2022/05/04 10:44:04
by TrevorH
Did you read the first reply to the original post?

Re: Type Microsoft basic

Posted: 2022/05/04 13:09:01
by hendranata
yes.. thanks it is because we use GPT label on that disk..