On Tue, Feb 06, 2001 at 04:44:49PM -0800, Cory Petkovsek wrote:
> 1) I found pkg_add and pkg_add -r to download and install files like 'apt-get
>install' on debian. How can I do an equivalent of 'apt-cache search'? Ie, how do I
>get a listing of files based on a search criteria?
OpenBSD has pkg_info, perhaps FreeBSD also?
> 3) I (foolishly) accepted the default 'partitioning' of freebsd. It's not really
>partitioning they say. I made a real 4GB partition. Then the installer created some
>logical units inside of this partition. / is 50mb!! /var is 20mb and /usr has all
>the rest. Is there a way to dynamically change this? Or how can I manually change
>it without reinstalling? Already I'm running out of space on /.
>
You shouldn't need more that 50mb for / on any unix system, as long as /usr /var /tmp
and /home are on different partitions. (Unless you build ALL the modules for a few
kernel versions (linux) and keep them around, in which case /lib could get quite
large. Or if you are running buggy programs as root :( you could fill up on core
dumps.) I would suggest creating a /usr/tmp and /usr/home, then symlink /tmp and /home
to them. Actually, _I_ would read disklabel(8) and reinstall. :)
> 5) How can I mount my linux partition? I have freebsd as a primary in /dev/hda1.
Linux is in an extended (/dev/hda2). Linux root is inside there at /dev/hda7.
Looking at my devices I only see some /dev/ad.. Since my freebsd (hda1) is ad0s1, I'd
figure linux root is at ad0s7, but I only have ad0s1-4. Is there a way to get freebsd
to open up that ad0s2, to get access to a logical inside of a primary?
As far as I can tell, the BSD's assume the / partition is always first, at least as
far as naming goes. After the BSD partitions (slices, disklabels) come the others, in
order of placement on the drive. At one time I had a drive with, in physical order, a
primary Win98 partition, a primary OpenBSD partition with several OpenBSD slices, a
primary linux swap partition, and an extended partition witHseveral logical linux
logical partitions. OpenBSD considered its / partition the first partition, wd0a. The
second partition was the OpenBSD swap, and the third partition, wd0c, was not a
partition at all, but the system's way of identifying the whole disk. After that were
the other OpenBSD slices, then the Windows partition, then linux swap, then the linux
extended partitions. Um, I guess I didn't have the problem you are having after all,
as OpenBSD found every partition and could easily mount them with mount -t ext2fs
device mountpoint. But, it does show that the naming is probab!
ly not what you expected, and how to guess what it might be. Also you could try
cd /dev
./MAKEDEV ad0s10
If this is valid with FreeBSD, you will have 11 hard drive "special files". I say "If
this is valid" because I remember reading in some documentation for OpenBSD (they
share much, the BSD's, including docs) that it expects all OSes on the disk to reside
wholy within a single primary disk partition. So you may only be able to have 4
partitions. Have you tried the 'disklabel' command?
jakemsr