Questions tagged [mbr]
201 questions
131
votes
8 answers
GPT or MBR: How do I know?
How can I tell whether my harddrive is laid out using an MBR or GPT format?
goldilocks
- 86,451
- 30
- 200
- 258
39
votes
5 answers
Remove GPT - Default back to MBR
I keep receiving this error:
Warning!! Unsupported GPT (GUID Partition Table) detected. Use GNU Parted
I want to go back to the normal MBR. I found some advice here and did:
parted /dev/sda
mklabel msdos
quit
But when I get to the mklabel option…
sayth
- 579
- 1
- 4
- 7
17
votes
1 answer
"Warning! Secondary partition overlaps the last partition by x blocks" in gdisk, is it safe to use gdisk here?
I'm trying to convert my hard drive from MBR to GPT using gdisk. When I run sudo gdisk /deve/disk1s4 I get this:
Warning! Secondary partition table overlaps the last partition by
2032668853 blocks!
You will need to delete this partition or resize it…
DisplayName
- 11,468
- 20
- 73
- 115
14
votes
4 answers
Should I use fdisk for partitioning or GPT aware tools?
Question: Should I use fdisk when creating partitions?
Or is it advisable to use parted since it uses GPT? (by default?) And with that I can create partitions larger than 2TB.
pepite
- 1,053
- 3
- 14
- 32
12
votes
2 answers
area on disk after the MBR and before the partition start-point
If I use a MBR partitioning scheme and create a primary or extended partition with fdisk(version 2.20.1), then it starts on sector 2048. If I remember correctly, then older versions of fdisk started the first partition on sector 63. If MBR needs…
Martin
- 7,284
- 40
- 125
- 208
11
votes
4 answers
Moving /boot and MBR to a new drive
I have a CentOS 6 server with two hard drives in it. My old 3TB drive has been giving me some issues so I'm moving things over to a new drive. Because my / and /home partition are managed by a LVM it was easy to migrate those to the new drive. …
Cloudkiller
- 263
- 1
- 2
- 9
11
votes
3 answers
Remove all traces of GPT disk label
I've got an USB pen drive and I'd like to turn it into a bootable MBR device. However, at some point in its history, that device had a GPT on it, and I can't seem to get rid of that. Even after I ran mklabel dos in parted, grub-install still…
MvG
- 4,361
- 2
- 28
- 42
9
votes
4 answers
Determine what program is in my MBR code
I've done a lot of partitioning / dual booting on my Macbook Pro. Right now I have Mac OS X installed along with Ubuntu 12.04, with Grub installed on the Ubuntu partition.
I am wondering - what is the code in my MBR (the first 446 bytes)? Because…
kalaracey
- 313
- 1
- 9
9
votes
1 answer
How to use os-prober to find MS-Windows boot data?
I saw Dual boot - Installed arch and windows entry disappeared on grub and I have the same/similar problem. I have Grub and it shows only Debian setup and not MS-Windows. I also tried the following but without success -
[$] sudo grub-install…
shirish
- 11,967
- 27
- 107
- 190
8
votes
1 answer
How to boot FreeBSD system with broken bootcode?
I have an HDD (or SSD, or flash drive) with FreeBSD installed on it, and somehow I broke the bootcode (first 446 bytes of MBR). How could I boot into this FreeBSD?
AntonioK
- 1,151
- 2
- 15
- 28
8
votes
3 answers
Linux/GParted can see partition table but dd bs=512 count=1 can't
I have an MBR formatted sd card and when connect to a Linux machine (xubuntu 12.04) it can mount a partition and parse the file system (as can GParted). However, when I try to read the MBR from the device using dd it gives me a bunch of spurious…
Tom Booth
- 89
- 1
- 4
8
votes
1 answer
Can I change an existing partition from MBR to GPT?
I needed to add extra 2.5TB to the existing 400GB disk (sda) on my system. I added new virtual disks with 2.5TB (sdb), proceeded to create the partition table with fdisk.
Used pvcreate /dev/sdb1, to create the physical volume, then extended the…
Dagonar
- 111
- 1
- 1
- 5
7
votes
1 answer
Is it important to delete GPT/MBR labels before reformatting/repartitioning?
I've seen some disk formatting/partitioning discussions that mention destroying existing GPT/MBR data structures as a first step:
sgdisk --zap-all /dev/nvme0n1
I wasn't previously aware of this, and when I've set up a disk, I've generally…
ivan
- 1,858
- 2
- 19
- 37
7
votes
1 answer
Linux live USB - Why does ISO 9660 partition cover the entire USB stick?
I've been examining the Ubuntu 20.04 and Fedora 32 live images, and saw that the first (ISO 9660) partition is set to cover the entire image (at least on the MBR's partition table, didn't check GPT yet). For Ubuntu this is around 2.7 GB; for Fedora…
Martin
- 170
- 1
- 5
7
votes
1 answer
How to understand partition table on hybrid ISO image?
If I inspect an hybrid ISO with tools like fdisk and gdisk, then looks like hybrid ISO has both the MBR and GPT in order to support both the BIOS and UEFI:
# gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: MBR only
…
Martin
- 7,284
- 40
- 125
- 208