How to add a ntfs or exfat partition

I just installed FreeBSD using ZFS on an external hard drive which is 300 GB in size! I manually partitioned the hard drive because I didn't want to use the entire drive. I used around 128 GB and wanted the rest of the drive for storage with NTFS or exfat.

I'm a bit confused because I can't see the other partitions as da1p1. If I run $ geom disk list:
Code:
Geom name: da1
Providers:
1. Name: da1
   Mediasize: 320072933376 (298G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e3
   descr: WDC WD32 00BEVT-60A23T0
   lunname: WDC WD3200BEVT-60A23T0  0000AB1236A0
   lunid: 3000001212361000
   ident: 0000AB1236A0
   rotationrate: unknown
   fwsectors: 63
   fwheads: 255
if I run this $ gpart show -p da1 I get this:
Code:
gpart: No such geom: da1
if I run this $ gpart show I get this:
Code:
=>       40  625142368  diskid/DISK-0000AB1236A0  GPT  (298G)
         40     532480                         1  efi  (260M)
     532520       1024                         2  freebsd-boot  (512K)
     533544        984                            - free -  (492K)
     534528   25165824                         3  freebsd-swap  (12G)
   25700352  241172480                         4  freebsd-zfs  (115G)
  266872832  358269576                            - free -  (171G)

The free space is there but there is no device da1. When I was creating these partitions using gpart I would notified of a successful creation I would see the name of the partition likde da1p1 and now those devices don't exist in /dev, I see /dev/da1 only. How would I add another partition formated with NTFS or exfat so I can see it within windows?
 
camcontrol devlist ?

Drives might change their numbering, especially if they are connected via USB.


A (two) word(s) of warning:
- Using external (USB) drives for system installation is bad - perfacmance and reliability of USB connections are as worse as it can get. Don't use that setup for important data as it might corrupt your ZFS pool.
- Windows *will* nuke unknown partitions and/or ZFS pools at some point if the drive is connected e.g. during updates. Especially the EFI partition will be overwritten with updates (because Windows always expects to be the only OS) and you have to restore it to boot into FreeBSD. Partition types MS doesn't (want to) understand are also prone to being nuked by overwriting/mangling a few sectors at the start even if you deny the request to 'prepare'/format them.

So if you want something reliable it would be best to use a 'properly' connected drive (SATA/SAS/PCIe) exclusively for the FreeBSD installation and the external drive with a single NTFS or exFAT partition for data exchange with windows.
 
Back
Top