Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fdisk - defaults to non Dos but yet uses Dos disklabel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dman777
Veteran
Veteran


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Sat Apr 11, 2015 6:17 pm    Post subject: fdisk - defaults to non Dos but yet uses Dos disklabel Reply with quote

My version of fdisk man page states default is DOS mode is disabled.... but why is it stating 'Created a new DOS disklabel'?


localhost four # fdisk /dev/sdc

Welcome to fdisk (util-linux 2.24.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.

Created a new DOS disklabel with disk identifier 0x780f1aa7.

Command (m for help):
Back to top
View user's profile Send private message
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 311

PostPosted: Sun Apr 12, 2015 2:06 am    Post subject: Reply with quote

"dos" mode means partitions aligned to cylindar boundary. non-dos mode partitions aligned to physical sector size. It's no relative to MBR or GPT format.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Apr 12, 2015 12:42 pm    Post subject: Reply with quote

s4e8

Its not that simple. With a GPT disklabel you get

Code:
Disklabel type: gpt
Disk identifier: 518AEFA3-E36E-40F3-8AB9-D55B7CF072AD

and the protective MSDS disklabel is
Code:
Disklabel type: dos
Disk identifier: 0x00000000


fdisk:
Created a new DOS disklabel with disk identifier 0x780f1aa7.
Looks like a real MSDOS disk lable.

There are big differesces on disk betwen GPT and MSDOS disklables too.

Run
Code:
/sbin/fdisk -t gpt
or
Code:
/sbin/fdisk -t dos
so it really knows what you want.
_________________
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
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 311

PostPosted: Sun Apr 12, 2015 2:20 pm    Post subject: Reply with quote

NeddySeagoon wrote:
s4e8
There are big differesces on disk betwen GPT and MSDOS disklables too.
Run
Code:
/sbin/fdisk -t gpt
or
Code:
/sbin/fdisk -t dos
so it really knows what you want.

That's true, GPT is not dos disklabel, but fdisk never defaut to GPT (even with disk >2T, it default DOS disklabel instead GPT), it default to non-DOS aligned mode only. If you need GPT, you must change it explicitly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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