I don't find the MAKEDEV or any similar script/binary on FreeBSD 8.0 CURRENT 200902 Release. I need help with creating a device file /dev/ad4s5 (which unlike ad2,ad3,..etc.. strangely doesn't exist by default) for my Windows NTFS D DRIVE.
=> 63 234441585 ad4 MBR (112G)
63 160587 1 !6 (78M)
160650 20964825 2 freebsd [active] (10G)
21125475 7837 - free - (3.8M)
21133312 117188608 3 !7 (56G)
138321920 96114625 4 !15 (46G)
234436545 5103 - free - (2.5M)
=> 0 20964825 ad4s2 BSD (10G)
0 18866176 1 freebsd-ufs (9.0G)
18866176 2098649 2 freebsd-swap (1.0G)
=> 0 96114625 ad4s4 BSD (46G)
0 524288 1 freebsd-ufs (256M)
524288 1048576 2 freebsd-swap (512M)
1572864 1048576 4 freebsd-ufs (512M)
2621440 10565655 5 freebsd-ufs (5.0G)
13187095 82927530 - free - (40G)
=> 32 1001440 da0 MBR (489M)
32 31 - free - (16K)
63 1001409 1 !12 [active] (489M)
******* Working on device /dev/ad4 *******
parameters extracted from in-core disklabel are:
cylinders=232581 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=232581 heads=16 sectors/track=63 (1008 blks/cyl)
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 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB))
start 63, size 160587 (78 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 9/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 160650, size 20964825 (10236 Meg), flag 80 (active)
beg: cyl 10/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
start 21133312, size 117188608 (57221 Meg), flag 0
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 36/ sector 2
The data for partition 4 is:
sysid 15 (0x0f),(Extended DOS (LBA))
start 138321920, size 96114625 (46930 Meg), flag 0
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
/dev/ad4s5
is not possible, because x86 is limited to 4 partitions.
[ adamk@sorrow - /dev ]: ls -1 /dev/ad6s*
/dev/ad6s1
/dev/ad6s2
/dev/ad6s2a
/dev/ad6s2b
/dev/ad6s2c
/dev/ad6s2d
/dev/ad6s2e
/dev/ad6s2f
/dev/ad6s2g
/dev/ad6s5
/dev/ad6s6
/dev/ad6s7
/dev/ad6s8
He's got an extended partition there, so it's probably inside that.killasmurf86 said:yes, logical will
DISKPART> select disk 0
Disk 0 is now the selected disk.
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 F FreeBSD_Ins CDFS DVD-ROM 927 MB
Volume 1 C FAT Partition 78 MB Healthy System
Volume 2 E NTFS Partition 56 GB Healthy Boot
Volume 3 D OverHead NTFS Partition 46 GB Healthy
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 78 MB 32 KB
Partition 2 Unknown 10 GB 78 MB
Partition 3 Primary 56 GB 10 GB
Partition 4 Extended 46 GB 66 GB
Partition 5 Logical 46 GB 66 GB
killasmurf86 said:perhaps it was /dev/ad4p5?
# mount_ntfs /dev/ad4p4 /mnt
> ls /dev/ | grep ad
ad4
ad4s1
ad4s2
ad4s2a
ad4s2b
ad4s3
ad4s4
ad4s4a
ad4s4b
ad4s4d
ad4s4e
4 Primary DOS partitions (aka bsd slices), yes. s5 is inside an Extended DOS Partition.killasmurf86 said:/dev/ad4s5
is not possible, because x86 is limited to 4 partitions.
You are confusing slices and partitions.But if you are using gpt partitions then you can have up to 128 (or 127, don't remember) of them.
quakerdoomer said:From Windows my Disk View is :
78.2 MB C:
45.8 MB D:
55.8 GB E:
78.2 MB C: = ad4s1
55.8 GB E: = ad4s3
quakerdoomer said:Yes OverHead is D: 46 GB
But according to gpart the scene is :
ad4s4 BSD (46G)
gpart on BSD seems to misread it and shows - free - (40G) which is what actually FreeBSD 8.0 CUrrent thinks is true. I want to mount the D Drive :-(
DIGITAL-TRAITOR# kldload geom_part_mbr
kldload: can't load geom_part_mbr: File exists
GEOM: ad4: partition 4 does not start on a track boundary.
GEOM: ad4: partition 4 does not end on a track boundary.
GEOM: ad4: partition 3 does not start on a track boundary.
GEOM: ad4: partition 3 does not end on a track boundary.
GEOM_LABEL: Label for provider ad4s1 is msdosfs/DellUtility.
GEOM: ad4s2: geometry does not match label (255h,63s != 16h,63s).
GEOM: ad4s4: media size does not match label.
SirDice said:You are confusing slices and partitions.
FreeBSD DIGITAl-TRAITOR 8.0-RC1 FreeBSD 8.0-RC1
******* Working on device /dev/ad4 *******
parameters extracted from in-core disklabel are:
cylinders=232581 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=232581 heads=16 sectors/track=63 (1008 blks/cyl)
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 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB))
start 63, size 160587 (78 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 9/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 160650, size 20964825 (10236 Meg), flag 80 (active)
beg: cyl 10/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
start 21133312, size 117188608 (57221 Meg), flag 0
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 36/ sector 2
The data for partition 4 is:
sysid 15 (0x0f),(Extended DOS (LBA))
start 138321920, size 96114625 (46930 Meg), flag 0
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
/dev/ad4
/dev/ad4s1
/dev/ad4s2
/dev/ad4s2a
/dev/ad4s2b
/dev/ad4s3
/dev/ad4s4
/dev/ad4s4a
/dev/ad4s4b
/dev/ad4s4d
/dev/ad4s4e
DIGITAL-TRAITOR# fdisk /dev/ad4s4
******* Working on device /dev/ad4s4 *******
parameters extracted from in-core disklabel are:
cylinders=95351 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=95351 heads=16 sectors/track=63 (1008 blks/cyl)
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 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
start 63, size 96114562 (46930 Meg), flag 0
beg: cyl 1023/ head 37/ sector 3;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
DIGITAL-TRAITOR#