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
<snip>
#                size           offset  fstype [fsize bsize  cpg]
  c:            <any>                0  4.2BSD   2048 <any>    1

fdisk sd1c
<snip>
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 07      0  <a> <b>-     <c> <d> <e>[        2048:       <any> ] 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
<snip>
#                size           offset  fstype [fsize bsize  cpg]
  c:            <any>                0  unused
  i:            <any>             2048    NTFS
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.

Reply via email to