Questions tagged [gdisk]

31 questions
17
votes
3 answers

What is the purpose of the Linux home partition code 8302?

I am formatting an SSD for use in a Linux system and I see that there is a distinct gdisk code (8302) for the /home partition if one is created. The alternative I suppose would be the "Linux filesystem" (8300) code. What is the purpose of the…
Tyler Durden
  • 6,333
5
votes
3 answers

increased size of disk in a Virtual machine, but gdisk doesn't want to use the new space

I have a VM with a virtual disk (visible as /dev/sdb) with a size of 10G The admin increased the size of the virtualdisk to 60G. I rebooted the machine and see now, that the disk is bigger. root@DMZMHLX3:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE…
gelonida
  • 455
5
votes
1 answer

Linux: Resize disk without updating GPT: gdisk says new sectors not usable

I have a 1TB harddisk /dev/sda and I bought a 2TB new disk /dev/sdb. There're already some partitions in sda. I run dd if=/dev/sda of=/dev/sdb, then threw my old 1TB disk /dev/sda into dustbin. Then I boot into the OS in new disk, everything works…
recolic
  • 629
4
votes
2 answers

Sort GPT partitions in Linux with gdisk (command s)

I have tried to sort my partitions to change the order, but when I try to use s command of gdisk, this warning appears: You may need to edit /etc/fstab and/or your boot loader configuration! And it doesn't let me use the command. What can I do to…
fnicolas
  • 41
  • 1
  • 3
3
votes
2 answers

GPT partition table is corrupt after every one to three reboots

After 2 or three power cycles, I get the grub rescue menu. I use a Ubuntu LiveCD to check my drive status and gparted says that my drive don't have any partitions. I checked the internet and I found a tool called gdisk. After using gdisk I…
3
votes
1 answer

How to write a protective MBR in Windows?

I have a UEFI machine with CentOS on one disk and Windows 2016 on another. The Windows installer writes the GPT protective MBR, but it doesn't follow the UEFI standard exactly, as described here. It writes the MBR with a single partition, as per…
3
votes
1 answer

GPT partition type for ext4 filesystem

My disk is formatted using GPT. I created a new partition and by default it was create as 'Linux filesystem' (gdisk code 8300). When I am trying to mount it via fstab /dev/sda4 /vmguests ext4 errors=remount-ro 0 1 it errors…
NRJ
  • 133
2
votes
1 answer

SSD thinks it's larger than it actually is

I'm trying to install Fedora alongside Windows 10 on a new laptop. The laptop has two 512GB SSD disks, which in the Disk Management tool showed as just one 1TB disk. I shrunk the partition on which Windows is installed to 200GB, as well as creating…
ragnaroh
  • 121
2
votes
1 answer

How to fix damaged GPT with hybrid MBR?

I have a SD card that has some issues and I could not fixed them. This is how the disk looks like in GNOME Disks: When I run gdisk /dev/sdb, it gives the following output: sudo gdisk /dev/sdb GPT fdisk (gdisk) version 1.0.3 Caution: invalid backup…
me0076
  • 23
2
votes
1 answer

Gparted implicitly converts protective MBR to hybrid when creating a NTFS partition

Gparted is implicilty converting my protective MBR to a hybrid MBR without asking me and without telling me, thus breaking everything I'm trying to do (making a NTFS partition that's accessible on Windows 7). After creating a new GPT partition…
Andreas
  • 674
  • 3
  • 11
  • 33
2
votes
0 answers

GUID Partition Attribute not working on MacOS

I'm trying to prevent automount on a device. The device contains only one FAT32 GPT partition. I have set the GUID Partition attribute to 63 using gdisk (i.e. do not automount). I have also tried using Diskpart and GPT ATTRIBUTES to…
jevannie
  • 121
2
votes
1 answer

gdisk: strange warning message on newly partitioned/populated disk

I just ran gdisk on a newly partitioned and fully populated disk and am getting the following error message. I am not sure how things can be overlapping since I've just created this ONE single partition. Should I worry? merc@merc-All-Series:~$ sudo…
Merc
  • 250
2
votes
0 answers

are there any steps available to cross compile gdisk?

We need gdisk(from gptdisk) for am335x based custom board. We are using Linux OS on the board. We need to cross compile it. Is there any guide for the same ? I am not able to find any guide for the same.
ART
  • 395
1
vote
1 answer

Caution: invalid backup GPT Header (gdisk)

Each time I boot into my Ubuntu installation, when I open gdisk I am given the messages: GPT fdisk (gdisk) version 0.8.8 Type device filename, or press to exit: /dev/sda Caution: invalid backup GPT header, but valid main header;…
1
vote
0 answers

gdisk doesn't recognize RAID0 disk as size of whole array?

I put in two Samsung 840s at 256GB and RAID-ed them together and installed Windows 8. I'm having trouble using gdisk to get ready to install Linux. gdisk sees the array, /dev/sda0, as a whole drive, but the size value comes from the individual…
Mikhail
  • 3,872
1
2 3