Sorry, if this have been discussed before. But I still have several questions.
My hdd: WD20EARS-00MVWB0 51.0AB51
I've found 2 ways of formatting this disk:
1:
2:
But there are still questions:
The second way (fdisk) end: cyl 180 while having cylinders=3876021(diskinfo)
For the both variants:
64 sectors * 512 B = 32768 B
64 sectors * 4096 B = 262144 B (512 sectors * 512 B)
The offset was taken as mush as 64. Is this correct? Or it should be 512.
Which of the methods (fdisk, gpart) is more correct? And (if possible) what is the difference?
My hdd: WD20EARS-00MVWB0 51.0AB51
I've found 2 ways of formatting this disk:
# diskinfo -v ada2
Code:
ada2
512 # sectorsize
2000398934016 # mediasize in bytes (1.8T)
3907029168 # mediasize in sectors
0 # stripesize
0 # stripeoffset
3876021 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
WD-WCAZA0385160 # Disk ident.
1:
# gpart create -s mbr ada2
# gpart add -b 63 -s 3907029105 -t freebsd ada2
# gpart create -s bsd ada2s1
# gpart add -b 1 -s 3907029104 -t freebsd-ufs ada2s1
# gpart show
Code:
=> 63 3907029105 ada2 MBR (1.8T)
63 3907029105 1 freebsd (1.8T)
=> 0 3907029105 ada2s1 BSD (1.8T)
0 1 - free - (512B)
1 3907029104 1 freebsd-ufs (1.8T)
2:
fdisk -u ad9
Code:
******* Working on device /dev/ad9 *******
parameters extracted from in-core disklabel are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)
Do you want to change our idea of what BIOS thinks ? [n]
fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 3907029105 (1907729 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 180/ head 15/ sector 63
Do you want to change it? [n] y
Supply a decimal value for "sysid (165=FreeBSD)" [165]
Supply a decimal value for "start" [63] 64
Supply a decimal value for "size" [-387938190] 3907029104
fdisk: WARNING: partition does not start on a head boundary
fdisk: WARNING: this may confuse the BIOS or some operating systems
Correct this automatically? [n]
Explicitly specify beg/end address ? [n]
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 64, size 3907029104 (1907729 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 2;
end: cyl 180/ head 15/ sector 63
Are we happy with this entry? [n] y
The data for partition 2 is:
<UNUSED>
Do you want to change it? [n]
The data for partition 3 is:
<UNUSED>
Do you want to change it? [n]
The data for partition 4 is:
<UNUSED>
Do you want to change it? [n]
Partition 1 is marked active
Do you want to change the active partition? [n]
We haven't changed the partition table yet. This is your last chance.
parameters extracted from in-core disklabel are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)
Information from DOS bootblock is:
1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 64, size 3907029104 (1907729 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 2;
end: cyl 180/ head 15/ sector 63
2: <UNUSED>
3: <UNUSED>
4: <UNUSED>
Should we write new partition table? [n]
But there are still questions:
The second way (fdisk) end: cyl 180 while having cylinders=3876021(diskinfo)
For the both variants:
64 sectors * 512 B = 32768 B
64 sectors * 4096 B = 262144 B (512 sectors * 512 B)
The offset was taken as mush as 64. Is this correct? Or it should be 512.
Which of the methods (fdisk, gpart) is more correct? And (if possible) what is the difference?