8.2-STABLE: audio stopped working properly after upgrade to today's sources

2011-07-04 Thread vermaden
Hi,

I have just upgraded to 8.2-STABLE (sources from today) and now my
audio does not work as it should, its all very, very quiet, even at levels
100/100 for PCM/VOL with mixer, also when I plug in the headphones
they are deaf and sound still plays on the speakers, below are some
details of my hardware.

I did not done any modifications to GENERIC config, just build it 'as
is'.

Thanks in advance for any help,
vermaden

Generally: Dell Latitude E6400 (laptop)

% uname -a
FreeBSD e6400 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Jul  4 09:34:04 CEST
2011 root@e6400:/usr/obj/usr/src/sys/GENERIC  amd64

% cat /dev/sndstat 
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: USB audio (play/rec) default
pcm1: HDA IDT 92HD71B7 PCM #0 Analog (play)
pcm2: HDA IDT 92HD71B7 PCM #1 Analog (play)
pcm3: HDA Intel Cantiga HDMI PCM #0 HDMI (play)

% mixer
Mixer vol  is currently set to 100:100
Mixer bass is currently set to  50:50
Mixer treble   is currently set to  50:50
Mixer pcm  is currently set to 100:100
Mixer mic  is currently set to   0:0
Recording source: mic

% pciconf -lv
hostb0@pci0:0:0:0:  class=0x06 card=0x02331028 chip=0x2a408086 rev=0x07
hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile Memory Controller Hub'
class  = bridge
subclass   = HOST-PCI
vgapci0@pci0:0:2:0: class=0x03 card=0x02331028 chip=0x2a428086 rev=0x07
hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel Mobile Graphic (Mobile Intel 4 Series Chipset
Family)'
class  = display
subclass   = VGA
vgapci1@pci0:0:2:1: class=0x038000 card=0x02331028 chip=0x2a438086 rev=0x07
hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel Mobile Graphic (Mobile Intel 4 Series Chipset
Family)'
class  = display
em0@pci0:0:25:0:class=0x02 card=0x02331028 chip=0x10f58086 rev=0x03
hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel  82567LM-2 Gigabit Network Connection
(82567LM)'
class  = network
subclass   = ethernet
uhci0@pci0:0:26:0:  class=0x0c0300 card=0x02331028 chip=0x29378086 rev=0x03
hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class  = serial bus
subclass   = USB
uhci1@pci0:0:26:1:  class=0x0c0300 card=0x02331028 chip=0x29388086 rev=0x03
hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class  = serial bus
subclass   = USB
uhci2@pci0:0:26:2:  class=0x0c0300 card=0x02331028 chip=0x29398086 rev=0x03
hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class  = serial bus
subclass   = USB
ehci0@pci0:0:26:7:  class=0x0c0320 card=0x02331028 chip=0x293c8086 rev=0x03
hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB2 Enhanced Host
Controller'
class  = serial bus
subclass   = USB
hdac0@pci0:0:27:0:  class=0x040300 card=0x02331028 chip=0x293e8086 rev=0x03
hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) HD Audio
Controller'
class  = multimedia
subclass   = HDA
pcib1@pci0:0:28:0:  class=0x060400 card=0x02331028 chip=0x29408086 rev=0x03
hdr=0x01
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 1'
class  = bridge
subclass   = PCI-PCI
pcib2@pci0:0:28:1:  class=0x060400 card=0x02331028 chip=0x29428086 rev=0x03
hdr=0x01
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 2'
class  = bridge
subclass   = PCI-PCI
pcib3@pci0:0:28:2:  class=0x060400 card=0x02331028 chip=0x29448086 rev=0x03
hdr=0x01
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) PCIe Root Port 3'
class  = bridge
subclass   = PCI-PCI
uhci3@pci0:0:29:0:  class=0x0c0300 card=0x02331028 chip=0x29348086 rev=0x03
hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class  = serial bus
subclass   = USB
uhci4@pci0:0:29:1:  class=0x0c0300 card=0x02331028 chip=0x29358086 rev=0x03
hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class  = serial bus
subclass   = USB
uhci5@pci0:0:29:2:  class=0x0c0300 card=0x02331028 chip=0x29368086 rev=0x03
hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB Universal Host
Controller'
class  = serial bus
subclass   = USB
ehci1@pci0:0:29:7:  class=0x0c0320 card=0x02331028 chip=0x293a8086 rev=0x03
hdr=0x00
vendor = 'Intel Corporation'
device = '82801IB/IR/IH (ICH9 Family) USB2 

Re: LSI MegaRAID 9260 on FreeBSD 8.2 amd64

2011-07-04 Thread Damien Fleuriot


On 7/4/11 3:20 AM, Sam Vaughan wrote:
 Hi,
 
 I want to use an LSI MegaRAID 9260 on FreeBSD 8.2 amd64 using mfi and I have 
 two quick questions:
 
 LSI's MegaRaid SAS documentation [1] states that Currently, the FreeBSD 
 driver is supported only on 32-bit FreeBSD.  On the other hand the FreeBSD 
 8.2 hardware compatibility page [2] states that the mfi driver supports the 
 MegaRaid 9260 in all three of the i386, ia64, amd64 ports.
 
 Is LSI's documentation simply out of date or is there some issue with the mfi 
 driver on amd64?
 

Most likely LSI's out of date.


 Lastly, they describe the installation process including rebuilding the 
 kernel.  Is the mfi driver not built in and active by default?
 

Yes it is :)


 Thanks,
 
 Sam
 
 [1] 
 http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/80-00163-01_Rev_E_SAS_driver_ug.pdf
 [2] http://www.FreeBSD.org/releases/8.2R/hardware.html
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: WLAN issue

2011-07-04 Thread Paul B. Mahol
On 7/3/11, _ pancakekin...@gmail.com wrote:
 Hi List,

 I can't get my WLAN (WPA) to work and I am somewhat at a loss, as to what
 else to try...


 The /etc/rc.conf portion looks like this:

 ifconfig_wi0=WPA DHCP


 My /etc/wpa_supplicant.conf looks like this:

 network={
   ssid=my_ssid
   psk=my_psk
 }

 The above should be fine in terms of how it is set up.


 Invoking ifconfig on the interface tells me that it is connected, however,
 there's still no internet connection.

 # ifconfig wi0
 wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:02:2d:0f:4f:99
inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255
media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps)
status: associated
ssid WLAN-5C7E88 channel 11 (2462 Mhz 11b) bssid 88:25:2c:5c:7e:38
stationname FreeBSD WaveLAN/IEEE node
authmode WPA1+WPA2/802.11i privacy MIXED deftxkey UNDEF bmiss 7
scanvalid 60 roaming MANUAL


 My OS is FreeBSD 7.0.

Why you do not update to 8.2 This way it is far more likely if bug is
still present to be fixed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mount /unmount

2011-07-04 Thread tethys ocean
Hi,

I have 3 question

is FreeBSD can boot and run all service while one of slice is not mount for
example /usr slice..

and second question is my mysql is in /var slice if /var is not mout can I
access mysql being root and chek all databases also can read log file on
/var

third question is can I mount any unmount slice by using just fsck  :)

thx



-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


8.3Release status?

2011-07-04 Thread Leon Meßner
Hi,
is there already any information regarding the release process of 8.3
available ? On http://www.freebsd.org/releng/index.html 8.2 is still
listed under the Upcoming release schedule section. I'm too curious to
see which work/project made the release (like 
http://wiki.freebsd.org/Releng/8.2TODO for 8.2).

cherio,
Leon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ipfw: getsockopt(IP_FW_ADD): Invalid argument

2011-07-04 Thread Unga
Hi all

Following ipfw rule develop error indicated in the subject line:
ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234 out via ath0

What I want to do is forward any packet going to port 1234 to 127.0.0.1:1234.

I have built the kernel with options IPFIREWALL_FORWARD.

What's the error here? Is the rule incorrect?

Many thanks in advance.

Unga
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount /unmount

2011-07-04 Thread Polytropon
On Mon, 4 Jul 2011 15:28:16 +0300, tethys ocean wrote:
 Hi,
 
 I have 3 question
 
 is FreeBSD can boot and run all service while one of slice is not mount for
 example /usr slice..

Check the corresponding entry in /etc/fstab where all file systems
should be mentioned that you want to be mounted at system startup.
For example, a proper line would look like this:

# DeviceMountpoint  FStype  Options DumpPass#
# ---   -   --  -   -   -
/dev/ad0s1f /usrufs rw  2   2

Check device names. Depending on how you're accessing disks, the
name could also be ad0f, ada0f, da0f or something else.

Also keep the correct terminology: FreeBSD mounts UFS partitions,
not slices. A slice contains a partition carrying a file system,
usually UFS.



 and second question is my mysql is in /var slice if /var is not mout can I
 access mysql being root and chek all databases also can read log file on
 /var

No. You can't access files inside a file system that isn't mounted
(exceptions: forensic analysis, or performing a device dump).



 third question is can I mount any unmount slice by using just fsck  :)

No. You can only mount file system that are marked clean. To
accomplish this - yes - running fsck for the device (or the
mount point, if listed in /etc/fstab) is required when the
device has been uncleanly mounted previously. To mount all
file systems, use mount -a.

Also you should _not_ fsck a mounted partition. Unmount them
first (if required), run fsck, then mount. In worst case, boot
from a live system CD or DVD or USB stick and issue the fsck
command from there (really, just worst case scenario, you
shouldn't need this in the first place).




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount /unmount

2011-07-04 Thread Matthew Seaman
On 04/07/2011 13:28, tethys ocean wrote:
 is FreeBSD can boot and run all service while one of slice is not mount for
 example /usr slice..

You can't run a program unless the partition containing it is mounted.
Neither can you run a program if any command interpreter (eg. perl, php,
bash) it uses, or any shared library is similarly not on a mounted
partition.

In order to facilitate working in single user mode, where just about
every partition except the root is usually unmounted, there is a
selection of useful applications in /rescue -- these are statically
linked so no problems with unavailable shlibs.

 and second question is my mysql is in /var slice if /var is not mout can I
 access mysql being root and chek all databases also can read log file on
 /var

MySQL's default data directory location is /var/db/mysql on FreeBSD.
No, you need to mount /var to verify the information you require.

 third question is can I mount any unmount slice by using just fsck  :)

If a partition was not unmounted cleanly (eg. the machine crashed, or
the power was cut off suddenly) then fsck(8) should be used to check and
fix any problems on the filesystem.  If you've booted into single-user
mode, then definitely fsck any partitions before trying to mount them.

However, any fsck'ing that the system requires should happen
automatically if you just let the system reboot itself.  It's only
occasionally when there are certain problems that fsck needs human input
to resolve that you will be instructed to get onto the console and run
fsck by hand[*].

Generally you'ld then use mount(8) to mount any partitions.

Cheers,

Matthew

[*] This is dependent on what sort of filesystems you are using.  For
instance, ZFS never needs to stop and fsck in this way.  UFS+Journal
won't need it either[+].

[+] Sysinstall doesn't support installing a system using these
filesystem technologies: it can be done manually, but that isn't for the
faint of heart.

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: 8.3Release status?

2011-07-04 Thread Matthew Seaman
On 04/07/2011 13:57, Leon Meßner wrote:
 is there already any information regarding the release process of 8.3
 available ? On http://www.freebsd.org/releng/index.html 8.2 is still
 listed under the Upcoming release schedule section. I'm too curious to
 see which work/project made the release (like 
 http://wiki.freebsd.org/Releng/8.2TODO for 8.2).

The next release will be 9.0-RELEASE which is what everyone is preparing
for at the moment.  The release process for that is still in the early
stages, and it isn't yet clear exactly what new stuff will be in 9.0.

8.3-RELEASE would happen in the cycle following 9.0-RELEASE.  Release
cycles tend to be spaced 4+ months apart, at least.  Also, releases will
be held up to fix show-stopper bugs or other problems, so the schedule
may well slip

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: mount /unmount

2011-07-04 Thread Subhro Kar
Hello,

You seem to be new to FreeBSD. In that case , I would recommend you to read the 
Handbook. It is very very good documentation.


On 04-Jul-2011, at 5:58 PM, tethys ocean wrote:

 Hi,
 
 I have 3 question
 
 is FreeBSD can boot and run all service while one of slice is not mount for
 example /usr slice..

Yes, FreeBSD can run off a single filesystem.

 
 and second question is my mysql is in /var slice if /var is not mout can I
 access mysql being root and chek all databases also can read log file on
 /var

If /var is on  separate filesystem, then there is no way you can access 
anything inside /var without mounting /var first.

 
 third question is can I mount any unmount slice by using just fsck  :)

fsck is a utility which is used to check filesystem for consistency. For 
mounting a filesystem you should be using /sbin/mount and for unmounting you 
should use /sbin/unmount.

Thanks
Subhro

Re: what is the RIGHT(TM) way to configure background DHCP?

2011-07-04 Thread deeptec...@gmail.com
moving [ 
http://lists.freebsd.org/pipermail/freebsd-questions/2011-June/231301.html
] to the freebsd-hackers list, as there doesn't seem to be enough 1337
people in the freebsd-questions list. :
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: what is the RIGHT(TM) way to configure background DHCP?

2011-07-04 Thread Lowell Gilbert
deeptec...@gmail.com deeptec...@gmail.com writes:

 moving [ 
 http://lists.freebsd.org/pipermail/freebsd-questions/2011-June/231301.html
 ] to the freebsd-hackers list, as there doesn't seem to be enough 1337
 people in the freebsd-questions list. :

You might want to try rewording your question, because it didn't make
any sense the first time.  [All of your examples were commented out, so
it was no surprise that they didn't work.]

I considered trying to use my chrystal ball to guess that you needed
SYNCDHCP in your interface config, but you had obviously read the
manual for rc.conf(5), so that seemed unlikely...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount /unmount

2011-07-04 Thread tethys ocean
so thx :)

I have a question again in below

On Mon, Jul 4, 2011 at 4:15 PM, Polytropon free...@edvax.de wrote:

 On Mon, 4 Jul 2011 15:28:16 +0300, tethys ocean wrote:
  Hi,
 
  I have 3 question
 
  is FreeBSD can boot and run all service while one of slice is not mount
 for
  example /usr slice..

 Check the corresponding entry in /etc/fstab where all file systems
 should be mentioned that you want to be mounted at system startup.
 For example, a proper line would look like this:

 # DeviceMountpoint  FStype  Options Dump
  Pass#
 # ---   -   --  -   -
 -
 /dev/ad0s1f /usrufs rw  2   2

 Check device names. Depending on how you're accessing disks, the
 name could also be ad0f, ada0f, da0f or something else.

 * Also keep the correct terminology: FreeBSD mounts UFS partitions,
 not slices. A slice contains a partition carrying a file system,
 usually UFS.*



*Means that /usr is not slice ?? or /var is not slice?   are all these are
UFS ?*





  and second question is my mysql is in /var slice if /var is not mout can
 I
  access mysql being root and chek all databases also can read log file on
  /var

 No. You can't access files inside a file system that isn't mounted
 (exceptions: forensic analysis, or performing a device dump).



  third question is can I mount any unmount slice by using just fsck  :)

 No. You can only mount file system that are marked clean. To
 accomplish this - yes - running fsck for the device (or the
 mount point, if listed in /etc/fstab) is required when the
 device has been uncleanly mounted previously. To mount all
 file systems, use mount -a.

 Also you should _not_ fsck a mounted partition. Unmount them
 first (if required), run fsck, then mount. In worst case, boot
 from a live system CD or DVD or USB stick and issue the fsck
 command from there (really, just worst case scenario, you
 shouldn't need this in the first place).




 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...




-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount /unmount

2011-07-04 Thread tethys ocean
so so thx :)



On Mon, Jul 4, 2011 at 4:30 PM, Matthew Seaman 
m.sea...@infracaninophile.co.uk wrote:

 On 04/07/2011 13:28, tethys ocean wrote:
  is FreeBSD can boot and run all service while one of slice is not mount
 for
  example /usr slice..

 You can't run a program unless the partition containing it is mounted.
 Neither can you run a program if any command interpreter (eg. perl, php,
 bash) it uses, or any shared library is similarly not on a mounted
 partition.

 In order to facilitate working in single user mode, where just about
 every partition except the root is usually unmounted, there is a
 selection of useful applications in /rescue -- these are statically
 linked so no problems with unavailable shlibs.

  and second question is my mysql is in /var slice if /var is not mout can
 I
  access mysql being root and chek all databases also can read log file on
  /var

 MySQL's default data directory location is /var/db/mysql on FreeBSD.
 No, you need to mount /var to verify the information you require.

  third question is can I mount any unmount slice by using just fsck  :)

 If a partition was not unmounted cleanly (eg. the machine crashed, or
 the power was cut off suddenly) then fsck(8) should be used to check and
 fix any problems on the filesystem.  If you've booted into single-user
 mode, then definitely fsck any partitions before trying to mount them.


*I guess If I can do fsck without unmount partition I can lost all my data
isn't it?*




 However, any fsck'ing that the system requires should happen
 automatically if you just let the system reboot itself.  It's only
 occasionally when there are certain problems that fsck needs human input
 to resolve that you will be instructed to get onto the console and run
 fsck by hand[*].

 Generally you'ld then use mount(8) to mount any partitions.

Cheers,

Matthew

 [*] This is dependent on what sort of filesystems you are using.  For
 instance, ZFS never needs to stop and fsck in this way.  UFS+Journal
 won't need it either[+].

 [+] Sysinstall doesn't support installing a system using these
 filesystem technologies: it can be done manually, but that isn't for the
 faint of heart.

 --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW




-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount /unmount

2011-07-04 Thread Matthew Seaman
On 04/07/2011 15:50, tethys ocean wrote:
 * Also keep the correct terminology: FreeBSD mounts UFS partitions,
  not slices. A slice contains a partition carrying a file system,
  usually UFS.*
 
 
 *Means that /usr is not slice ?? or /var is not slice?   are all these are
 UFS ?*

It's just nomenclature.  To look like a cool and savvy FreeBSD user,
talk about /partitions/ rather than /slices/.

UFS is the 'Unix File System' -- it describes the way the data are
formatted and managed on the disk.  As opposed to, eg. ext3 (Linux)
or NTFS (Windows).

Cheers,

Matthew


-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: mount /unmount

2011-07-04 Thread Polytropon
On Mon, 4 Jul 2011 17:50:36 +0300, tethys ocean wrote:
 *Means that /usr is not slice ?? or /var is not slice?   are all these are
 UFS ?*

In traditional FreeBSD disk partitioning, a disk can hold
4 slices. In MICROS~1 land, those are called DOS primary
partitions. Unlike there, FreeBSD usually just needs one
slice to install into.

The FreeBSD slice is divided into partitions. Each partition
carries a UFS file system - except the swap partition. Those
partitions are then mounted. This means that in default installs
/usr and /var are the mountpoints of the corresponding
partitions (to be fully correct in terminology) that
have a UFS file system.

Example:

ad0 = the 1st DISK
ad0s1   = the 1st SLICE on the 1st disk
ad0s1a  = the 1st PARTITION on the 1st slice on the 1st disk,
  formatted with UFS

Each partition is assigned a mountpoint. This is the connection
used by the mount command: It mounts the device specifying a
partition to the given mountpoint directory.

A common method of partitioning is this:

# DeviceMountpoint  FStype  Options DumpPass#
# ---   --  --  -   -   -
/dev/ad0s1b noneswapsw  0   0
/dev/ad0s1a /   ufs rw  1   1
/dev/ad0s1d /tmpufs rw  2   2
/dev/ad0s1e /varufs rw  2   2
/dev/ad0s1f /usrufs rw  2   2
/dev/ad0s1g /home   ufs rw  2   2

(In the _default_ install, /home is symlinked to /usr/home which
means it's not a separate partition.)

However, it's possible to just create one partition and install
all the system's functional parts into that one partition.
Mounting it will give access to all subtrees.

Basically, my comment was about the correct terminology which
is important to use in order to avoid misinterpretations.

There is also a mechanism called dedicated partitioning; it's
the same as above, just omitting the slicing part, i. e. partitions
are created directly on the disk (ad0a, ad0d, ad0e, ad0f and so on).

Other partitioning mechanisms do also exist, like GPT (using
gpart instead of traditional MBR tools fdisk + bsdlabel), here
partition names are ad0p1, ad0p2 and so on. It's also possible
to identify partition devices with labels instead of bare
numbers, this can be done by labeling them.

And of course there's ZFS. :-)

You can find more information in the FreeBSD handbook.

3.5 Disk Organization
http://www.freebsd.org/doc/handbook/disk-organization.html

18.3 Adding Disks
http://www.freebsd.org/doc/handbook/disks-adding.html

19.6 Labeling Disk Devices
http://www.freebsd.org/doc/handbook/geom-glabel.html


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument

2011-07-04 Thread Unga
--- On Mon, 7/4/11, Unga unga...@yahoo.com wrote:

 From: Unga unga...@yahoo.com
 Subject: ipfw: getsockopt(IP_FW_ADD): Invalid argument
 To: freebsd-questions@freebsd.org
 Date: Monday, July 4, 2011, 11:48 AM
 Hi all
 
 Following ipfw rule develop error indicated in the subject
 line:
 ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234
 out via wlan0
 
 What I want to do is forward any packet going to port 1234
 to 127.0.0.1:1234.
 
 I have built the kernel with options     
    IPFIREWALL_FORWARD.
 
 What's the error here? Is the rule incorrect?
 
 This is FreeBSD 8.1.
 
 Many thanks in advance.
 
 Unga
 

Does anybody successfully use the ipfw fwd? If so in which FreeBSD version?

Unga


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


the alternative function for inet_aton

2011-07-04 Thread ahmad javadi
hi
I use  inet_aton  function in the kernel socket programming but i have the
following warrning:
crypto.c:63: warning: implicit declaration of function 'inet_aton'
crypto.c:63: warning: nested extern declaration of  'inet_aton'

this function required that arpa/inet,h be included but this folder did
not exit in the my freebsd.
Please help me to find solution or to use alternative function.
thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: the alternative function for inet_aton

2011-07-04 Thread Polytropon
On Mon, 4 Jul 2011 22:35:28 +0430, ahmad javadi wrote:
 hi
 I use  inet_aton  function in the kernel socket programming but i have the
 following warrning:
 crypto.c:63: warning: implicit declaration of function 'inet_aton'
 crypto.c:63: warning: nested extern declaration of  'inet_aton'
 
 this function required that arpa/inet,h be included but this folder did
 not exit in the my freebsd.

Does the directory /usr/include/arpa _not_ exist, or just the
file inet.h in that directory? (If this is, your system include
files are incomplete.)

I also assume that inet comma h is a typo, and you've used
#include arpa/inet.h (inet dot h) correctly. I also assume
you didn't modify the settings from where header files included
with #include ... should be imported (cc -I).

Which FreeBSD version do you use? I'm using 7-STABLE here and
the file is present, it also contains the function prototype.

#define inet_aton   __inet_aton
int  inet_aton(const char *, struct in_addr *);

If you've installed the sources (at the correct version of the
OS you're using), you can find /usr/src/include/arpa with the
file, and you should be able to make install (not tested here)
from there to install arpa/inet.h into the correct location.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Is there a

2011-07-04 Thread Bill Varney
Repository of supported devices within FreeBSD?

I'm looking to map linux drivers to truly open BSD drivers for a
'conversion' project from Linux to an OS requiring non-GPL-like drivers.
I see the i2c and spi, etc., but browsing the BSD sites, don't see any
vendor specific drivers.

 

Thanks,

Bill



Bill Varney
 

Teleca
420 Stevens Ave., Suite 230 Solana Beach, CA 92075
Phone: +96192181876, Fax: +19726966999
Mobile: +96192181876
bill.var...@teleca.com
http://www.teleca.com/

Follow what's going on at Teleca's blog on 
http://www.whatsyourideaoftomorrow.blogspot.com/.

The information contained in this message is confidential and is intended for 
the addressee(s) only. If you have received this message in error please notify 
the sender immediately. The unauthorized use, disclosure, copying or alteration 
of this message is strictly prohibited.

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


Re: Is there a

2011-07-04 Thread Mike Tancsa
On 7/4/2011 2:07 PM, Bill Varney wrote:
 Repository of supported devices within FreeBSD?

For whats in the tree itself, take a look at the tree

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/

There are also a few drivers in the ports tree (/usr/ports).  There are
some vendors who distribute the odd driver from their website, but those
tend to be few and far between. The source code and the ports are your
best bet to look through.   Some drivers support many vendor devices
under one driver (e.g. Intel's em supports a wide variety of nics).  If
you are interested in seeing specifically what is supported, install a
copy of FreeBSD along with the source and grep through for specific
device IDs you are looking for.

---Mike


-- 
---
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, m...@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount /unmount

2011-07-04 Thread Matthew Seaman
On 04/07/2011 15:53, tethys ocean wrote:
 If a partition was not unmounted cleanly (eg. the machine crashed, or
  the power was cut off suddenly) then fsck(8) should be used to check and
  fix any problems on the filesystem.  If you've booted into single-user
  mode, then definitely fsck any partitions before trying to mount them.
 
 *I guess If I can do fsck without unmount partition I can lost all my data
 isn't it?*

fsck on an unmounted partition will change on-disk data structures in
ways that the kernel doesn't expect.  So, yes, one consequence is that
you can lose or corrupt data.  You probably wouldn't lose everything in
the partition -- but you would tend to cause corruption predominantly in
files that are more actively used.

So don't do that.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: backing up freebsd

2011-07-04 Thread Bernt Hansson

2011-07-03 13:56, Tim Dunphy skrev:

hello list!!


Hello Tim.


Could someone please provide a tip on how I can go about backing up the FreeBSD 
client?


http://www.se.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html

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


Re: mount /unmount

2011-07-04 Thread Chip Camden
Quoth Matthew Seaman on Monday, 04 July 2011:
 On 04/07/2011 15:53, tethys ocean wrote:
  If a partition was not unmounted cleanly (eg. the machine crashed, or
   the power was cut off suddenly) then fsck(8) should be used to check and
   fix any problems on the filesystem.  If you've booted into single-user
   mode, then definitely fsck any partitions before trying to mount them.
  
  *I guess If I can do fsck without unmount partition I can lost all my data
  isn't it?*
 
 fsck on an unmounted partition will change on-disk data structures in
 ways that the kernel doesn't expect.  So, yes, one consequence is that
 you can lose or corrupt data.  You probably wouldn't lose everything in
 the partition -- but you would tend to cause corruption predominantly in
 files that are more actively used.
 
 So don't do that.
 
   Cheers,
 
   Matthew
 
 -- 
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
   Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
 

I presume you meant to say on a mounted partition...?

-- 
.O. | Sterling (Chip) Camden  | http://camdensoftware.com
..O | sterl...@camdensoftware.com | http://chipsquips.com
OOO | 2048R/D6DBAF91  | http://chipstips.com


pgpN6Qlmkf89J.pgp
Description: PGP signature


Re: mount /unmount

2011-07-04 Thread Matthew Seaman
On 04/07/2011 20:59, Chip Camden wrote:
 I presume you meant to say on a mounted partition...?

Yep.  Glad to see you're all alert.

Carry on now, nothing to see here...

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: the alternative function for inet_aton

2011-07-04 Thread Polytropon
On Mon, 4 Jul 2011 23:57:34 +0430, ahmad javadi wrote:
 the   /usr/include/arpa is exit but i dont know how install it .
 so how can i install this header file?

If /usr/include/arpa exists and contains the following
files, everything is okay (7-STABLE here, may have different
content on 8):

% ls /usr/include/arpa
ftp.h nameser.h telnet.h
inet.hnameser_compat.h  tftp.h

There is no need to install something. Just make sure you
don't override cc's -I parameter (in cc call or Makefile).



If you need to install the files - i. e. they are NOT present
in /usr/include/arpa, get the sources matching your OS version
(from the DVD, per FTP or via CVS - consult the FreeBSD Handbook
for the respective procedures, e. g. installing the src-all
install set from the CD if you're using RELEASE). Then do:

# cd /usr/src/include/arpa
# make install

I've _not_ tested that, but it should install the files mentioned
above to the correct location. Okay, basically you could simply
cope the files if it fails... :-)



PS. I've re-included the list, hope that's okay.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: fubar'ed it good this time...

2011-07-04 Thread Dr. A. Haakh

Kurt Buff schrieb:

On Thu, Jun 30, 2011 at 17:31, Kurt Buffkurt.b...@gmail.com  wrote:
   

On Tue, Jun 28, 2011 at 06:50, Dr. A. Haakhbugrepor...@haakh.de  wrote:
 

Polytropon schrieb:
   

On Mon, 27 Jun 2011 06:40:27 -0700, Kurt Buff wrote:

 

Your advice sounds reasonable, but that site seems devoted to zfs
bootables.

I wonder if an 8.1 livefs iso will do the trick...

   

Check if you can download FreeSBIE somewhere. It's a live system
using the 5.x and 6.x kernel which should be fine. Next to two
GUI modes (light, heavy) it also has a versatile maintenance mode
for such operations. I have already successfully used this system
for solving similar situations, for diagnostics, and for data
recovery preparation.
 

The loader obviously knows how to deal with the filesystem because he loads
the failing new kernel. So the easiest solution would be to boot an older
kernel if available. I don't know how freebsd-update deals with older
kernels,
he should still be around. First guess is /boot/kernel.old/kernel.
So get the loader-prompt, unload kernel and try load
/boot/kernel.old/kernel.

Andreas
   

OK - to continue, while I have a few free minutes.

I have been able to load the old kernel by going to the loader prompt
from the boot menu, and doing
 unload kernel
 load /boot/kernel.old/kernel

That barked about linproc in fstab, so I edited that out.

Then, the next go-round: It complained about mismatches on
daemon_saver.ko - a version mismatch, so I've commented that out of
/etc/rc.conf. It also complained about linux.ko, so that's been
commented out in /etc/rc.conf as well.

I'm now able to reboot cleanly with the old kernel.

After doing 'freebsd-update install' for the second time, I still
can't get 8.2 to boot - same issue, only acd0 is recognized. However,
I'm logged in as root under the old kernel, though I haven't start
XFCE4, and don't have wireless running.

This one is getting to be fun...

Kurt
 

So, I tried booting from the old kernel again, and then did a
'freebsd-update rollback', and that worked just fine. I thought I'd
try again, but first did a 'freebsd-update fetch' and 'freebsd-update
install' to get the latest 8.1 updates.

That worked just fine, so I did a 'freebsd-update -r 8.2-RELEASE
fetch' again, then a 'freebsd-update install', which went just fine,
and after that rebooted as directed to attempt the second
'freebsd-update install'.

That's when the same thing happened - i got dumped into the mountroot
prompt again. And, again, rebooting and escaping to the loader prompt
allows me to unload the kernel, load /boot/kernel.old/kernel then
autoboot, and boot up. Same as before.

Any thoughts?
   
Redo the rollback to 8.1 and install the 8.2-STABLE source-tree. You can 
install the 8.1-sources from cd and update them to 8.2-STABLE using csup.


Put the following lines in /etc/make.conf
SUP_UPDATE= YES
SUP=/usr/bin/csup
SUPHOST=cvsup2.de.freebsd.org
SUPFILE=/usr/share/examples/cvsup/stable-supfile

Make sure that stable-supfile contains the right tag
*default release=cvs tag=RELENG_8

Then goto /usr/src and make update |tee _Update.log

Once the source-tree is up-to-date:

Have a look at the FreeBSD Handbook: Chapter 8 - Configuring the FreeBSD 
Kernel.


Copy GENERIC to e.g. MYKERNEL, edit MYKERNEL and add some debug-flags. 
See /sys/conf/NOTES for additional debug-options. You may as well try 
GENERIC - maybe your problem is gone...
Then go to /usr/src and do s.th. like make buildkernel 
KERNCONF=MYKERNEL and if the kernel built fine install it: make 
KERNCONF=YOURKERNEL installkernel. You can also add KERNCONF=MYKERNEL 
to /etc/make.conf instead of adding it to the make command.
Installing the new kernels moves /boot/kernel to /boot/kernel.old and 
installs the new one in /boot/kernel. If the new kernel fails again, you 
can delete it: rm -rf /boot/kernel  mv /boot/kernel.old /boot/kernel 
thus putting the previous kernel in the right place.
If the new kernel fails again, then press the Scroll-key and navigate to 
the disk-probe usind page-up-key. Write down the messages or take a 
photo and post it to this list.


If the STABLE kernel boots fine you will probably want to remove all the 
debugging stuff and rebuild it.


If you intend to keep the 8.1-kernel move it to e.g /boot/kernel-8.1 so 
it will not be deleted, when you install new ones and you can always 
load /boot/kernel-8.1/kernel from the loader


Once the new kernel boots fine, cd /usr/src and follow the instructions 
in Makefile how to build and install a new kernel and a new world.


At this point there is no more need for kernel-8.1: delete it.

Andreas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


make delete-old files always coming back

2011-07-04 Thread Dennis Glatting

Whenever I do an update these files keep getting reinstalled.

Taz# mk delete-old

Removing old files (only deletes safe to delete libs)

remove /usr/include/nfs/krpc.h? y
remove /usr/include/nfs/nfsdiskless.h? y

Old files removed
Removing old directories
Old directories removed

To remove old libraries run 'make delete-old-libs'.

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


Re: Is there a

2011-07-04 Thread Chad Perrin
On Mon, Jul 04, 2011 at 01:07:36PM -0500, Bill Varney wrote:
 Repository of supported devices within FreeBSD?
 
 I'm looking to map linux drivers to truly open BSD drivers for a
 'conversion' project from Linux to an OS requiring non-GPL-like drivers.
 I see the i2c and spi, etc., but browsing the BSD sites, don't see any
 vendor specific drivers.

I find what you say you're doing interesting, even if I'm not entirely
clear on what it is in all its particulars.  Would you please clarify the
aim of your efforts?

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpo0E4CThr5R.pgp
Description: PGP signature


Fwd: Re: why desktop apps are able to kill my freebsd box?

2011-07-04 Thread Timo

In other words,

I don's think,

It's about software at all

In my opinion


 Original Message 
Subject: Re: why desktop apps are able to kill my freebsd box?
Date: Tue, 05 Jul 2011 02:29:11 +0200
From: Timo timo.bsdm...@gmail.com
Reply-To: timo.bsdm...@gmail.com
To: freebsd-questions@freebsd.org

Who decided to run any privileged application, in terms of doing what
you didn't want it to? Did you at all try to implement anything you were
not sure of? Or what did you ask again?

What do you want to employ in the first place, and what security risks
are negotiable? (firefox/freezings? try to reseat every piece of
hardware until no freeze is found, including cpu, then complain about
software)

On 2011-07-01 11:00, Michael wrote:

Why a faulty desktop application run as unprivileged user is able to
crash my system?

I mean, I know programs have bugs and sometimes they lead to crashes.
I'm fine with that. But why a crashing program (for example firefox or
banshee) is able to kill the whole system?

And by 'crash' or 'kill' i mean that for whatever reason the system is
frozen and doesn't reply to anything but a hard reset.

It just doesn't make much sense so I'm assuming that I must be doing
something wrong. Where and what kind of restrictions should I set up to
make sure that a buggy unprivileged program cannot freeze my box?

Thank you in advance. Michael.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


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


Re: why desktop apps are able to kill my freebsd box?

2011-07-04 Thread Timo
Who decided to run any privileged application, in terms of doing what 
you didn't want it to? Did you at all try to implement anything you were 
not sure of? Or what did you ask again?


What do you want to employ in the first place, and what security risks 
are negotiable? (firefox/freezings? try to reseat every piece of 
hardware until no freeze is found, including cpu, then complain about 
software)


On 2011-07-01 11:00, Michael wrote:

Why a faulty desktop application run as unprivileged user is able to
crash my system?

I mean, I know programs have bugs and sometimes they lead to crashes.
I'm fine with that. But why a crashing program (for example firefox or
banshee) is able to kill the whole system?

And by 'crash' or 'kill' i mean that for whatever reason the system is
frozen and doesn't reply to anything but a hard reset.

It just doesn't make much sense so I'm assuming that I must be doing
something wrong. Where and what kind of restrictions should I set up to
make sure that a buggy unprivileged program cannot freeze my box?

Thank you in advance. Michael.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


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


Re: PID 11 using 400% CPU

2011-07-04 Thread manish jain
Hello Dan,

It looks like ppp is doing a lot of read and write operations, which keeps
the disk spinning. How do I set this right ? Is there something wrong with
my ppp.conf (see below) ?

ppp.conf :

default:
 set log Phase Chat LCP IPCP CCP tun command
 allow users bourne
# ident user-ppp VERSION (built COMPILATIONDATE)
 set device /dev/cuaU0.0
 set speed 115200
 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
 \\ AT OK-AT-OK ATFE0V1X1D2C1S0=0 OK \\dATDT\\T TIMEOUT 40 CONNECT
 set timeout 180 # 3 minute idle timer (the default)
 enable dns # request DNS info (for resolv.conf)

huawei:
 set phone #777
 set login
 set authname internet
 set authkey 
 set timeout 180
 disable ipv6cp
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 accept CHAP


On 30 June 2011 10:26, Dan Nelson dnel...@allantgroup.com wrote:

 In the last episode (Jun 30), Manish Jain said:
 
 Hello All,
 I have a strange problem with my 8.1 box. After booting, the hard disk
 goes into a full-speed never-ending spin.

 To see what disk I/O is being done, try running ktrace -dip 0 ; sleep 10 ;
 ktrace -C, to capture all syscalls done on the entire system (pid 0 plus
 children) for 10 seconds, then run kdump -m64 | less to view the results.
 Look for read or write calls.

  'ps waux' always shows pid
 11 as taking 400% CPU utilization :
 /root # ps -up 11
 USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  TIME COMMAND
 root11 400.0  0.0 032  ??  RL7:22PM 166:35.46 [idle]
 I have tried multiple tweaks to resolve this - all to no effect. The

 As for this, what's to resolve?  The idle process is a placeholder with one
 thread per CPU that accounts for time the CPU isn't doing any work.  If you
 want to reduce it's CPU use, run other CPU-intensive processes :)  BTW,
 Windows has the same thing if you look at task manager; it's called System
 Idle Process there.

 --
Dan Nelson
dnel...@allantgroup.com

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


Re: why desktop apps are able to kill my freebsd box?

2011-07-04 Thread timp
Which video card do you use?

--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/why-desktop-apps-are-able-to-kill-my-freebsd-box-tp4541545p4552169.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount /unmount

2011-07-04 Thread Ian Smith
In freebsd-questions Digest, Vol 370, Issue 2, Message: 19
On Mon, 04 Jul 2011 20:43:23 +0100 Matthew Seaman 
m.sea...@infracaninophile.co.uk wrote:
  On 04/07/2011 15:53, tethys ocean wrote:
   If a partition was not unmounted cleanly (eg. the machine crashed, or
the power was cut off suddenly) then fsck(8) should be used to check and
fix any problems on the filesystem.  If you've booted into single-user
mode, then definitely fsck any partitions before trying to mount them.
   
   *I guess If I can do fsck without unmount partition I can lost all my data
   isn't it?*
  
  fsck on an unmounted partition will change on-disk data structures in
  ways that the kernel doesn't expect.  So, yes, one consequence is that
  you can lose or corrupt data.  You probably wouldn't lose everything in
  the partition -- but you would tend to cause corruption predominantly in
  files that are more actively used.
  
  So don't do that.

Actually fsck is smarter than to damage data on mounted partitions; it 
forces the -n switch (NO WRITE) on a mounted partition so is perfectly 
safe to use, as long as you're aware that it can't correct any errors, 
and indeed will most often list some apparent errors that are merely 
temporary inconsistencies in the present state of the filesystem such 
as open files, viz:

sola# mount -p
/dev/ad0s2a /   ufs rw  1 1
devfs   /devdevfs rw0 0
/dev/ad0s2d /varufs rw,noatime  2 2
/dev/ad0s2e /usrufs rw,noatime  2 2
devfs   /var/named/dev  devfs rw0 0

sola# fsck /var
** /dev/ad0s2d (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=24  OWNER=mysql MODE=100600
SIZE=0 MTIME=Feb  6 23:59 2011
CLEAR? no

UNREF FILE I=60  OWNER=mysql MODE=100600
SIZE=0 MTIME=Feb  6 23:59 2011
CLEAR? no

UNREF FILE I=86  OWNER=mysql MODE=100600
SIZE=0 MTIME=Feb  6 23:59 2011
CLEAR? no

UNREF FILE I=24830  OWNER=root MODE=140666
SIZE=0 MTIME=Mar  2 03:32 2011
CLEAR? no

** Phase 5 - Check Cyl groups
2579 files, 96883 used, 29956 free (1132 frags, 3603 blocks, 0.9% fragmentation)

sola# fsck /usr
** /dev/ad0s2e (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=804237  OWNER=smithi MODE=100640
SIZE=0 MTIME=Jun 29 20:29 2011
CLEAR? no

** Phase 5 - Check Cyl groups
401132 files, 8584016 used, 3155190 free (88926 frags, 383283 blocks, 0.8% 
fragmentation)

cheers, Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org