On 01/26/16 17:20, freeu...@ruggedinbox.com wrote:
exist 4.2BSD with NTFS/MSDOS partition on same volume.
it will be destroy the which partition's file data.
Any time I get the scary and creepy this situation.
*example 4.2BSD with NTFS
1.formatting SATA HDD on OpenBSD:
newfs sd1c
2.formatting same HDD on Windows:
3.check the partition:
disklabel sd1c
#size offset fstype [fsize bsize cpg]
c:0 4.2BSD 2048 1
fdisk sd1c
#: id C H S - C H S [ start:size ]
---
0: 07 0 - [2048:] NTFS
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
4.change the disklabel:
disklabel -E sd1c
D
p
#size offset fstype [fsize bsize cpg]
c:0 unused
i: 2048NTFS
w
q
5.It can mounting sd1c and sd1i on OpenBSD
mount /dev/sd1c /mnt/4.2BSD/OpenBSD
mount /dev/sd1i /mnt/ntfs/OpenBSD
ntfs-3g -o ro /dev/sd1i /mnt/ntfs/fuse
6.It can mounting on Windows
7.How to delete(dis mounting) the which partition.
from disklabel(8):
disklabel supports 15 configurable partitions, `a' through `p',
excluding `c'. The `c' partition describes the entire physical
disk, is automatically created by the kernel, and cannot be
modified or deleted by disklabel. By convention, the `a'
partition of the boot disk is the root partition, and the `b'
partition of the boot disk is the swap partition, but all other
letters can be used in any order for any other partitions as desired.
I'm surprised you managed format the c partition - but that is your issue.
hth
Fred