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
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
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
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
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: 2019
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!

hendranata
Posts: 16
Joined: 2019/08/27 23:45:27

Re: Type Microsoft basic

Post by hendranata » 2022/05/04 01:43:47

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?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Type Microsoft basic

Post by TrevorH » 2022/05/04 10:44:04

Did you read the first reply to the original post?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hendranata
Posts: 16
Joined: 2019/08/27 23:45:27

Re: Type Microsoft basic

Post by hendranata » 2022/05/04 13:09:01

yes.. thanks it is because we use GPT label on that disk..

Post Reply