Type Microsoft basic

General support questions
Post Reply
kbergros69
Posts: 4
Joined: 2018/07/10 09:51:28

Type Microsoft basic

Post by kbergros69 » 2018/07/10 10:06:00

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?

User avatar
TrevorH
Forum Moderator
Posts: 23462
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Type Microsoft basic

Post by TrevorH » 2018/07/10 10:13:12

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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

kbergros69
Posts: 4
Joined: 2018/07/10 09:51:28

Re: Type Microsoft basic

Post by kbergros69 » 2018/07/10 15:14:02

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?

User avatar
TrevorH
Forum Moderator
Posts: 23462
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Type Microsoft basic

Post by TrevorH » 2018/07/10 17:02:55

Tagging a partition with a new type is something that I've done many many times without problem.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

kbergros69
Posts: 4
Joined: 2018/07/10 09:51:28

Re: Type Microsoft basic

Post by kbergros69 » 2018/07/10 17:28:41

Ok. Will change tomorrow, thank you!

hunter86_bg
Posts: 1317
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Type Microsoft basic

Post by hunter86_bg » 2018/07/11 03:52:14

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.

kbergros69
Posts: 4
Joined: 2018/07/10 09:51:28

Re: Type Microsoft basic

Post by kbergros69 » 2018/07/11 05:13:28

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!

Post Reply