Re: Requesting advice on Jail technique.

2005-09-23 Thread sd

Hello,

I use different jails for nearly each network service I have to privide: 
httpd, smtp/pop3, squid, log collector.
It's quite difficult to build each particular jail with those programs 
and corresponding libraries which will be needed in it. That is why I 
made the following simple script to make a jail and to add needed 
programs to it (you will have to change the absolute pathes):


#!/bin/sh

docommand() {
LDD=/usr/bin/ldd
MD=/bin/mkdir
TMP=`which $TGT`
DP=`dirname $TMP`
DF=$DSTDIR$DP/`basename $TMP`

TMPSTAT=`stat $TMP | awk '{ print $3, $5, $6 }'`
if [ -d $DSTDIR$DP ]  [ ! -f $DF ]
then
cp $TMP $DSTDIR$DP
DFSTAT=`stat $DF | awk '{ print $3, $5, $6 }'`
if ( test $TMPSTAT != $DFSTAT )
then
echo Warning - $TMP and $DF modes differ  ls -la $TMP  ls -la $DF
fi
else
$MD -p $DSTDIR$DP  cp $TMP $DSTDIR$DP
DFSTAT=`stat $DF | awk '{ print $3, $5, $6 }'`
if ( test $TMPSTAT != $DFSTAT )
then
echo Warning - $TMP and $DF modes differ  ls -la $TMP  ls -la $DF
fi
fi

for aa in `ldd $TMP | grep -v : | awk '{ print $3 }'`
do
DRNAME=`dirname $aa`
DF1=$DSTDIR$DRNAME/`basename $aa`
AASTAT=`stat $aa | awk '{ print $3, $5, $6 }'`
if [ -d $DSTDIR$DRNAME ]  [ ! -f $DF1 ]
then
cp $aa $DSTDIR$DRNAME
DF1STAT=`stat $DF1 | awk '{ print $3, $5, $6 }'`
if ( test $AASTAT != $DF1STAT )
then
echo Warning - $aa and $DF1 modes differ  ls -la $aa  ls -la $DF1
fi
else
$MD -p $DSTDIR$DRNAME  cp $aa $DSTDIR$DRNAME
DF1STAT=`stat $DF1 | awk '{ print $3, $5, $6 }'`
if ( test $AASTAT != $DF1STAT )
then
echo Warning - $aa and $DF1 modes differ  ls -la $aa  ls -la $DF1
fi
fi
done
};


echo where you want base dir to be?
read DSTDIR
echo $DSTDIR
if ( test $DSTDIR =  )
then
DSTDIR=/usr/home
echo $DSTDIR
#elseif [ ! -d $DSTDIR ]
#then
#mkdir -p $DSTDIR
else
if [ ! -d $DSTDIR ]
then
mkdir -p $DSTDIR
fi
fi

echo how do you want to call this jail?
read JDIR
echo $JDIR
if ( test $JDIR !=  ) then DSTDIR=$DSTDIR/$JDIR; fi;
if ( test $JDIR =  )
then
JDIR=10.10.10.10
DSTDIR=$DSTDIR/$JDIR
fi
echo $JDIR
if [ ! -d $DSTDIR ]
then
mkdir -p $DSTDIR
echo DEST: $DSTDIR
mkdir $DSTDIR/dev  echo Please copy devices!!!
cp /dev/null $DSTDIR/dev/
echo 'Write yes after'
read y;
 if ( test $y != yes ); then exit 0; fi
#	for  in fd net kmem log mem null random stderr stdin stdout 
urandom zero

#   do
#   cp /dev/$ $DSTDIR/$JDIR/dev/
#   done
mkdir $DSTDIR/bin
mkdir $DSTDIR/etc
mkdir $DSTDIR/lib
mkdir $DSTDIR/libexec  cp /libexec/ld-elf.so.1 $DSTDIR/libexec/
mkdir $DSTDIR/home
mkdir $DSTDIR/proc
mkdir $DSTDIR/tmp
mkdir $DSTDIR/usr
mkdir $DSTDIR/var
mkdir $DSTDIR/var/run
cd $DSTDIR  ln -s dev/null ./kernel
for TGT in sh mail syslogd newsyslog cron
do
docommand;
done
fi
echo what programs d'you want to copy?
read TGT
echo $TGT
if ( test $TGT =  )
then
exit 0;
else docommand;
fi
exit 0;


Another one to see the processes in different jails:
IFS='
'
mount -t procfs proc /proc
ii=1
i=5
for i in `ps -ajxfw | grep J | grep -v grep`
do
 uid=`echo $i|awk '{ print $1 }'`
 pid=`echo $i|awk '{ print $2 }'`
 pnam=`echo $i|awk '{ print $10 }'`
  if (test $ii -ne 1) then
   =`readlink /proc/$pid/file | awk -F'/' '{ print $4 }'`
   iii=`echo $ | awk -F'.' '{ print $4 }'`
echo ii= $iii
exit 0;
if (test $iii = buk) then
 i=2
fi
if (test $iii = 198) then
 i=4
fi
if (test $iii = 220) then
 i=5
fi
if (test $iii = 222) then
 i=6
fi
   if ( test $1 = x) then
   echo -e \033[1;1;4${i}m${}, ${pid}:\033[2;0m\
   `cat /proc/$pid/status | awk '{ printf $1\t$15 }'`   $uid\
   `lsof -nn -p ${pid} | grep IPv4 | awk '{ print $8, $9, $12 }'`
   else
#   echo -e \033[1;1;42m$, $pid:\033[2;0m\
   echo -e \033[1;1;4${i}m${}, ${pid}:\033[2;0m\
   `cat /proc/$pid/status | awk '{ printf $1\t$15 }'`   $uid
   fi
  fi
ii=`expr $ii + 1`
done

umount procfs




ate: Thu, 22 Sep 2005 17:51:02 -0700
From: Malachi de ?lfweald [EMAIL PROTECTED]
Subject: Re: Requesting advice on Jail technique.
To: [EMAIL PROTECTED]
Cc: Elliot Crosby-McCullough [EMAIL PROTECTED],
freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1

I am thinking at this point what I am going to try to do is build a jail
skeleton, then use unionfs to mount on top of that... so in theory, I could
save a LOT of space while at the same time giving them pretty complete jails
(one per domain).
 Malachi

 On 9/13/05, Frank Mueller - emendis GmbH [EMAIL PROTECTED] wrote:



Hi there,

if you have enough system resources I would recommend using seperate
jails for every user.
All u have to keep in mind is that you won't be able to provide some
services (SMTP, POP, IMAP, usw.) more than once for the whole system
because they 

Re: FreeBSD 5.4 + VMware

2005-09-21 Thread sd

Try to parse /boot/beastie.4th

Message: 30
Date: Tue, 20 Sep 2005 16:37:07 -0400
From: Aaron Peterson [EMAIL PROTECTED]
Subject: FreeBSD 5.4 + VMware
To: FreeBSD Questions freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1

I've had problems loading/booting FreeBSD 5.4 in a virtual machine.
If I start in the default mode, it crashes VMware.  If I start with
ACPI disabled it crashes VMware.  If I start in Safe Mode it works
great.  So...  I want to learn about what is different about booting
in Safe Mode from the default boot options.  That way I can further
troubleshoot and find the culpret hopefully.  Thanks for any
information regarding this issue.

Aaron
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


vmware on freebsd 5.4

2005-09-20 Thread sd

Hello World!

I've tried several times to install vmware2  3 on my freebsd 5.4 box.
No attempts were successfull with different errors. Especially, for 
vmware3 port the error was: ..404 Not Found.

Why it still exists in ports collection if no sites keep it anymore?
OK, I'll be glad to hear any tips for installing vmware-2.
All what I want - set up two W2K3-servers as PDC and BDC and several W2K 
ws as domain members to try those active directory.



Any help is appreciated very much.
Thanks in advance,
Dmytro
Surovtsev



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Making several custom boot configurations?

2005-08-23 Thread sd
I'm trying to make several different configurated systems on one FreeBSD 
box: different kernel parameters for each configuration, different 
hostname, startup scripts, network configurations, etc.
Can it be done by adding some custom points to boot manager menu or 
altering existent ones?

Thanks,
Dmytro
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fetchmail/Sendmail rejects

2004-08-17 Thread SD
On Sunday 15 August 2004 00:56, Malcolm Kay wrote:
 On Sunday 15 August 2004 04:34, you wrote:
  Malcolm Kay wrote:
   I run fetchmail in daemon mode to download
   POP3 mail from my ISP.
  
   Sendmail rejects many messages as for example:
   Aug 14 16:59:33 beta sm-mta[35000]: i7E7DYje035000:
 ruleset=check_mail, arg1=[EMAIL PROTECTED],
 relay=localhost.home [127.0.0.1], reject=451
 4.1.8 Domain of sender address
   [EMAIL PROTECTED] does not resolve
  
   I am quite happy to have these rejected but it seems they don't
   get deleted at the ISP end and clog up the mail box, I think
   eventually confusing fetchmail.
  
   Is there some reasonable way of disposing of these messages. I
   would prefer not to download these into my normal user mailbox
   but I would be quite happy to divert them to some pseudo user
   setup for the purpose. I would imagine sendmail can be coaxed
   into doing this, but how?
  
   Responding to 2 or 3 lists using a valid e-mail address means
   that I receive a lot of spam including much with unresolvable
   addresses.
 
  have a look at mail/filtermail

 I've just downloaded this port and find it quite interesting. However
 it seems not to offer very much in this particular case as the
 criteria used are similar to those used by my ISP to reject mail --
 I'm able to set the level. But I don't see a way of getting
 filtermail to reject based on domain name resolution.

 Others have pointed out that spam filtering in fetchmail can be used
 to delete mail based on the error code returned by sendmail. It seems
 it might also be reasonable to change sendmail.cf to issue a 553
 error in place of the 451 as the 553 invoking messages are deleted by
 fetchmail by default.

No need. Assuming you do want to reject (trash) the email you can 
specify multiple return codes to fetchmail.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dealing with deffective RAM

2004-08-17 Thread SD
On Sunday 15 August 2004 21:31, Laurentiu Pancescu wrote:
 I was afraid this is what I'll be told, you're
 probably right.  I have two 128M modules, I'll try to
 find the faulty one, by running the tests just with
 one at a time. If it's one of them (could also be the
 processor, or the mainboard, right?), is it better to
 buy a replacement for the defective one, or just a
 single 256M module, to avoid mismatches between the
 chips?  MB is a Matsonic/Chaintech 7AJA0 (I know, it's
 cheap and not very good - that's what Compaq decided
 to put inside Presario), KT833-based, hosting an
 Athlon 1100MHz.

If 256Mb will fit in one slot instead of 2 slots with 128Mb then go for 
it. As others have stated, buy decent ram. Been there myself - add up 
your travel+time and it just isn't worth it. Fwiw, it's only once I got 
decent ram that I was able to diagnose defective L2 cache. Not that I 
want to worry you mind!

Remember that gcc and bzip are excellent torture tests. Set g++ off on 
something heavy and have bzip2 compress/decompress all night in 
tandem. If it's still alive in the morning, consider yourself 
reliable. ;-)


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fetchmail/Sendmail rejects

2004-08-14 Thread SD
On Saturday 14 August 2004 09:10, Malcolm Kay wrote:
 I run fetchmail in daemon mode to download
 POP3 mail from my ISP.

 Sendmail rejects many messages as for example:
 Aug 14 16:59:33 beta sm-mta[35000]: i7E7DYje035000:
   ruleset=check_mail, arg1=[EMAIL PROTECTED],
   relay=localhost.home [127.0.0.1], reject=451
   4.1.8 Domain of sender address [EMAIL PROTECTED]
   does not resolve

 I am quite happy to have these rejected but it seems they don't
 get deleted at the ISP end and clog up the mail box, I think
 eventually confusing fetchmail.

-Z 451 on cli will have fetchmail trash all messages for which MTA 
returns code 451. There's an equivilent fetchmailrc option (antispam 
iirc).

 Is there some reasonable way of disposing of these messages. I would
 prefer not to download these into my normal user mailbox but I would
 be quite happy to divert them to some pseudo user setup for the
 purpose. I would imagine sendmail can be coaxed into doing this, but
 how?

 Responding to 2 or 3 lists using a valid e-mail address means that
 I receive a lot of spam including much with unresolvable addresses.

 I would appreciate any ideas.

 Malcolm

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


LAN Internet

2004-06-25 Thread sd sdfg
Hello,
 
I'm a newbie and please excuse for my poor language.
I have FreeBSD 4.9 and my computer is in LAN with other people. One of our friends is 
the host of the internet. I have all the data required to connect to the internet, but 
I do not know how. My network interface card is correctly installed, I can ping the 
IPs in the LAN. But when I try to access some web adress with the web browser 
Konqueror, I fail.
 
Can you please tell what should I set up in order to have internet or give me some 
link that may be helpful. I've searched in tha handbook, but couldn't find.
 
Thank you!


-
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: openoffice menus

2004-05-02 Thread sd
On Friday 23 April 2004 09:27 am, Malcolm Kay wrote:
 I recently installed openoffice1.1 [...]
 I am using a high resolution
 1600x1200 display and the fonts used by the base UI are
 are crisp and clear but rather too small for my aging eyes.
 I'm refering here to the fonts used in the Menu bars, Drop
 downs and Option dialogs.
--- 

If no one has yet answered your question, you can scale those fonts by 
changing the default setting in:

Tools menu- Options...- OpenOffice.org- View- Scale

Change it to 120% or 150% and see if that looks better--

-Steve D
NM US
-- 

The least initial deviation from the truth is multiplied later a
thousand fold. -Aristotle


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: openoffice menus (P.S. larger icons)

2004-05-02 Thread sd
For larger icons in OpenOffice.org:

Tools menu- Options...- OpenOffice.org- View- Icon Size- Large

-Steve D
NM US

-- 

Whatever it is the government does, sensible Americans would prefer
that the government do it to somebody else. -P.J. O'Rourke


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


USB mouse config, console X, micro HOWTO

2004-04-08 Thread sd
I thought I would post the end results of my own struggle to get my 
USB trackball working as I prefer it to work, for the archives and 
for the benefit of anyone else struggling with this issue, 
although my particular configuration may be more, or less, 
relevant to someone else's hardware and preferences.

Hardware

USB trackball with left button, right button, and two small scroll 
buttons (one for up and one for down). It is a Logitech 
Marble Mouse USB (an optical trackball), and I really like the 
feel of it.

What I wanted the mouse to do
-
It has only two primary buttons (buttons 1 (left) and 3 (right) and 
no middle button (button 2)), so I wanted to enable middle-button 
emulation so that when I pressed the left and right buttons 
simultaneously, it would be as though I had pressed a middle 
button (to do a paste function, for example).

In addition, I wanted to use the mouse, somehow, to scroll the 
contents of windows when I was in the X environment (I use KDE).

How I achieved my goals
---
Here are the relevant exerpts from my /etc/rc.conf and /usr/X11R6/
lib/X11/XF86Config  files --

--- begin excerpt, /etc/rc.conf ---
moused_enable=YES
moused_port=/dev/ums0
moused_type=auto
moused_flags=-p /dev/ums0 -3 -w4
--- end excerpt, /etc/rc.conf ---

--- begin excerpt, /usr/X11R6/lib/X11/XF86Config ---
Section InputDevice
Identifier  Mouse0
Driver  mouse
Option  Protocol auto
Option  Device /dev/sysmouse
#   Option  Emulate3Buttons
#   Option  Emulate3Timeout 50
#   Option  Buttons 5
Option  ZAxisMapping 4 5
EndSection
--- end excerpt, /usr/X11R6/lib/X11/XF86Config ---

Commentary
--
In /etc/rc.conf I have the mouse port specified twice, using both 
'moused_port=/dev/ums0' and the '-p /dev/ums0' option of moused, 
the mouse daemon. For some reason I don't understand, I had to 
have both of those, in order for the mouse to work as I wanted it 
to in the console as well as in X.

In a console, the left button of my trackball selects a starting 
point (which can be extended by dragging), the right button when 
clicked defines the end of a selection, and pressing both buttons 
at once pastes the selection into the text entry area. The two 
scroll buttons don't do anything in the console.

In X (in KDE, in my case), the left and right buttons each act as 
they are configured to do, pressing both simultaneously pastes a 
selection, and pressing the small left scroll button (which is 
button 4 of 5, the 2nd button being the virtual middle button 
accessed by pressing both buttons 1 and 3)--anyway, pressing the 
small left scroll button and then moving the mouse (the trackball 
in my case) up or down while the left-scroll button is kept 
depressed, causes the contents of a window to scroll up or down.

This behavior is achieved by setting options to moused in /etc/
rc.conf. Notice that in the XF86Config file the options for 
emulating 3 buttons are commented out--are not active. The 
important options in XF86Config are the Protocol auto, 
Device /dev/sysmouse, and ZAxisMapping 4 5

The ZAxisMapping option was necessary in my XF86Config, even 
though I specified in /etc/rc.conf that the moused was to report 
Z-axis movement whenever it received Y-axis movement of the mouse 
or trackball, by using the -w4 (wheel mode) option for moused in
/etc/rc.conf. The -w option with the 4 argument (specified either 
as -w4 or -w 4) tells the mouse daemon to substitute Z-axis 
movement for Y-axis movement whenever the 4th button is pressed 
and held down while the mouse is moved. This has no effect in the 
console (that I can see, other than appearing to freeze the 
mouse cursor while the 4th button is depressed), but in X it 
causes the contents of a window to scroll, IF the XF86Config file 
is also edited to have the line:

Option  ZAxisMapping 4 5

as indicated above.

The -3 option for moused in /etc/rc.conf is what causes 3-button 
emulation to occur, which means that the moused reports that (a 
nonexistent) button 2 has been pressed whenever buttons 1 and 3 
are pressed simultaneously. Because X gets this information from 
moused, it does not need to do the 3-button emulation itself, 
which is why those options are commented out in my XF86Config 
file.


Best wishes,
Steve D, NM US

-- 

Any fool can make a rule, and any fool will mind it.
-Henry David Thoreau


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: High pitch/wrong frequency audio on disc via burncd

2004-04-07 Thread sd
On Monday 29 March 2004 11:51 am, Ada Cheng wrote:
   I have a series of wma files (speeches) which I convert to
 wav via mplayer.  The wav files played fine using both xmms
 and Noatun.  However when I burn them onto a cd via burncd:
 burncd -f /dev/acd0c audio *.wav fixate
 the resulting audio on the disc gives me high pitch/wrong
 frequency audio.

---

Try using the program sox to convert the files to CD-audio 
files (.cdr files) BEFORE using burncd to burn them--

I also had problems with some .wav files when recorded to CD-R 
using burncd:

1) a loud click at the beginning of each file, when played 
back on a CD player, which was caused by the non-audio header 
information at the beginning of each .wav file.

2) nothing but hiss when played on a CD player, which was 
caused (I think) by trying to record .wav files that were of 
a length that was not exactly divisible by the block size of 
data on an audio CD.

Both of these problems were eliminated by first converting 
the .wav files into .cdr files using the command line program 
sox, which stripped the header information from the .wav 
files and padded the audio files so that there were no chunks 
of audio data that were less than the usual block size for 
audio CDs.

-Steve D
NM US

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Phoenix BIOS, hard disk data loss

2003-12-05 Thread sd

First, sd wrote:
 Some months ago, just after buying a Tyan Tiger s2466 MPX dual
 processor motherboard and installing FreeBSD 5.0 on it, I
 experienced a lot of data loss [...]

 However, after a couple months I decided to change just one setting
 in the Phoenix BIOS: Large Disk Access Mode

 There are two options for Large Disk Access Mode: DOS and Other

 The help text for this item says: This option denotes that a hard
 drive with more than 1024 cylinders, more than 16 heads and or more
 than 64 tracks per sector is present. Choose OTHER when using OSes
 such as UNIX.

 So, at first I had chosen Other. However, after all the data
 loss, I felt I had nothing (more) to lose so I changed it to DOS
 just to see if it made a difference. Apparently it did. I have
 experienced no more lost data (from hard disk corruption or
 problems) in the six or so months since I made the change.

Dan Strick replied:
 The large disk option sounds like it affects the translated disk
 geometry used by BIOS to increase the amount of disk accessible to
 software that uses the BIOS for disk i/o (e.g. DOS).  FreeBSD uses
 the BIOS disk i/o facilities only to read the disk when booting.

 It is highly unlikely that your file system corruption problems were
 related to the BIOS Large Disk Access Mode option unless you were
 also using a non-FreeBSD OS on the same disk and it inadvertently did
 disk writes through the BIOS to wrong disk locations.

sd adds:
I don't know whether it is pertinent, but here is a quote from a 
(admittedly old) technical manual published by the manufacturers of the 
Phoenix BIOS:

-- begin quote --

BIOS
Enhanced Disk Drive Specification
Version 1.1
May 9, 1995
Phoenix Technologies Ltd.


4.3 Geometric Translations

Some applications get device geometry
information simply by reading the tables which are
accessed via the Int 41h/46h pointers, they fail to
call Int 13h Fn 08h. These are ill-behaved
applications. Ill-behaved applications fall into two
categories: some of them read the Int 41h data and
then use the conventional Int 13h interface for
accessing the device. These are compatible ill-
behaved applications. The remaining ill-behaved
applications read the Int 41h/46h data and then
access the drive in a proprietary manner. These are
incompatible ill-behaved applications.

4.3.1 Compatible Ill-Behaved Applications

Compatible ill-behaved applications require that
address 0, 2, and 14 (Cylinder, Head, and Sector)
information in the FDPT be identical to the
information returned in Int 13h Fn 08h. This class
of application normally fails to call Int 13h Fn 08h
to get device geometry, but uses Int 13h Fn 02h to
read data.

4.3.2 Incompatible Ill-Behaved Applications

Incompatible ill-behaved applications require that
address 0, 2, and 14 information have the
geometry returned by ID drive data words 1, 3, and
6, a requirement that can violate restrictions placed
on Standard FDPTs. Further, these incompatible
ill-behaved applications may not check for the
Translated FDPT signature (A0h at byte 3).
Examples of incompatible ill-behaved applications
are SCO Unix and early versions of Novell Netware.

4.3.3 Resolving the Compatibility Problem

The BIOS can only serve one class of these ill-
behaved applications each time the system boots.
This presents the BIOS and the USER with a
compatibility problem. Phoenix has chosen to add
a Setup field which allows the user to select which
ill-behaved applications will function correctly.
The menu item reads Large Disk Access Mode.
This field defaults to DOS, which creates a
Translated FDPT. Compatible ill-behaved
applications will operate correctly when DOS is
selected.

The remaining selection for Large Disk Access
Mode is OTHER. Incompatible ill-behaved
applications will function correctly with
OTHER, which creates a Standard FDPT.
Because this format uses only physical geometries,
OTHER creates problems for the compatible ill-
behaved applications by generating an illegal
Standard FDPT with more than 1024 cylinders.
The conventional Int 13h interface, however,
continues to use a Translated FDPT, which is
maintained internally by the BIOS, and is
accessable only through Int 13h Fn 08h. SETUP
never changes the method of translation used by
the BIOS. Well behaved DOS and Windows
applications continue to function normally because
they only use Int 13h Fn 08h, which returns
translated geometry.

--- end quote ---



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Phoenix BIOS, hard disk data loss

2003-12-04 Thread sd
On the chance that this information might help someone else.

Some months ago, just after buying a Tyan Tiger s2466 MPX dual processor 
motherboard and installing FreeBSD 5.0 on it, I experienced a lot of 
data loss (lost files and directories, unrecoverable by fsck). I 
thought the problem might be related to disk geometry (I'm fairly new 
to FreeBSD and the sysinstall disk geometry warning concerned me).

However, after a couple months I decided to change just one setting in 
the Phoenix BIOS: Large Disk Access Mode

There are two options for Large Disk Access Mode: DOS and Other

The help text for this item says: This option denotes that a hard drive 
with more than 1024 cylinders, more than 16 heads and or more than 64 
tracks per sector is present. Choose OTHER when using OSes such as 
UNIX.

So, at first I had chosen Other. However, after all the data loss, I 
felt I had nothing (more) to lose so I changed it to DOS just to see if 
it made a difference. Apparently it did. I have experienced no more 
lost data (from hard disk corruption or problems) in the six or so 
months since I made the change.

Maybe this will help someone else. Thanks,

Steve D

-- 

Good luck favors the bold and confident, and if one shrinks
from fear of adventure, then fate conspires to provide
adventure to one in their hiding place.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


dvorak keyboard, single-user mode

2003-06-15 Thread sd
In single-user mode, such as when fsck detects errors at boot time, 
how does one enable the dvorak keyboard by default (so that the 
dvorak keyboard layout will be used whenever the system is in 
single-user mode) or manually?

Thank you,

Steve Doonan
Portales, NM US
-- 

There are times when one would like to hang the whole human race
and finish the farce. -Mark Twain


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]