Questions tagged [gdisk]

26 questions
14
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,011
  • 19
  • 57
  • 99
4
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
  • 303
  • 1
  • 3
  • 16
4
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
  • 529
  • 4
  • 11
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…
LonsomeHell
  • 171
  • 7
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…
Peter Westlake
  • 1,076
  • 1
  • 7
  • 17
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
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
  • 1
  • 1
  • 3
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…
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
  • 230
  • 3
  • 10
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
  • 375
  • 2
  • 4
  • 16
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;…
chrisb2244
  • 317
  • 4
  • 14
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,852
  • 4
  • 32
  • 51
1
vote
0 answers

How to create a partition with gdsik without naming it?

I'm currently looking for alternatives to graphical programs for partitioning my hard drive. So I'm searching for an easy command line tool for it. Since my hard drive has a GPT partition table the best choice I have are the interactive gdisk…
Nicryc
  • 675
  • 1
  • 10
  • 21
1
vote
0 answers

samsung nvme ssd write errors on gpt restore, even with 100% available_spare

i have an samsung nvme ssd with corrupted gpt information. Nevertheles live boot running gdisk reported, that the on-disk gpt backup is clean and can be used to restore the main gpt information. So fine, i run the restore and get write error during…
cguenther
  • 301
  • 1
  • 2
  • 11
1
2