www.linuxonlinehelp.de Nonprofit Linux PC & Server Support by Thomas Sternasky Germany » FreeBSD Unix

Category: FreeBSD Unix

FreeBSD: Clicking noise Harddrive SATA WDC WD5000LPVX SATA 3 Drive on FreeBSD 9.1

Kommentare Kommentare deaktiviert
Von , Montag, Juli 15, 2013

FreeBSD: Clicking noise WDC WD5000LPVX SATA 3 Drive on FreeBSD 9.1

same like in Linux:
APM Funktion starts/stops the heads and make click sounds, not needed on a Server. To disable like in Linux with hdparm on FreeBSD do:

If you want to disable APM (Advanced Power Management) on your hard drive to reduce heads movements and increase your hard drive life you can do that very easy by using ataidle app from FreeBSD’s Ports:

cd /usr/ports/sysutils/ataidle
make install clean; rehash

Then to disable APM on your hard drive run:

ataidle -P 0 /dev/ad0

We can start ataidle app at FreeBSD boot time by adding the following lines in /etc/rc.conf (the second line correspond to our previous command that we want to run at boot time):

ataidle_enable="YES"
ataidle_devices="ada0"
ataidle_ada0="-P 0"

Remark: most Server SATA Controllers change HDD Names like from ad6 to ada0, read last lines of “dmesg” and see, “Drive ada0: Previously was known as ad6″ Message!!!

Linux Tip: Split Console Screen on Widescreen Laptop / PCs with “screen” and “terminator”

Kommentare Kommentare deaktiviert
Von , Sonntag, Juli 14, 2013

Current Laptops / PCs uses 16:9 Widescreen Displays and if you dont want to use Xorg (Gnome,unity,Openbox Desktops)

you can use on Linux Console the program called “screen” it offers:

- Split Consoles horizontally and vertically
- disconnect the screen and let the scripts/commands active on remote Systems
- reconnect if the remote Session was broken cause network prolblems

On Gnome or unity you can use “terminator”

screen-tiled

see:

- manpage of screen
- http://unix.stackexchange.com/questions/7453/how-to-split-the-terminal-into-more-than-one-view

Linux Info: UEFI + GPT + Secure Boot = Dongled OS = Printing Dollars

Kommentare Kommentare deaktiviert
Von , Sonntag, Juli 14, 2013

UEFI+GPT+dongled OS = Printing endles Dollars for PC Manufacter and  M$.

 

UEFI was offered for “security reasons” but in my opinion the normal users should be prevented by this “UEFI LOCK” to use Dual Boot or remove Windows on owned hardware, in cases of Mainboard failures the Users are forced to buy new Mainboards with OS-Key. Legacy Mode on Bios will disappear in the next generation of PCs than every OS is “dongled” to Hardware like MacOS to their Products…

 

FreeBSD Linux: Remove Clear GPT Partition Table from drives

Kommentare Kommentare deaktiviert
Von , Samstag, Mai 26, 2012

Problem: FreeBSD 9 use GPT Partitionlabel by default to remove with Linux do:

fdisk message: WARNING: GTP (GUID Partition Table) detected on '/dev/sdX'
The util fdisk isn't support GPT.

do on console:

sudo parted /dev/sdX


mklabel msdos (Enter Yes!)
quit

now use Linux fdisk to recreate a new partion Table

Dell Power Edge 1600SC with FreeBSD FAST Custom Kernel Megaraid Perc 2

Von , Donnerstag, September 23, 2010

- insert Freebsd i386 CD (netinstall)
- Boot Server from CD
- select keyboard for your Country
- select Custom Expert Install at Install Mananger “sysinstall”
- make a “minimal” setup
- reboot
- login as root
- start $sysinstall
- select distributions
- select src
- select base+tools+sys
- install sources from ftp.freebsd.org
exit sysinstall mananger
- as root go $cd /usr/src/sys/i386/conf
download “custom” Kernelfile from here
- copy into custom into /usr/src/sys/i386/conf
- run as root:
$/usr/sbin/config custom
$cd ..compile/custom
$make cleandepend
$make depend
$make
$make install
$make clean
…enjoy…fast Custom Kernel..
contact me for problems..

or copy+paste custom file:

##################################################################
#
# FREEBSD 8.0 KERNEL FILE CUSTOM BUILD for DELL POWEREDGE 1600SC
# MEGARAID PERC2
#
# made by Thomas Sternasky 30.04.2010 www.linuxonlinehelp.de
#
# FREE FOR ALL FREE HUMANs!!
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.519.2.4.2.2 2009/11/09 23:48:01 kensmith Exp $
#
#cpu I486_CPU
#cpu I586_CPU
cpu I686_CPU
ident custom
# To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" # Default places to look for devices.
# Use the following to compile in values accessible to the kernel
# through getenv() (or kenv(1) in userland). The format of the file
# is 'variable=value', see kenv(1)
#
# env "GENERIC.env"
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
options SCHED_ULE # ULE scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
options INET6 # IPv6 communications protocols
options SCTP # Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL # Enable gjournal-based UFS journaling
options MD_ROOT # MD is a potential root device
options NFSCLIENT # Network Filesystem Client
options NFSSERVER # Network Filesystem Server
options NFSLOCKD # Network Lock Manager
options NFS_ROOT # NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660 # ISO 9660 Filesystem
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options GEOM_PART_GPT # GUID Partition Tables.
options GEOM_LABEL # Provides labelization
options COMPAT_43TTY # BSD 4.3 TTY compat (sgtty)
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options COMPAT_FREEBSD7 # Compatible with FreeBSD7
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE # ktrace(1) support
options STACK # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options P1003_1B_SEMAPHORES # POSIX-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
options AUDIT # Security event auditing
options MAC # TrustedBSD MAC Framework
options FLOWTABLE # per-cpu routing cache
#options KDTRACE_HOOKS # Kernel DTrace hooks
# To make an SMP kernel, the next two lines are needed
options SMP # Symmetric MultiProcessor Kernel
device apic # I/O APIC
# CPU frequency control
#device cpufreq
# Bus support.
device acpi
device eisa
device pci
# Floppy drives
#device fdc
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
device ataraid # ATA RAID drives
device atapicd # ATAPI CDROM drives
device atapifd # ATAPI floppy drives
device atapist # ATAPI tape drives
options ATA_STATIC_ID # Static device numbering
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
device ch # SCSI media changers
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct SCSI access)
device ses # SCSI Environmental Services (and SAF-TE)
# RAID controllers interfaced to the SCSI subsystem
device amr # AMI MegaRAID
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device psm # PS/2 mouse
device kbdmux # keyboard multiplexer
device vga # VGA video card driver
# syscons is the default console driver, resembling an SCO console
device sc
device agp # support several AGP chipsets
# Power management support (see NOTES for more options)
#device apm
# Add suspend/resume support for the i8254.
#device pmtimer
# Serial (COM) ports
device uart # Generic UART driver
# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to sio, uart and/or ppc drivers):
#device puc
# PCI Ethernet NICs.
device de # DEC/Intel DC21x4x (``Tulip'')
device em # Intel PRO/1000 Gigabit Ethernet Family
device igb # Intel PRO/1000 PCIE Server Gigabit Family
device ixgb # Intel PRO/10GbE Ethernet Card
# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device miibus # MII bus support
device bce # Broadcom BCM5706/BCM5708 Gigabit Ethernet
device bfe # Broadcom BCM440x 10/100 Ethernet
device bge # Broadcom BCM570xx Gigabit Ethernet
# Pseudo devices.
device loop # Network loopback
device random # Entropy device
device ether # Ethernet support
device tun # Packet tunnel.
device pty # BSD-style compatibility pseudo ttys
device md # Memory "disks"
device gif # IPv6 and IPv4 tunneling
device faith # IPv6-to-IPv4 relaying (translation)
device firmware # firmware assist module
# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device bpf # Berkeley packet filter
# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
# END-custom#

FreeBSD 8.0: Perl Webmin Bug

Von , Donnerstag, September 23, 2010

System FreeBSD 8.0 R3 AMD64

Webmin 1.510
Perl 5.8.9

Webmin-Log:
symbol “sdbm_open”

- do portupgrade -f webmin
- do portupgrade -f perl
- do perl-after-upgrade -f

(to update all deps of Perl)

Ubuntu Lucid 10.04 Review Workstation: Phenom X6 1090T

Von , Donnerstag, September 23, 2010

Today i got new parts for my workstation:

- Phenom X6 1090T
- Asus M4N75TD AM3
- 8GB RAM 1333Mhz from Kingston 4x 2GB Kingston HyperX
- Graphic Card Nvidia 8400GS Low Noise (fanless)

runs well as low noise workstation!
tests following…

Board works on:
- FreeBSD 8.0 (nforce 750)
- Debian Lenny 5.0 AMD64
- Ubuntu 10.04
- Centos 5.4 / SME Server 8.0beta5

works NOT: cause nforce SATA chip not recognized! by setup CD
- Centos 4/5
- Redhat
- FreeBSD 7

Powerconsumption as Server 130Watt/h without DVD and Graphiccard 103Watt/h with 6 Cores at 3600Mhz
Temp 32 degrees Idle most not over 45degrees CPU usage

Costs:
Case 20Euro
Parts 720Euro
at:
www.mindfactory.de fast Reseller, fast shipping..

Hardening Freebsd 7.1 Filesystem with Raid1 and Journal

Von , Samstag, März 14, 2009

Problem: If you setup a free freebsd webserver with two disks on same size the ufs2 filesystem fails the gmirror raid1 if the server lost power. The problem is that open files are destroyed.

Solution: If you setup a new freebsd system create for every partition a extra partition (for journal) install the gjournal AFTER GMIRROR!! and make some power failure tests. After powerfailure the system must reboot and rebuild its mirror and should run online after rebuild without any problem.

Howto for

  1. gmirror
  2. gjournal

FreeBSD PCBSD and DesktopBSD easy Setup for Beginners of Unix

Von , Freitag, Februar 13, 2009

If you have a older PC and have learned Linux you can have a closer Look at the new OS of PcBSD or DektopBSD

Its a easy way to learn “real Unix” and understand the structure of a Unix OS, you can setup all kinds of BSD Unix on a very high count of different hardware. The most popular programs of Linux can be used here too, many commands are like linux commands and you can compile always the newest programs onto your System for the highest performance instead of pre-compiled software like redhat-debian-packages (.deb/.rpm)


Webcam Bad Hersfeld Erlebnisreisen Steinberger Busreisen Webcam Eiterfeld Franz Raab Schauspieler Bad Hersfeld Genealogy Family Sternasky Research