DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th December 2024
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default mounting ntfs partition

Hello,

I created NTFS partition in Win os and formated it like NTFS.
In OpenBSD when I try fdisk sd0 then I am seeing new partition number 8 created by win os.
I have installed ntfs_3g but I am not able to mount it.

What device path should I use in mount_ntfs ?
Reply With Quote
  #2   (View Single Post)  
Old 13th December 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,077
Default

You will need to add the new GPT partition to the OpenBSD disklabel manually. The disklabel(8) program will not automatically scan MBR or GPT partition tables if there is already a disklabel present on the drive.
Reply With Quote
  #3   (View Single Post)  
Old 14th December 2024
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

I tried to add new partition in disklabel interactive mode and tried used offset of NTFS partition displayed in fdisk.
I receive error describing that it is out of OpenBSD bounds, I am attaching also fdisk output (partition number 8 is NTFS).
Amazing for me is that I am able to mount another FAT partition even it is also out of OpenBSD bounds. I don't understand it. What should I try ?

Code:
sd# disklabel -E sd0
Label editor (enter '?' for help at any prompt)
sd0> p
OpenBSD area: 1231843328-1481843328; size: 250000000; free: 77489248
#                size           offset  fstype [fsize bsize   cpg]
  a:          4194304       1231843328  4.2BSD   2048 16384 12960 # /
  b:           524288       1236037632    swap                    # none
  c:       1953525168                0  unused                    
  d:         83900736       1236561920  4.2BSD   2048 16384 12960 # /usr
  e:         83891424       1320462656  4.2BSD   2048 16384 12960 # /home
  i:            32734               34 unknown                    
  j:          1124352            32768   MSDOS                    
  k:        409600000          1159168   MSDOS                    
  l:          1679360        410759168   MSDOS                    
  m:        819200000        412438528   MSDOS                    
  n:           204800       1231638528   MSDOS                    
  o:          8192000       1481844736   MSDOS                    
sd0> a p
offset: [1404354080] 1490036736
'p' aligned offset 1490036736 lies outside the OpenBSD bounds or inside another partition
fdisk output:

Code:
bsd# fdisk sd0
Disk: sd0       Usable LBA: 34 to 1953525134 [1953525168 Sectors]
   #: type                                 [       start:         size ]
------------------------------------------------------------------------
   0: e3c9e316-0b5c-4db8-817d-f92df00215ae [          34:        32734 ]
   1: Microsoft basic data                 [       32768:      1124352 ]
   2: Microsoft basic data                 [     1159168:    409600000 ]
   3: Microsoft basic data                 [   410759168:      1679360 ]
   4: Microsoft basic data                 [   412438528:    819200000 ]
   5: EFI Sys                              [  1231638528:       204800 ]
   6: OpenBSD                              [  1231843328:    250000000 ]
   7: Microsoft basic data                 [  1481844736:      8192000 ]
   8: Microsoft basic data                 [  1490036736:     10240000 ]
Reply With Quote
  #4   (View Single Post)  
Old 14th December 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,077
Default

To create a partition outside the bounds of the OpenBSD GPT partition with the disklabel(8) editor, you will need to use the "b" command to set a different bound start / end.
Reply With Quote
  #5   (View Single Post)  
Old 14th December 2024
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

Quote:
Originally Posted by jggimi View Post
To create a partition outside the bounds of the OpenBSD GPT partition with the disklabel(8) editor, you will need to use the "b" command to set a different bound start / end.
Thank you,
I don't understand that I can mount FAT partition /dev/sd0o even it is out of bounds. o: partition was created by OS installation.
Does exist different way to create partition than moving boundend ?
Reply With Quote
  #6   (View Single Post)  
Old 14th December 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,077
Default

Once a disklabel has been written, the MBR/GPT partition table will not be scanned again.

You can tell the disklabel(8) program to ignore the on-disk disklabel and re-scan, but then you will lose all disklabel partitions.

There are architectures which don't use MBR or GPT.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ntfs partition not recognized nandi78 OpenBSD General 6 8th August 2024 09:42 PM
Mounting internal NTFS storage drive hrsetrdr Other BSD and UNIX/UNIX-like 1 25th October 2018 03:18 AM
mounting NTFS external hard disk. bsdnewbie999 OpenBSD General 16 4th September 2010 01:59 PM
Mounting ntfs drive as rw using fusefs-ntfs caesius FreeBSD General 3 12th October 2008 11:08 AM
Problems with ntfs partition located on a SATA driver. disappearedng FreeBSD General 3 21st May 2008 10:29 AM


All times are GMT. The time now is 04:34 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick