[SOLVED] What does this "exit code 3-error" message mean?

lumox

Member
May 29, 2020
111
5
23
42
Hi,
I tried to initialize a HD to store ISOs on it but when I lunch the command with the initialize disk button in disk I got this error message:

errordisk_sdc.jpg

What does it mean and how can I fix it?
Thank you
 
hi,

from man sgdisk:

Code:
RETURN VALUES
       sgdisk returns various values depending on its success or failure:

       0      Normal program execution

       1      Too few arguments

       2      An error occurred while reading the partition table

       3      Non-GPT disk detected and no -g option, but operation requires a write action

       4      An error prevented saving changes

       5      An error occurred while reading standard input (should never occur with sgdisk, but may with gdisk)

       8      Disk replication operation (-R) failed

so 3 means /dev/sdc is a non-gpt disk

I tried to initialize a HD to store ISOs on it but when I lunch the command with the initialize disk button in disk

can you post the output of fdisk -l /dev/sdc ?
 
Hi @oguz
I had fixed it already in a different way.

If I perfectly remember, I tried this commands first:

Code:
fdisk /dev/sdc (with g, n, w - default values)
mkfs.ext4 /dev/sdc1

Then fdisk /dev/sda and hit d to delete the partition, w to write it

Finally, I Initalized GPT in the GUI and it worked.

I still don't know what was wrong with it, and if every command above was really helpful somehow.
Thanks
 
great, i guess you just had to repartition and reinitialize it.

you can mark this as [SOLVED] so others know what to expect
 
  • Like
Reactions: lumox

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!