Re: Missing hard-drive space?

2002-09-22 Thread M.T.

On Sun, 22 Sep 2002, Adam Bender wrote:

 I installed FreeBSD recently, and noticed something strange when I run df:
 (15:28:00) proteus:~/$ uname -a
 FreeBSD proteus.res.cmu.edu 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Tue
 Sep 10 20:21:39 EDT 2002
 [EMAIL PROTECTED]:/usr/src/sys/compile/adam  i386
 (15:28:02) proteus:~/$ df -m
 Filesystem 1M-blocks  Used Avail Capacity  Mounted on
 /dev/ad1s3a14332  2930 1025422%/
 procfs 0 0 0   100%/proc
 /dev/ad0s1 28609 12301 1630743%/mnt/msdos
 linprocfs  0 0 0   100%
 /usr/compat/linux/proc
 /dev/ad1s1 14638  8782  585660%/mnt/msdos2
 linprocfs  0 0 0   100%
 /usr/compat/linux/proc
 (15:28:06) proteus:~/$

 I have BSD installed on /dev/ad1s3a.  The minor questions I have are why
 does linprocfs show up twice, and why does my swap not show up?  But the

Linprocfs shows up twice because you have mounted it twice, probably
by mistake.  If it does not appear twice in /etc/fstab, I don't know
how it happened, but you can have any number of them just by running
mount /usr/compat/linux/proc lots of times.  Most people only mount
it once, though :-)

Swap space is not shown by mount.  You can view your swap partitions
with swapinfo or pstat -s.

 big question is where did the missing HD space on ad1s3a go?
 14332M total - (2930 usedM + 10254M avail) = 1148M unaccounted for.  My
 swap (on /dev/ad1s2) is only 94M.  Anyone have any ideas?

That is the 8% reserved for root use (actually the space is reserved
so FFS can do a decent housekeeping job, but root can use it in an
emergency).

See 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#DISK-MORE-THAN-FULL.

  $.02,
  /Mikko


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Set ataoptions at boot?

2002-09-21 Thread M.T.

On Sat, 21 Sep 2002, Kim Scarborough wrote:

 My DVD drive is on the secondary slave IDE, which defaults to PIO1. To get
 DVDs to play right, I have to run atacontrol mode 1 slave udma33. It
 loses this setting after reboots, though. What's the best way to set it to
 do that automatically at boot? Does it correspond with a sysctl variable?
 This is 4.6.2-RELEASE.

Try putting hw.ata.atapi_dma=1 in /boot/loader.conf.  See ata(4) and
loader.conf(5).

 $.02,
 /Mikko


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: vnconfig and VNIOCATTACH

2002-09-18 Thread M.T.

On Wed, 18 Sep 2002, Tobias Roth wrote:

 I use the following commands to create a plain file, make a filesystem on it and 
mount it:
vnconfig -T -S 128m -Z -s labels -c vn0 /usr/plainfile
chmod 600 /usr/plainfile
disklabel -r -w vn0 auto
disklabel -e vn0
newfs /dev/vn0c
mount /dev/vn0c /mnt/targetdir

 For mounting the device (for instance after a reboot):
vnconfig -e -s labels vn0 /usr/plainfile mountro=/mnt/targetdir

 And for disabling:
vnconfig -d vn0c /usr/plainfile mount=/mnt/targetdir

 1) do I use these commands correctly? I basically just copied stuff from the manpages
 2) after disabling, when I am trying to re-enable the device, I get
vnconfig: VNIOCATTACH: Device busy
 What am I doing wrong?

Try vnconfig -u vn0 to unconfigure the device.

$.02,
/Mikko


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message