Re: determining what's in the base system
On Tue, Apr 15, 2008 at 4:59 PM, Chad Perrin [EMAIL PROTECTED] wrote: That's more the sort of answer I was expecting, but seems less easily employed than just using `which` to determine whether something's located under /usr/local. Hi, It just occurs to me to mention that which searches the user's PATH and reports back the first instance of the executable it finds. So you'd potentially get different results for different users on the same system, and it doesn't tell you that something isn't installed or located in more than one place, it just tells you where the *first* instance of it was found. You might say which bash and get a result of '/usr/bin/bash' ...and meanwhile there might also be '/usr/local/bin/bash' but it won't tell you that. The 'locate' command could be useful too, but it depends on how complete the locate database is. Anyway... take care, dharma ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
HDD partitioning question...
Hi folks, (I'm a relative newcomer to all this... thanks for your patience help.) I've installed FreeBSD 6.2 on a system that will be primarily used as an FTP server. It has 2 drives - one for the OS and the other for the FTP storage. My question is about the storage drive in this case. You can see how I have things partitioned right now: # [EMAIL PROTECTED] /var/log]# mount /dev/da0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/da0s1d on /tmp (ufs, local, soft-updates) /dev/da0s1f on /usr (ufs, local, soft-updates) /dev/da0s1e on /var (ufs, local, soft-updates) /dev/da1 on /usr/home (ufs, local, soft-updates) [EMAIL PROTECTED] /var/log]# # I started by trying to use fdisk to partition the storage drive (/dev/da1) but was getting errors which I don't exactly recall - something about a problem with the 'block device'. Anyway, then I wound up using the command newfs -O 2 /dev/da1 which seemed to work and I was then able to mount and use the drive. My question is: is there anything wrong with having /dev/da1 mounted an in-use? Should I have created a partition like /dev/da1s1a or something? I seem to remember somebody once chiding me for having formatted or mounted the 'block device' itself instead of a partition... is this making any sense to anyone? Clearly I need to know more about *NIX file systems (slices, partitions, block devices) and best practices or some such - I am working on it but obviously have a ways to go! Thanks very much! dharma ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: HDD partitioning question...
On Mon, Apr 14, 2008 at 3:38 PM, Mario Lobo [EMAIL PROTECTED] wrote: If you issue the command: fdisk -I /dev/da1 -I Initialize sector 0 slice table for one FreeBSD slice covering the entire disk. and then: ls /dev/da1* you'll get: /dev/da1 /dev/da1s1 which I believe is what you want. then you can: newfs -O 2 (-U) /dev/da1s1 then you can: mount /dev/da1s1 /whatever -- Mario Lobo Thanks Mario, and Jerry and Derek! Jerry, Introducing the idea of 'dangerously dedicated' disks helped a lot... it lead me to this page: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/formatting-media/index.html ...which gave some additional info on 'dedicated mode' and 'compatability mode' and walked me through the steps to create either. I managed to do that and then tried to mount the /dev/da1s1 device but it complained about 'incorrect super block' until I executed newfs -O 2 /dev/da1s1 after which I was able to mount it! [EMAIL PROTECTED] /usr]# mount /dev/da0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/da0s1d on /tmp (ufs, local, soft-updates) /dev/da0s1f on /usr (ufs, local, soft-updates) /dev/da0s1e on /var (ufs, local, soft-updates) /dev/da1s1 on /usr/home (ufs, local, soft-updates) [EMAIL PROTECTED] /usr]# I did all that just before I saw Mario's response (thanks again!) so... anyway, looks like I've got it going in a better way now and it agrees with what Mario suggested I should be expecting so I'm happy. Thanks to all! dharma ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]