DragonFly bugs List (threaded) for 2009-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
[issue1622] devfs doesn't create my ad4s3 (macbook)
Alex Hornung <ahornung@gmail.com> added the comment:
It seems gpt starts numbering slices at 0, so the usual ad4s1 is ad4s0, ...
leading to the fact that the expected ad4s3 is at ad4s2.
In any case, I'll update our GPT code to fix some other issues (for example
the slice type is always set to 1).
For reference:
7:46:26 dragon:~
# gpt show /dev/ad0
start size index contents
0 1 - PMBR
1 1 - Pri GPT header
2 32 - Pri GPT table
34 6 -
40 409600 0 GPT part - EFI System
409640 293391 1 GPT part - Apple HFS
703031 400000 -
1103031 185671 2 GPT part - MS/Linux Basic Data
1288702 808417 -
2097119 32 - Sec GPT table
2097151 1 - Sec GPT header
7:47:05 dragon:~
# newfs_msdos /dev/ad0s2
/dev/ad0s2: 185276 sectors in 46319 FAT16 clusters (2048 bytes/cluster)
bps=512 spc=4 res=1 nft=2 rde=512 mid=0xf8 spf=181 spt=63 hds=256 hid=1103031
bsec=185671
Observe carefully that the bsec of the newfs actually matches the number of
sectors of the third partition, with gpt index 2.
Cheers,
Alex Hornung
_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1622>
_____________________________________________________
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]