Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disk identifier 0x00000000 - problem?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1106

PostPosted: Thu Sep 15, 2022 12:05 pm    Post subject: Disk identifier 0x00000000 - problem? Reply with quote

I just finished a new Gentoo install and along the way I had to use gdisk to convert the GPT label to MBR. That changed the disk's identifier to 0x00000000. I see where I can make up a new identifier in fdisk ('x' and then 'i' I think). Is there anything wrong with just leaving it alone?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 10020
Location: almost Mile High in the USA

PostPosted: Thu Sep 15, 2022 1:39 pm    Post subject: Reply with quote

I make sure all my disks have different serial numbers whenever possible, just so I can make sure udev/kernel/any other app can identify disks via software as they are swapped around between machines...
hate it when I accidentally write/erase/.. the wrong disk.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1106

PostPosted: Thu Sep 15, 2022 2:52 pm    Post subject: Reply with quote

So the randomization is just to avoid duplication.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55292
Location: 56N 3W

PostPosted: Thu Sep 15, 2022 3:56 pm    Post subject: Reply with quote

grant123,

What does "I had to use gdisk to convert the GPT label to MBR" mean?

Do you have a hybrid disk label now or only a MSDOS disk label?

Hybrid works but its easy to break and not really supported
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1106

PostPosted: Thu Sep 15, 2022 4:04 pm    Post subject: Reply with quote

At first I used 'g' in fdisk to create a GPT label but eventually I realized I do not have UEFI so I converted from GPT to MBR with gdisk. fdisk now says:

Code:
Disklabel type: dos
Disk identifier: 0x00000000


Hybrid disklabel or MSDOS or you need more information?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55292
Location: 56N 3W

PostPosted: Thu Sep 15, 2022 4:21 pm    Post subject: Reply with quote

grant123,

Try both
Code:
fdisk -l -t dos /dev/...
and
Code:
fdisk -l -t gpt /dev/...

That forces fdisk to try to read both partition tables. Hopefully, only the first one works.

A GPT disk lab/e includes a 'protective' MSDOS disk label too.
It always has
Code:
Disk identifier: 0x00000000
in the 'protective' MSDOS disk label.

Its quite possible to BIOS boot with a GPT disk label too. Not having EFI makes that easier.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1106

PostPosted: Thu Sep 15, 2022 4:42 pm    Post subject: Reply with quote

Code:
fdisk -l -t dos /dev/...

produces the familiar fdisk output.

Code:
fdisk -l -t gpt /dev/...

doesn't error but only outputs the first 4 lines which specify Disk model, Units, Sector size, and I/O size.

Quote:
Its quite possible to BIOS boot with a GPT disk label too.

IIRC that requires a special BIOS Boot Partition which I didn't want to tangle with.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55292
Location: 56N 3W

PostPosted: Thu Sep 15, 2022 5:02 pm    Post subject: Reply with quote

grant123,

You have a real MSDOS partition table only with the random
Code:
Disk identifier: 0x00000000

Except that that particular value is not random at all. Its been left behind from the protective MSDOS disk label that was created by the GPT disk label.

As eccerr0r, says, the value should be different between disks for your own sanity.
Choose a non zero 32 bit random number and change it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum