![]() |
|
|||
![]()
Hi everyone!
I'm horrible at introductions ![]() My current focus at work is Azure, Exchange, AD, but at home I run (nearly) completely Linux: 2x Debian Desktops (one acting as a server/storage box), 2x Raspberry Pis running Raspbian, and a laptop that I've been distro-hopping on. My experience with *BSD so far is a little PfSense, building a small FreeBSD server and my laptop when I "hop" to OpenBSD. I'm hoping to learn a lot from all of you, and tackle some of the issues I've been having on the laptop, mostly related to mounting USB drives/SD cards. See... I told you I was horrible at intros ![]() Jay |
|
||||
![]()
Hello, and welcome!
Mounting is easy. All you need to know is that every OS uses a different device nomenclature, and the options are slightly different. It's like that old adventure game, where you are lost in a maze of twisty little passages, all alike. Or was it the twisting maze of little passages, all different? |
|
|||
![]()
Thanks LeFrettchen! So far, you're right - my attempts have been mostly successful
![]() |
|
|||
![]()
Hi jggimi, and thanks for the welcome!
I couldn't have described it any better ![]() Finding the device name/partition ID wasn't too bad, once I learned sysctl hw.disknames, and disklabel. Now, my challenge is mounting NTFS and exFAT. I'm not sure why yet, but ever after ensuring ntfs-3g and exFat tools are installed I still get "invalid option". I haven't really dug deeply into it yet, but now that I have access here, I know where to come if my search leads me into a black hole ![]() |
|
||||
![]()
Welcome, jayblingham!
![]() As you're an IT professional you will catch on quickly to OpenBSD. I predict that you'll appreciate and enjoy OpenBSD a lot. I got a lot of use out of the book Absolute OpenBSD. Mr. Lucas has a dry sense of humour. https://nostarch.com/obenbsd2e
__________________
hitest |
|
|||
![]()
Thanks hitest! I will certainly give that book a look. Much appreciated!
|
|
|||
![]()
Thanks for that info jggimi - I noticed when running the mount -t ntfs-3g command that it was actually running the ntfs-3g command in the background, but I had no luck trying ntfs-3g manually myself either (see below).
I then started down the road of exfat after I checked and saw that the FS was reporting as HPFS/NTFS/exFAT. The disk I was playing with primarily, is a 128GB flash drive formatted in Windows 10. I haven't had a chance to put it back into Windows to verify what file system is actually on there, although I rarely - if ever - format a USB stick as NTFS. That being said, I had similar results with a 4TB external hard drive that I'm certain is NTFS. I'm also not 100% certain I ran the ntfs-3g command properly. When I look at the output of "disklabel", it shows me two partitions (I believe they were partitions, I don't have it in front of me). One listed as 'c' and another listed as 'i'. Given the sizes, I assumed that it was 'i' that I would be trying to mount, and tried this command: ntfs-3g /dev/sd1i /mnt/tmp This still gave me the invalid option error. I'll likely resume my searching/testing tonight (when I get home from work and shed my Microsoft "Clark Kent" like facade). Thanks for all your help! Jay |
|
||||
![]()
Jay,
I'll guess you were attempting to mount the EFI boot partition as if it were NTFS. It isn't. Your NTFS partition is likely to be partition "j". All you need to do is issue # disklabel sd1 to find out if I'm correct.---- some background, just in case some of it is useful ---- As you know a typical, basic Windows workstation installation will have two GPT partitions. A small EFI boot partition of type x'EF', and a larger data partition of type x'07', containing the Windows OS. The disk might also have additional partitioning from the OEM, if you haven't scraped it off the drive already.
When OpenBSD creates its virtual disklabel, it will scan the device's GPT or MBR partition table -- if the device has one -- looking for any known-to-OpenBSD foreign filesystem types, such as the various types of FAT and NTFS partitions. If it finds any, it assigns them to virtual disklabel partitions, starting with partition "i" and running through "p", after which it stops, because that's the last possible disklabel partition letter to assign. If a disklabel is discovered on the disk, OpenBSD doesn't look in any MBR or GPT partition table, because the on-disk disklabel is loaded into memory and it wins, regardless what's in any other on-disk partition table at the time. For shared drives, if you write an OpenBSD disklabel after the MBR/GPT has already been established OpenBSD will map foreign filesystems to partitions for you. If you muck about with your GPT/MBR partition table *after* you've written an OpenBSD disklabel, you must manually make changes to the OpenBSD disklabel yourself, using the disklabel(8) program. Lastly, OpenBSD's "c" partition is truly special. It is always the "whole drive" partition, from sector number 0 to the end of the drive. It always exists, even if there are no other partitions at all. This leaves 15 other partitions "a", "b", and "d" through "p" for actual data partitions. |
|
|||
![]()
Thanks jggimi, with all the info/help in your posts I was able to successfully mount the USB stick!
The biggest confusion through all of this was that the FS type was being reported as NTFS by the disklabel utility. This was not the case however; as it turned out to be exFAT. This is an excerpt from the disklabel output showing this: Quote:
Again, I can't thank you enough. I had high expectations for Daemonforums, but wasn't expecting a resolution to something in my Intro thread ![]() |
|
|||
![]()
Thanks IdOp! Glad to be here!
Jay |
|
||||
![]() Quote:
I've never used exFAT, so I don't know what MBR/GPT partition types it may use. If it uses x'07', the the kernel can't distinguish it from NTFS when it maps a virtual disklabel. Quote:
|
|
|||
![]()
As am I! Wish there was some way to repost it.
Is there a spot you could recommend where I could post a summary of my issue, and the steps/info you gave me to resolve? Rather than it being a question/answer post, it could be a "Hey here's what I experienced" post. I've been reading forums for most of my life, but haven't done much posting ![]() |
|
|||
![]()
Done
![]() |
|
||||
![]()
Sure. I'll take a look.
And ... partition type x'07' is used for a ton o' stuff. While a simple FAT partition is smeared across a whole bunch of different partition types. There's no sense in these standards. https://www.win.tue.nl/~aeb/partitio...n_types-1.html |
|
|||
![]()
Over the past two decades I've used both the Unix like operating systems. I even remember when their where only a few main line Linux distributions (Slackware,Gentoo,Arch and Slackware). Furthermore I remember my first attempts at migrating from Windows and Mac OS to the Unix like operating system culture.
I can still remember how difficult it was harder then all get out because if you had a WiFi card based on Broad-Com chip-sets it was a huge undertaking because you had to download the Windows drivers for Broad com driver and use bw43 cutter script to extract the windows dllsand other elements that are needed to configure said WiFi adapters that not the worst was thoes WiFi cards that required the authoress chip-sets. After my experiences with all of the following Linux distributions Suse,Opensuse Debisn and Ubuntu and in extrema cases Red Hat and all of its associated re spins. |
![]() |
Tags |
introduction |
Thread Tools | |
Display Modes | |
|
|