![]() |
|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
#mkdir /mnt/flashdrive
#newfs -t msdos sd0c #mount /dev/sd0i /mnt/flashdrive I am trying to mount a flashdrive to openBSD. I am trying to understand why the above works. First, how do I find what device the flashdrive is, i.e. "sd0c"? Second, when I go to mount using /dev/sd0i why does "sd0c" change to "sd0i"? |
|
|||
![]()
Using newfs(8) on sd0c will overwrite or "format" the entire device, I'm going to guess that's probably NOT what you want.. you should use fdisk(8) to create an appropriate MBR partition table.
OpenBSD's dmesg(8) can help you identify disks and their corresponding device nodes, the kernel uses sd(4) for a lot of SCSI-like devices, including USB mass storage. BSD as well as other BSD's have an additional level of partitioning called "disklabels", on OpenBSD, the c partition is reserved and represents the entire device. When you have foreign partitions/filesystems OpenBSD creates a "fake" disklabel in memory and starts them off at i. OpenBSD has a fairly comprehensive FAQ and is constantly improving the system documentation, or man pages. You should take the time to become familiar with the system. Last edited by BSDfan666; 24th October 2011 at 02:38 AM. |
|
|||
![]()
Just a general note, but a lot of people seem to forgot or ignore, on OpenBSD.. you should almost always use the raw character device except when you're mounting, in which case the block devices are preferred.
That means using /dev/r??[a-p] vs /dev/??[a-p] for most userland commands that directly deal with disk devices. |
|
|||
![]()
Thanks for posts. It was a 128MB flashdrive so not too concerned with formatting the whole drive.
Also, working on reading the documentation. New to BSD and linux in general so it's a steep learning curve. Trying to google as much as I can, however, apparently my google Fu is not so good. Thanks again. |
|
|||
![]() Quote:
OpenBSD is constantly changing -- especially given that there are two new releases each year. Most information randomly found on the Internet (usually found on Google...) is either out-of-date, incomplete, or simply wrong. The best sources of information are (The order below is intentional...):
Last edited by ocicat; 25th October 2011 at 07:24 PM. |
|
|||
![]()
I've experienced exactly what you stated. Google searches on most anything I have tried to find on openBSD or BSD in general has been outdated or my search has returned zero results. Problem is that there are problems or questions I have had that the FAQ or manual will not answer.
Anyway, I've got a couple books on the way and I am trying to stumble through/figure out the BSD OS. So far, I like the operating system. Just going to take some time learning how to use it. |
|
|||
![]()
If you care to enumerate, perhaps we can help.
|
|
|||
![]()
No sir (or ma'am), thank you though. It was a perl dependency problem. Took me a while but I eventually figured it out.
![]() |
|
|||
![]()
Be aware that a number of CPAN modules are already ported to OpenBSD & are available through the packages/ports system. The module names are not necessarily the same as on CPAN, so careful searching through either OpenPorts or through the ports tree itself is required.
We have seen a number of members run into brick walls trying to install directly from CPAN when the modules in question were already available as packages/ports. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to understand routing with openbsd | badguy | OpenBSD General | 7 | 18th September 2011 02:08 AM |
How to expand who command? | guitarscn | FreeBSD General | 1 | 27th August 2010 11:53 PM |
please help me understand wpa settings | gosha | OpenBSD General | 1 | 14th July 2009 11:37 AM |
Delayed command? | wubrgamer | Other BSD and UNIX/UNIX-like | 9 | 22nd April 2009 03:15 AM |
How understand someone connect to my BOX with VNC | mfaridi | OpenBSD Security | 8 | 21st November 2008 12:24 AM |