this post has been archived.
ok so i've been googling this problem for a while now and i've yet to find a solution...
"well i decided to go with openbsd assuming i can get freeradius2 to compile (haven't gotten that far yet) but i've got a question for you...
let's say i have a machine running openbsd that get's reloaded from scratch regularly
i have a 250gb hdd in it and want to devote 200gb to data (music) that can't be lost everytime i want to reload the machine. i'm assuming i can use fdisk to create a second partition to store the music and just wipe the first partition everytime i want to reload the machine. am i missing something here?"
"let me be a bit more clear, i can create the second partition without issue (mostly) but when i load up disklabel to to assign it a mount point it only looks at the first partition i created. i get the feeling i'm using fdisk incorrectly."
thoughts? i'll post screen dumps once i get home of the problems i'm encountering.
this is definitely possible... not sure what you're having trouble with though (disklabel). i do all my partitioning in gnuparted- i highly recommend using it
@nestor: i've used gnuparted before, ideally i'd be able to use system tools so that automation is a possibility in the future. thanks for the advice though.
ok i may have figured it out, i was running disklabel wd0 when i should've been running disklabel wd0b...
real talk
asemisldkfj
the law is no protection
are you trying to use disklabel during the initial install to assign it a mount point? don't!
you don't really need disklabel at all just to mount it. if you have a separate partition you created with fdisk, it has a disk label on it, and a valid filesystem, you should just be able to add it to /etc/fstab and do mount /mountpoint.
asemisldkfj
the law is no protection
some clarification: you use fdisk to divide the disk into partitions. you use disklabel to slice up individual partitions.
asemisldkfj
the law is no protection
I think.
this post has been archived.
this post has been archived.
the more i work on this seemingly simple problem, the more i want to punch myself in the face.
for clarity... (courtesy of the openbsd install guide)
Some users may be a little confused by the terminology used here. It will appear we are using the word "partition" in two different ways. This observation is correct. There are two layers of partitioning in the above OpenBSD platforms, the first, one could consider the Operating System partitioning, which is how multiple OSs on one computer mark out their own space on the disk, and the second one is how the OpenBSD partition is sub-partitioned into individual filesystems. The first layer is visible as a disk partition to DOS, Windows, and any other OS that uses this disk layout system, the second layer of partitioning is visible only to OpenBSD and those OSs which can directly read an OpenBSD filesystem.
i think i need to use disklabel for this (man page:newfs)
Before running newfs or mount_mfs, the disk must be labeled using
disklabel(8). newfs builds a file system on the specified special de-
vice, basing its defaults on the information in the disk label.
but it gets better (openbsd faq #14)
All OpenBSD platforms, however, use disklabel(8) as the primary way to manage OpenBSD partitions. Platforms that also use fdisk(8) place all the disklabel(8) partitions in a single fdisk partition.
If you install foreign filesystems on your system (often the result of adding a new operating system) after you have already installed OpenBSD, a disklabel will already be present, and it will not be updated automatically to contain the new foreign filesystem partitions. If you wish to use them, you need to add or modify these partitions manually using disklabel(8).
this is all i'm willing to read tonight. more attempts tomorrow!
asemisldkfj
the law is no protection
what exactly are you attempting and when are you attempting it? details!
asemisldkfj
the law is no protection
i.e., what commands are you running, what do they respond with, when are you running them, etc.
DaGr8Gatzby
Drunk by Myself
^ OpenBSD Zealot.
asemisldkfj
the law is no protection
so? :)