Arch vs BSD

In Wikipedia describing the features of Arch is that it uses a BSD-style init framework. Today I read in DistroWatch about "compare and contrast BSD Ports and Linux package management", doesn't Arch has another BSD feature as well.
The ports system provides Makefiles, allowing you to pass make targets and compile your own software. The packages system provides pre-compiled binaries, allowing you to quickly install software from the command line.
.... supports both compile-your-own and installing pre-compiled software using command-line tools.
http://distrowatch.com/weekly.php?issue=20100906#qa

fukawi2 wrote:
litemotiv wrote:
.:B:. wrote:I have never seen a Linux distro make compiling your own packages instead of using the stock binary ones as easy as Arch. ABS is a real framework, all you have to do is run 'abs' in your terminal and you'll pull in all the PKGBUILDs, patches etc. necessary for rebuilding every single package in the Arch repositories.
Ubuntu:
$ apt-get build-dep $package // builds dependencies of package
$ apt-get source $package // get source of any package in repositories
$ checkinstall // create .deb from source directory
makepkg -is
Arch outsimples by 3:1
Well technically it would be more like this.
sudo abs
cd /var/abs/$repo/$pkgname
makepkg -is

Similar Messages

  • Arch's BSD style init and parrallelized boot

    Greetings,
    Considering giving Arch a try sometime soon and just reading up on it, I came across some comments that Arch uses a BSD style init, which coming from Debian/Fedora is unlike what I've seen before.
    Does Arch's BSD style init system allow for parrellized init scripts during boot?
    That is, instead of starting foo1, foo2, foo3, foo4 sequentially, it starts foo1/2, foo3/4/5, etc.?
    Best,
    AM

    Similar threads:
    https://bbs.archlinux.org/viewtopic.php?pid=762904
    https://bbs.archlinux.org/viewtopic.php?id=72156&p=1

  • [Solved] Unable to boot Arch off SUSE GrUB

    Hi,
    I have several OS installed on my machine. I used to boot everything including Arch but BSD, Solaris & PCBSD with GrUB2 off UbuntuStudio. Earlier today I installed SUSE GrUB on sda and now I am unable to boot Arch. I've used SUSE GrUB earlier and was able to boot Arch off it.
    Here is my menu.lst
    # Modified by YaST2. Last modification on Sun Oct 17 18:52:19 SGT 2010
    # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
    # Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader
    default 0
    timeout 8
    ##YaST - generic_mbr
    gfxmenu (hd0,30)/boot/message
    ##YaST - activate
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title Desktop -- openSUSE 11.2 - 2.6.31.14-0.1
        root (hd0,30)
        kernel /boot/vmlinuz-2.6.31.14-0.1-desktop root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part31 resume=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part5 splash=silent quiet showopts vga=0x315
        initrd /boot/initrd-2.6.31.14-0.1-desktop
    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- openSUSE 11.2 - 2.6.31.14-0.1
        root (hd0,30)
        kernel /boot/vmlinuz-2.6.31.14-0.1-desktop root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part31 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
        initrd /boot/initrd-2.6.31.14-0.1-desktop
    ###Don't change this comment - YaST2 identifier: Original name: windows 1###
    title Windows 7 Ultimate Edition x64
        rootnoverify (hd0,0)
        chainloader +1
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title FreeBSD 8.1 i386
        rootnoverify (hd0,2)
        chainloader +1
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title OpenSolaris 2009.06 b134 x86
        rootnoverify (hd0,3)
        chainloader +1
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title PC-BSD 8.1 amd64
        rootnoverify (hd2,0)
        chainloader +1
    ###Don't change this comment - YaST2 identifier: Original name: CentOS (2.6.18-194.11.4.el5xen) (/dev/sda6)###
    title CentOS (2.6.18-194.11.4.el5xen) (/dev/sda6)
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.18-194.11.3.el5 ro root=/dev/sda6 rhgb quiet
        initrd /boot/initrd-2.6.18-194.11.3.el5.img
    ###Don't change this comment - YaST2 identifier: Original name: Centos-base###
    title CentOS-base (2.6.18-194.el5) (on /dev/sda6)
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.18-194.el5 ro root=/dev/sda6 rhgb quiet
        initrd /boot/initrd-2.6.18-194.el5.img
    ###Don't change this comment - YaST2 identifier: Original name:  linux (/dev/sda8)###
    title PCLinuxOS
        root (hd0,7)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name:  linux (/dev/sda10)###
    title Simply Mepis
        root (hd0,9)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name:  Chakra GNU/Linux (/dev/sda12)###
    title Chakra GNU/Linux (/dev/sda12)
        root (hd0,11)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name:  Fedora (2.6.34.7-56.fc13.x86_64) (/dev/sda14)###
    title Fedora (2.6.34.7-56.fc13.x86_64) (/dev/sda14)
        root (hd0,13)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name:  linux (/dev/sda16)###
    title Mandriva Spring 2010.1
        root (hd0,15)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name:  Calculate Linux Desktop x86_64 10.9 KDE (/dev/sda18)###
    title Calculate Linux Desktop x86_64 10.9 KDE (/dev/sda18)
        root (hd0,17)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title Arch linux 2010.05 x86_64
        rootnoverify (hd0,18)
        chainloader +1
    ###Don't change this comment - YaST2 identifier: Original name:  Desktop -- openSUSE 11.3 - 2.6.34.7-0.3 (/dev/sda23)###
    title openSUSE 11.3 - 2.6.34.7-0.3
        root (hd0,22)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title caeLinux
        root (hd0,24)
        kernel /vmlinuz root=/dev/sda25 ro quiet splash
        initrd /initrd.img
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title UbuntuStudio 10.04 amd64
        root (hd0,26)
        kernel /vmlinuz root=/dev/sda27 ro quiet splash
        initrd /initrd.img
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title Linux Mint 9 amd64
        root (hd0,28)
        kernel /vmlinuz root=/dev/sda29 ro quiet splash
        initrd /initrd.img
    Here is etc/fstab from Arch -
    # /etc/fstab: static file system information
    # <file system>        <dir>         <type>    <options>          <dump> <pass>
    devpts                 /dev/pts      devpts    defaults            0      0
    shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
    #/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
    #/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
    #/dev/fd0               /media/fl   auto    user,noauto             0      0
    /dev/sda19 /boot ext2 defaults 0 1
    /dev/sda20 / ext4 defaults 0 1
    /dev/sda21 /var ext4 defaults 0 1
    /dev/sda22 /home ext4 defaults 0 1
    /dev/sda5 swap swap defaults 0 0
    I've results from bootinfo script as well but the file is big and I am unable to post all those details in here.
    Best,
    David
    Last edited by avenuemax (2010-10-18 05:30:48)

    Here is the menu list off PCLinuxOS
    timeout 15
    color black/cyan yellow/cyan
    gfxmenu (hd0,7)/boot/gfxmenu
    default 0
    title linux
    kernel (hd0,7)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=77fb6caf-c436-4855-b25a-436f4f6c40f0  vmalloc=256M resume=UUID=92ecb3e1-84a1-4855-8a49-3c9616638795 splash=silent vga=788
    initrd (hd0,7)/boot/initrd.img
    title linux-nonfb
    kernel (hd0,7)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=77fb6caf-c436-4855-b25a-436f4f6c40f0  vmalloc=256M resume=UUID=92ecb3e1-84a1-4855-8a49-3c9616638795
    initrd (hd0,7)/boot/initrd.img
    title failsafe
    kernel (hd0,7)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=77fb6caf-c436-4855-b25a-436f4f6c40f0  failsafe vmalloc=256M
    initrd (hd0,7)/boot/initrd.img
    title Windows 7 Ultimate Edition x64
    root (hd0,0)
    map (0x81) (0x80)
    map (0x80) (0x81)
    makeactive
    chainloader +1
    title CentOS (Final)
    root (hd0,5)
    configfile /boot/grub/menu.lst
    title MEPIS Linux 8.5
    root (hd0,9)
    configfile /boot/grub/menu.lst
    title Arch
    root (hd0,18)
    configfile /grub/menu.lst
    title Fedora (Goddard)
    root (hd0,13)
    configfile /boot/grub/menu.lst
    title Mandriva Linux (Official)
    root (hd0,15)
    configfile /boot/grub/menu.lst
    title Calculate Linux sda18
    root (hd0,17)
    configfile /boot/grub/menu.lst
    title Chakra
    root (hd0,11)
    configfile /boot/grub/menu.lst
    title openSUSE 11.3 (x86_64)
    VERSION = 11.3
    root (hd0,22)
    configfile /boot/grub/menu.lst
    title PC-BSD 8.1 amd64
    root (hd2,0)
    chainloader +1
    title FreeBSD 8.1 i386
    root (hd0,2)
    chainloader +1
    title OpenSolaris 2009.06 b134 x86
    root (hd0,3)
    chainloader +1
    I can boot Arch from here, wish I get to do that from SUSE GrUB.

  • What exactly is a BSD style init framework?

    I keep seeing this statement but what does it actually mean?  Looked it up on Wikipedia and it went right over my head...  How is Arch like/unlike BSD and most other Linux distros?  I have a friend who's hardcore into FreeBSD and he loves it because it's so organized, all user apps go to the same folder, system stuff to a certain folder, etc, instead of everything all mixed up with lots of places to put everything like most linux distros have.  Is this similar to how Arch works?
    Thanks,
    Nathan

    BSD:
    * Startup scripts are generally kept in /etc/rc.d/
    * A small number of files (/etc/rc.sysinit, /etc/rc.local, etc.) control the startup process
    Sys V:
    * Startup scripts are generally kept in /etc/init.d/
    * There are also a number of /etc/rcX.d/ directories -- one for every run-level (i.e. X represents 0 through 6 and S, so, 8 altogether)
    * The contents of each /etc/rcX.d/ directory is a collection of soft-links to scripts in /etc/init.d/
    * Each soft-link in a specific /etc/rcX.d/ directory is named so it will execute in the order of it's alphabetical relationship to the other soft-links
    Example (ls -1 /etc/rc3.d/):
    S05vbesave  <-- execs first
    S10acpid
    S10sysklogd
    S10xserver-xorg-input-wacom
    S11klogd
    S12dbus
    S12hal
    S98usplash
    S99acpi-support
    S99laptop-mode
    S99rc.local
    S99rmnologin  <-- execs last
    This example was actually 39 lines long -- and just represents run-level #3.  In addition, /etc/rc.local executes after the target run-level is finished doing init.
    So, given Sys V's complex hierarchy -- spanning 8 run-levels by an average of N-number of daemons -- you can probably guess why so many people rave about Arch's BSD-style init schema ;-)

  • When Arch meets Source-based

    Hello there!
    I've been an arch64 user for about half a year now and recently tried out Gentoo (Though I havent been really successful at custom kernels yet...).
    Both distros are absolutely awesome, each it's pros and cons. Arch's BSD Style init + PKGBUILDs and simplicity, and Gentoos source-based and *complex*(in a negative way) customizability + USE flags
    Are there currently any distros involving Arch's KISS and BSD style init, but with a source-based flavor? That would be my definition of the ultimate distribution.
    I'll probably stay with Arch anyway but would still like to know
    Thanks in advance! ~Sander
    Last edited by Sander Hoksbergen (2009-01-06 21:40:18)

    @catwell: AviSynth 3, sadly, is pretty much a dead project. I swear I will help work on it once I am useful in that area But for now, it's 100% unusable. As for USE flags, I disagree. They don't have to be complex (and they actually aren't too much). The problems arise I have found when you start setting USE flags because you _think_ you will use features in the future, or when you try to set all USE flags at the very beginning. Just roll with it, and set them when you need them. Although, more profiles containing average USE flags for different system use cases would not hurt at all.
    @jcolinzheng: I agree on the configuration aspect completely. Gentoo should really have a structured, simple config system. Arch has demonstrated that you can do that without sacrificing power, I don't think source-based has to be necessarily too much more complex. As for LFS, it's real nice to learn with and just plain have fun with, but is hard to use as a main distro - mostly taking time to track upstream bugs, security flaws, patches needed, etc... it's ridiculous how much work distros do just for packaging (thanks Arch, btw ).
    @alecmg: Agreed. OFFTOPIC{ Try comparing default KDE 4.1 to KDE 4.1 compiled with the 'kdehiddenvisibility' USE flag, and LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed". No, I'm not in ricer mode I've been experimenting with Funtoo long enough to know which flags are and aren't worth setting (e.g. CFLAGS="-O2 -march=native -pipe" is as good as it gets... more just fscks things up almost always). Startup times of KDE and some apps are boosted exponentially, assuming you had a fast PC to begin with. Some packages have problems with --as-needed, and to a lesser extent the dtags one, but they are getting fewer and fewer (and those two are the biggest helps). }
    Last edited by Ranguvar (2009-01-07 16:04:11)

  • What is the directory that contains the init directories ?

    What is the directory that contains the init directories (rc0.d/ to
    rc6.d/)? 
    I want to install a copy of vmware5

    I think you've missed the point. Arch uses BSD-style init - /etc/rc.d. If vmware, or any other app, has an init script, it should be installed in /etc/rc.d, and if you want the app to start/stop on system boot/halt, the daemon name should be added to rc.conf DAEMONS. Creating rcX.d directories is pointless, because the Arch init process won't do anything with them.

  • Why SystemV?

    Why do so many distros out there use SysV style initscripts? What advantage is there to four initscripts per daemon per runlevel, or to so many little config files with weird names? And the first distro out there (Slackware) used BSD-style scripts... So why the bizarre glut of SysV distros? :?

    Snarkout wrote:After admining several BSD boxen that have been through many hands, I really learned to appreciate sys5.  Seven+ page long rc and rc.local files which have some scripting done in them, and some calls to other scripts you have to hunt down on the system are no fun to read through.  Looking in a directory that has numbered sequences of what orders daemons start, and then looking at a simple rc.local is a hell of a lot easier.  I really don't have a preference at this point, though I do wonder how people who learn on slack/arch/whatever can find their way around other systems like, say, RedHat, which has the messiest most unmanageable /etc in the history of linux.
    That's an interesting point. But, as you say, I've noticed that SysV distros tend to have 50 or so files floating around in /etc before any extra aemons are even installed, most of them bizarrely named and hidden in bizarrely named directories.
    LB06 wrote:Well in a way SysV is more flexible. It allows you to assign different programs to different runlevels, something which is not possible in Arch or BSD afaik. I doubt, however, that many people are using this functionality, except for starting or stopping X (which is also possible in Arch, but I guess the preffered way in Arch is just to add {x,g,k}dm to rc.conf).
    That is indeed the case, but I do wonder what all the runlevels are good for. In all my history of Linux use, I've only used runlevels 1, 3, and (very rarely because login managers suck) 5. A bunch of runlevels could be useful, but I doubt it would be useful very often.

  • Arch, Windows 7 and PC-BSD Triple Boot

    Hi Folks,
    Thinking about setting up a triple boot system like the one described above. I have had numerous ideas for a partitioning scheme, but nothing seems neat because of the requirement that both Window and BSD need to be on a primary partition.
    My basic requirements are:
    Arch Linux
    separate /boot (as I want to use BTRFS for root)
    /root (BTRFS)
    /swap (not essential for Arch, as I have 4 GB RAM)
    (Is a home required, or can I have a tiny /home for .(config) files?)
    PC-BSD
    separate /boot (as I want to use ZFS)
    /, /var, /usr (ZFS pool)
    /swap (essential for ZFS as I have heard it is RAM hungry)
    (Is a home required at all. First time with BSD, so not sure how it works)
    Windows
    1 large C: drive (Easy)
    Shared storage drive
    (recommendations for the most mutually compatible file system? It pains me to say, but FAT32?)
    So, should I go with the GUID partition table so I can just make all of these, or is there some clever trickery? I was considering LVM to make my Arch root and small home, but that does not really solve the four primary partition limit on the MBR.
    I should add, I have a working Windows 7 and Arch setup and my main reason for wanting a BSD is so that I have the full gamut of OSes for learning and experimentation. I like the idea of Windows 7, an Arch/BTRFS/Gnome and a BSD/ZFS/KDE...
    Any advice would be greatly appreciated!
    Scott
    Last edited by well.heeled.man (2011-07-31 00:14:11)

    @well.heeled.man
    from my own experience i would recommend you pure FreeBSD instead of PC-BSD (even tho they are the same in nature), the main problem is that pc-bsd is somehow not complete .. too many preinstalled stuff, ports witch is 1st thing to learn in FBSD is way too complicated with those jails.. and never the less fbsd + kde is not a good start - better use xfce at most
    as for partitions well ...
    I think FreeBSD/PC-BSD uses a single physical partition, logically sub-divided to allow for snapshots
    yes that is true
    as for zfs start learning by use files instead of partitions or harddrives unless you are ready to loose your data O.o
    example
    cybertorture@ego ~
    > sudo zpool status
    pool: tank
    state: ONLINE
    scan: resilvered 32,5K in 0h0m with 0 errors on Tue Aug 2 01:45:54 2011
    config:
    NAME STATE READ WRITE CKSUM
    tank ONLINE 0 0 0
    /home/zfs ONLINE 0 0 0
    /home/zfs1 ONLINE 0 0 0
    /home/zfs2 ONLINE 0 0 0
    /home/zfs3 ONLINE 0 0 0
    /home/zfs-spare ONLINE 0 0 0
    spares
    /mnt/data/zfs-test AVAIL
    errors: No known data errors
    cybertorture@ego ~
    > ll /home/zfs*
    -rw-r--r-- 1 root root 512M 2 авг 1,53 /home/zfs
    -rw-r--r-- 1 root root 512M 2 авг 1,53 /home/zfs1
    -rw-r--r-- 1 root root 512M 2 авг 1,53 /home/zfs2
    -rw-r--r-- 1 root root 512M 2 авг 1,53 /home/zfs3
    -rw-r--r-- 1 root root 512M 2 авг 1,53 /home/zfs-spare
    about GPT, any reason not to use msdos ? maybe you have 2.2+ GB harddive  ?
    edit: about partitions
    sda1 ntfs - windowze
    sda2 ext2 - boot (safe bet)
    sda3 ufs - fbsd
    sda4 - extended
    sda5 btrfs - arch
    sda6 ntfs - shared storage
    Last edited by cybertorture (2011-08-02 00:39:51)

  • Which BSD would an Arch User like?

    Hey guys,
    I'm thinking of dropping Arch for a while, its starting to restrict me.... I've looked into other distros, nothing seems to appeal at all. So I thought I should round out my Unix education..... I've never used BSD, so I thought I'd try one of those.
    Of NetBSD, FreeBSD, and OpenBSD, which is the one that's going to be most "archesque"? Has anybody had any good or bad experiences with any of these? Which is best for a desktop/development system? Where's a good place to start learning them? How hard is installation and configuration? Are there any other BSD variants I should try?
    Before you flame me, I'm not leaving Arch for good, you know this is my home, I'm just thinking of experimenting a bit... you know, an open marriage sort of thing... Sometimes you need to take a vacation to realize how good home is and stuff. To be honest, I'm a little annoyed with some of the recent changes here. Thought if I tried something else I'd realize how good I had it on Arch. ;-)
    Thanks,
    Dusty

    You could hobble over to http://www.bsdnexus.com where we put together a thing, trying to list the advantages of each BSD.
    As Greg Lehey, author of, "The Complete FreeBSD," has stated, each system's main idea can be found in their slogan.
    FreeBSD (my personal favorite, so keep that in mind as you read).
    The Power to Serve is its slogan. It's probably the fastest on x86 at least, and has a wider collection of ports than any of the others.  It's probably the easiest of them to get working as a desktop, and is probably the most powerful as a server.  If you choose it, start with the 6.0, not the older versions. 
    Most things are compiled from source, which takes awhile.  (This is true for all of them, though there are often precompiled packages available). 
    I'm going to push my page http://home.nyc.rr.com/computertaijutsu/FreeBSD5x.html which has a few tips for Linux users. 
    (I'm writing this from a BSD box actually).
    NetBSD
    Slogan, Of course it runs NetBSD.  It's quite portable, though I think truth be told, last time I checked, Debian had more archs than Net.  Its portability results in a very clean code base.  Fewer packages, a bit slower than Free (imho).  It has its own quirks.
    (I'll push another page of mine, though it's aimed more at the FreeBSD user, http://home.nyc.rr.com/computertaijutsu/netbsd.html )
    OpenBSD is perhaps a bit harder to install and its slogan is something like only one security hole in 10 years.  Its emphasis is on security-it's probably the slowest, and may have the fewest number of ported applcations.   However, many people can and do use it as their desktop.

  • Can't get printer to work (Windows - Arch)

    I have an XP box and my Arch box on my home network, have Lexmark X1100 connected to XP box (USB printer). It worked fine on Ubuntu, I know it can work but I haven't gotten anything going using the Arch wiki on CUPS. Here is my /etc/samba/smb.conf:
    # This is the main Samba configuration file. You should read the
    # smb.conf(5) manual page in order to understand the options listed
    # here. Samba has a huge number of configurable options (perhaps too
    # many!) most of which are not shown in this example
    # For a step to step guide on installing, configuring and using samba,
    # read the Samba-HOWTO-Collection. This may be obtained from:
    # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
    # Many working examples of smb.conf files can be found in the
    # Samba-Guide which is generated daily and can be downloaded from:
    # http://www.samba.org/samba/docs/Samba-Guide.pdf
    # Any line which starts with a ; (semi-colon) or a # (hash)
    # is a comment and is ignored. In this example we will use a #
    # for commentry and a ; for parts of the config file that you
    # may wish to enable
    # NOTE: Whenever you modify this file you should run the command "testparm"
    # to check that you have not made any basic syntactic errors.
    #======================= Global Settings =====================================
    [global]
    # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
    workgroup = MYGROUP
    # server string is the equivalent of the NT Description field
    server string = Samba Server
    # Security mode. Defines in which mode Samba will operate. Possible
    # values are share, user, server, domain and ads. Most people will want
    # user level security. See the Samba-HOWTO-Collection for details.
    security = user
    # This option is important for security. It allows you to restrict
    # connections to machines which are on your local network. The
    # following example restricts access to two C class networks and
    # the "loopback" interface. For more examples of the syntax see
    # the smb.conf man page
    ; hosts allow = 192.168.1. 192.168.2. 127.
    # If you want to automatically load your printer list rather
    # than setting them up individually then you'll need this
    load printers = yes
    # you may wish to override the location of the printcap file
    ; printcap name = /etc/printcap
    # on SystemV system setting printcap name to lpstat should allow
    # you to automatically obtain a printer list from the SystemV spool
    # system
    ; printcap name = lpstat
    # It should not be necessary to specify the print system type unless
    # it is non-standard. Currently supported print systems include:
    # bsd, cups, sysv, plp, lprng, aix, hpux, qnx
    ; printing = cups
    # Uncomment this if you want a guest account, you must add this to /etc/passwd
    # otherwise the user "nobody" is used
    ; guest account = pcguest
    # this tells Samba to use a separate log file for each machine
    # that connects
    log file = /var/log/samba/%m.log
    # Put a capping on the size of the log files (in Kb).
    max log size = 50
    # Use password server option only with security = server
    # The argument list may include:
    # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
    # or to auto-locate the domain controller/s
    # password server = *
    ; password server = <NT-Server-Name>
    # Use the realm option only with security = ads
    # Specifies the Active Directory realm the host is part of
    ; realm = MY_REALM
    # Backend to store user information in. New installations should
    # use either tdbsam or ldapsam. smbpasswd is available for backwards
    # compatibility. tdbsam requires no further configuration.
    ; passdb backend = tdbsam
    # Using the following line enables you to customise your configuration
    # on a per machine basis. The %m gets replaced with the netbios name
    # of the machine that is connecting.
    # Note: Consider carefully the location in the configuration file of
    # this line. The included file is read at that point.
    ; include = /usr/local/samba/lib/smb.conf.%m
    # Configure Samba to use multiple interfaces
    # If you have multiple network interfaces then you must list them
    # here. See the man page for details.
    ; interfaces = 192.168.12.2/24 192.168.13.2/24
    # Browser Control Options:
    # set local master to no if you don't want Samba to become a master
    # browser on your network. Otherwise the normal election rules apply
    ; local master = no
    # OS Level determines the precedence of this server in master browser
    # elections. The default value should be reasonable
    ; os level = 33
    # Domain Master specifies Samba to be the Domain Master Browser. This
    # allows Samba to collate browse lists between subnets. Don't use this
    # if you already have a Windows NT domain controller doing this job
    ; domain master = yes
    # Preferred Master causes Samba to force a local browser election on startup
    # and gives it a slightly higher chance of winning the election
    ; preferred master = yes
    # Enable this if you want Samba to be a domain logon server for
    # Windows95 workstations.
    ; domain logons = yes
    # if you enable domain logons then you may want a per-machine or
    # per user logon script
    # run a specific logon batch file per workstation (machine)
    ; logon script = %m.bat
    # run a specific logon batch file per username
    ; logon script = %U.bat
    # Where to store roving profiles (only for Win95 and WinNT)
    # %L substitutes for this servers netbios name, %U is username
    # You must uncomment the [Profiles] share below
    ; logon path = \\%L\Profiles\%U
    # Windows Internet Name Serving Support Section:
    # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
    ; wins support = yes
    # WINS Server - Tells the NMBD components of Samba to be a WINS Client
    # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
    ; wins server = w.x.y.z
    # WINS Proxy - Tells Samba to answer name resolution queries on
    # behalf of a non WINS capable client, for this to work there must be
    # at least one WINS Server on the network. The default is NO.
    ; wins proxy = yes
    # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
    # via DNS nslookups. The default is NO.
    dns proxy = no
    # These scripts are used on a domain controller or stand-alone
    # machine to add or delete corresponding unix accounts
    ; add user script = /usr/sbin/useradd %u
    ; add group script = /usr/sbin/groupadd %g
    ; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
    ; delete user script = /usr/sbin/userdel %u
    ; delete user from group script = /usr/sbin/deluser %u %g
    ; delete group script = /usr/sbin/groupdel %g
    #============================ Share Definitions ==============================
    [homes]
    comment = Home Directories
    browseable = no
    writable = yes
    # Un-comment the following and create the netlogon directory for Domain Logons
    ; [netlogon]
    ; comment = Network Logon Service
    ; path = /usr/local/samba/lib/netlogon
    ; guest ok = yes
    ; writable = no
    ; share modes = no
    # Un-comment the following to provide a specific roving profile share
    # the default is to use the user's home directory
    ;[Profiles]
    ; path = /usr/local/samba/profiles
    ; browseable = no
    ; guest ok = yes
    # NOTE: If you have a BSD-style print system there is no need to
    # specifically define each individual printer
    [printers]
    comment = All Printers
    path = /var/spool/samba
    printing = cups
    printer = x125
    browseable = yes
    # Set public = yes to allow user 'guest account' to print
    guest ok = yes
    writable = no
    printable = yes
    # This one is useful for people to share files
    ;[tmp]
    ; comment = Temporary file space
    ; path = /tmp
    ; read only = no
    ; public = yes
    # A publicly accessible directory, but read only, except for people in
    # the "staff" group
    ;[public]
    ; comment = Public Stuff
    ; path = /home/samba
    ; public = yes
    ; writable = yes
    ; printable = no
    ; write list = @staff
    # Other examples.
    # A private printer, usable only by fred. Spool data will be placed in fred's
    # home directory. Note that fred must have write access to the spool directory,
    # wherever it is.
    ;[fredsprn]
    ; comment = Fred's Printer
    ; valid users = fred
    ; path = /homes/fred
    ; printer = freds_printer
    ; public = no
    ; writable = no
    ; printable = yes
    # A private directory, usable only by fred. Note that fred requires write
    # access to the directory.
    ;[fredsdir]
    ; comment = Fred's Service
    ; path = /usr/somewhere/private
    ; valid users = fred
    ; public = no
    ; writable = yes
    ; printable = no
    # a service which has a different directory for each machine that connects
    # this allows you to tailor configurations to incoming machines. You could
    # also use the %U option to tailor it by user name.
    # The %m gets replaced with the machine name that is connecting.
    ;[pchome]
    ; comment = PC Directories
    ; path = /usr/pc/%m
    ; public = no
    ; writable = yes
    # A publicly accessible directory, read/write to all users. Note that all files
    # created in the directory by users will be owned by the default user, so
    # any user with access can delete any other user's files. Obviously this
    # directory must be writable by the default user. Another user could of course
    # be specified, in which case all files would be owned by that user instead.
    ;[public]
    ; path = /usr/somewhere/else/public
    ; public = yes
    ; only guest = yes
    ; writable = yes
    ; printable = no
    # The following two entries demonstrate how to share a directory so that two
    # users can place files there that will be owned by the specific users. In this
    # setup, the directory should be writable by both users and should have the
    # sticky bit set on it to prevent abuse. Obviously this could be extended to
    # as many users as required.
    ;[myshare]
    ; comment = Mary's and Fred's stuff
    ; path = /usr/somewhere/shared
    ; valid users = mary fred
    ; public = no
    ; writable = yes
    ; printable = no
    ; create mask = 0765
    And I followed this: http://wiki.archlinux.org/index.php/CUPS  specifically http://wiki.archlinux.org/index.php/CUP … rinter_PPD  and http://wiki.archlinux.org/index.php/CUP … s_to_Linux. But I run OO and I still only have Generic printer.
    I was using the Gnome cups manager on Ubuntu, but I cannot find this package on my system now. I see it in AUR but shouldn't it be in pacman? I have searched and searched but can't find it. And I installed gtklp, but upon startup it just gives me "No printers found!" and exits.
    EDIT: I have just built gnome-cups-manager from AUR and am at the point where I select a driver, however in the Manufacturer list there is nothing showing, and when I hit Install Driver and select the .ppd I got from the CUPS site for my printer, it just says "The PPD    /usr/share/cups/model/Lexmark-X125-drv_x125.ppd is already installed"  I can't get past this point??
    Last edited by colbert (2008-01-09 17:34:32)

    on xp box
    1) install and start lpd daemon (done)
    2) set printer sharing (short name, no spaces) (done)
    3) make sure that xp allows tcp 515 (done?)
    on linux
    1) start cups
    2) open konqueror (not firefox) and enter in the address bar
    http://localhost:631/
    log in as root (I assume that basic cups with user is configured)
    3)select add printer
    - first page:set priter description
    - second page: Select device lpd/lpr host or printer
    - third page enter lpd://hostname/queue (hostname if defined in /etc/hosts, otherwise ip address of XP box queue -> printer share name
    - fourth page select manufacturer
    -fifthpage driver
    test it
    KDE
    K Menu -> Settings ->Printers ->Add -> follow screens
    I found KDE method (under Arch) more reliable, but both should work. No idea about Gnome.
    next
    Last edited by broch (2008-01-10 01:15:24)

  • Trouble installing ZFS in archlinux kernel 3.6.3-1-ARCH

    I've been trying to install ZFS on my system, and i can't get past a building error for SPL, here is my install output:
    ==> Downloading zfs PKGBUILD from AUR...
    x zfs_preempt.patch
    x zfs.install
    x PKGBUILD
    Comment by: modular on Wed, 24 Oct 2012 03:09:04 +0000
    @demizer
    I don't/won't run ZFS as a root file system. I'm getting the following build error:
    http://pastebin.com/ZcWiaViK
    Comment by: demizer on Wed, 24 Oct 2012 04:11:54 +0000
    @modular, You're trying to build with the 3.6.2 kernel. The current version (rc11) does not work with the 3.6.2 kernel. If you want to use it, you will have to downgrade to the 3.5.6 kernel (linux and linux-headers). https://wiki.archlinux.org/index.php/Downgrading_Packages
    Thanks!
    Comment by: MilanKnizek on Wed, 24 Oct 2012 08:07:19 +0000
    @demizer: there still seemed to be a problem during upgrading - zfs/spl requires kernel of certain version (hard-coded) and this blocks the upgrade (the old installed zfs/spl requires the old kernel and kernel can't be upgraded w/o breaking dependency of zfs/spl and therefore build of the new zfs/spl fails, too).
    So far, I have had to remove zpl/spl, upgrade kernel, rebuild + install spl/zfs and manually run depmod against the new kernel (i.e. the postinst: depmod -a does not work until next reboot) and only then reboot to load the new kernel zfs modules successfully.
    That is quite clumsy and error-prone - I hope it will be resolved via DMKS.
    Comment by: srf21c on Sun, 28 Oct 2012 04:00:31 +0000
    All, if you're suffering zfs kernel upgrade pain fatigue, seriously consider going with the LTS (long term support) kernel. I just successfully built zfs on a system that I switched to the linux-lts 3.0.48-1. All you have to do is install the linux-lts and linux-lts-headers packages, reboot to the lts kernel, and change any instances of depends= or makedepends= lines in the package build file like so:
    Before:
    depends=('linux=3.5' "spl=${pkgver}" "zfs-utils=${pkgver}")
    makedepends=('linux-headers=3.5')
    After:
    depends=('linux-lts=3.0' "spl=${pkgver}" "zfs-utils=${pkgver}")
    makedepends=('linux-lts-headers=3.0')
    Then build and install each package in this order: spl-utils,spl,zfs-utils,zfs.
    Worked like a champ for me.
    Comment by: stoone on Mon, 29 Oct 2012 12:09:29 +0000
    If you keep the linux, and linux-headers packages while using the LTS you don't need to modify the PKGBUILDs. Because the checks will pass but it will build the packages to your current runnning kernel.
    Comment by: demizer on Mon, 29 Oct 2012 15:56:27 +0000
    Hey everybody, just a quick update. The new build tool I have been working on is now in master, https://github.com/demizer/aur-zfs. With it you can build and package two different groups of packages one for aur and one for split. Again, building the split packages is more efficient. I still have a lot of work to be done, but it is progressing. I will be adding git, dkms, and lts packages after I setup my repo. My next step is to add unofficial repository support to my build tool so I can easily setup a repo with precompiled binaries. I will be hosting the repo on my website at http://demizerone.com/archzfs. Initially it will only be for 64bit code since the ZOL FAQ states that ZOL is very unstable with 32bit code due to memory management differences in Solaris and Linux. I will notify you all in the future when that is ready to go.
    @MilanKnizek, Yes updating is a pain. ZFS itself is hard-coded to linux versions at build time. The ZFS build tool puts the modules in "/usr/lib/modules/3.5.6-1-ARCH/addon/zfs/", and this the primary reason it has to be rebuilt each upgrade, even minor point releases. Nvidia for example puts their module in "/usr/lib/modules/extramodules-3.5-ARCH/", so minor point releases are still good and the nvidia package doesn't need to be re-installed. A possible reason for ZOL to be hard-coded like this because ZOL is still technically very beta code.
    I do have a question for the community, does anyone use ZFS on a 32bit system?
    Thanks!
    First Submitted: Thu, 23 Sep 2010 08:50:51 +0000
    zfs 0.6.0_rc11-2
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    ==> zfs dependencies:
    - linux>=3.5 (already installed)
    - linux-headers>=3.5 (already installed)
    - spl>=0.6.0_rc11 (building from AUR)
    - zfs-utils>=0.6.0_rc11 (building from AUR)
    ==> Edit zfs.install ? [Y/n] ("A" to abort)
    ==> ---------------------------------------
    n
    ==> Continue building zfs ? [Y/n]
    ==> -----------------------------
    ==>
    ==> Building and installing package
    ==> Install or build missing dependencies for zfs:
    ==> Downloading spl PKGBUILD from AUR...
    x spl.install
    x PKGBUILD
    Comment by: timemaster on Mon, 15 Oct 2012 22:42:32 +0000
    I am not able to compile this package after the upgrade to the 3.6 kernel. Anyone else ? any idea?
    Comment by: mikers on Mon, 15 Oct 2012 23:34:17 +0000
    rc11 doesn't support Linux 3.6; there are some patches on GitHub that might apply against it (I've not done it myself), see:
    https://github.com/zfsonlinux/spl/pull/179
    https://github.com/zfsonlinux/zfs/pull/1039
    Otherwise downgrade to Linux 3.5.x or linux-lts and wait for rc12.
    Comment by: timemaster on Mon, 15 Oct 2012 23:54:03 +0000
    Yes, I saw that too late.
    https://github.com/zfsonlinux/zfs/commit/ee7913b644a2c812a249046f56eed39d1977d706
    Comment by: demizer on Tue, 16 Oct 2012 07:00:16 +0000
    Looks like the patches have been merged, now we wait for rc12.
    Comment by: vroomanj on Fri, 26 Oct 2012 17:07:19 +0000
    @demizer: 3.6 support is available in the master builds, which are stable but not officially released yet. Can't the build be updated to use the master tars?
    https://github.com/zfsonlinux/spl/tarball/master
    https://github.com/zfsonlinux/zfs/tarball/master
    Comment by: demizer on Fri, 26 Oct 2012 17:51:42 +0000
    @vroomanj, I plan on working on the git packages this weekend. All I have to figure out if it is going to be based on an actual git clone or if its just going to be the download links you provided. They are pretty much the same, but i'm not really clear what the Arch Package Guidelines say about this yet. Also, I don't think the current packages in AUR now should be based off of git master. They should be based off of the ZOL stable releases (rc10, rc11, ...). That's why I am making git packages so people can use them if they want to upgrade to the latest kernel and the stable release hasn't been made yet. As is the case currently.
    First Submitted: Sat, 26 Apr 2008 14:34:31 +0000
    spl 0.6.0_rc11-2
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    ==> spl dependencies:
    - linux>=3.5 (already installed)
    - spl-utils>=0.6.0_rc11 (already installed)
    - linux-headers>=3.5 (already installed)
    ==> Edit spl.install ? [Y/n] ("A" to abort)
    ==> ---------------------------------------
    ==> n
    ==> Continue building spl ? [Y/n]
    ==> -----------------------------
    ==>
    ==> Building and installing package
    ==> Making package: spl 0.6.0_rc11-2 (Tue Oct 30 11:34:13 CET 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Downloading spl-0.6.0-rc11.tar.gz...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 178 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 136 100 136 0 0 154 0 --:--:-- --:--:-- --:--:-- 293
    100 508k 100 508k 0 0 357k 0 0:00:01 0:00:01 --:--:-- 1245k
    ==> Validating source files with md5sums...
    spl-0.6.0-rc11.tar.gz ... Passed
    ==> Extracting Sources...
    -> Extracting spl-0.6.0-rc11.tar.gz with bsdtar
    ==> Starting build()...
    configure.ac:34: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
    configure.ac:34: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation
    checking metadata... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether make supports nested variables... yes
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
    checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking spl license... GPL
    checking linux distribution... arch
    checking default package type... arch
    checking whether rpm is available... no
    checking whether rpmbuild is available... no
    checking whether dpkg is available... no
    checking whether dpkg-buildpackage is available... no
    checking whether alien is available... no
    checking whether pacman is available... yes (4.0.3)
    checking whether makepkg is available... yes (4.0.3)
    checking spl config... kernel
    checking kernel source directory... /usr/src/linux-3.6.3-1-ARCH
    checking kernel build directory... /usr/src/linux-3.6.3-1-ARCH
    checking kernel source version... 3.6.3-1-ARCH
    checking kernel file name for module symbols... Module.symvers
    checking whether debugging is enabled... no
    checking whether basic debug logging is enabled... yes
    checking whether basic kmem accounting is enabled... yes
    checking whether detailed kmem tracking is enabled... no
    checking whether modules can be built... yes
    checking whether atomic types use spinlocks... no
    checking whether kernel defines atomic64_t... yes
    checking whether kernel defines atomic64_cmpxchg... no
    checking whether kernel defines atomic64_xchg... yes
    checking whether kernel defines uintptr_t... yes
    checking whether INIT_WORK wants 3 args... no
    checking whether register_sysctl_table() wants 2 args... no
    checking whether set_shrinker() available... no
    checking whether shrinker callback wants 3 args... no
    checking whether struct path used in struct nameidata... yes
    checking whether task_curr() is available... no
    checking whether unnumbered sysctl support exists... no
    checking whether struct ctl_table has ctl_name... no
    checking whether fls64() is available... yes
    checking whether device_create() is available... yes
    checking whether device_create() wants 5 args... yes
    checking whether class_device_create() is available... no
    checking whether set_normalized_timespec() is available as export... yes
    checking whether set_normalized_timespec() is an inline... yes
    checking whether timespec_sub() is available... yes
    checking whether init_utsname() is available... yes
    checking whether header linux/fdtable.h exists... yes
    checking whether files_fdtable() is available... yes
    checking whether __clear_close_on_exec() is available... yes
    checking whether header linux/uaccess.h exists... yes
    checking whether kmalloc_node() is available... yes
    checking whether monotonic_clock() is available... no
    checking whether struct inode has i_mutex... yes
    checking whether struct mutex has owner... yes
    checking whether struct mutex owner is a task_struct... yes
    checking whether mutex_lock_nested() is available... yes
    checking whether on_each_cpu() wants 3 args... yes
    checking whether kallsyms_lookup_name() is available... yes
    checking whether get_vmalloc_info() is available... no
    checking whether symbol *_pgdat exist... yes
    checking whether first_online_pgdat() is available... no
    checking whether next_online_pgdat() is available... no
    checking whether next_zone() is available... no
    checking whether pgdat_list is available... no
    checking whether global_page_state() is available... yes
    checking whether page state NR_FREE_PAGES is available... yes
    checking whether page state NR_INACTIVE is available... no
    checking whether page state NR_INACTIVE_ANON is available... yes
    checking whether page state NR_INACTIVE_FILE is available... yes
    checking whether page state NR_ACTIVE is available... no
    checking whether page state NR_ACTIVE_ANON is available... yes
    checking whether page state NR_ACTIVE_FILE is available... yes
    checking whether symbol get_zone_counts is needed... no
    checking whether user_path_dir() is available... yes
    checking whether set_fs_pwd() is available... no
    checking whether set_fs_pwd() wants 2 args... yes
    checking whether vfs_unlink() wants 2 args... yes
    checking whether vfs_rename() wants 4 args... yes
    checking whether vfs_fsync() is available... yes
    checking whether vfs_fsync() wants 2 args... yes
    checking whether struct fs_struct uses spinlock_t... yes
    checking whether struct cred exists... yes
    checking whether groups_search() is available... no
    checking whether __put_task_struct() is available... yes
    checking whether proc_handler() wants 5 args... yes
    checking whether kvasprintf() is available... yes
    checking whether rwsem_is_locked() acquires sem->wait_lock... no
    checking whether invalidate_inodes() is available... no
    checking whether invalidate_inodes_check() is available... no
    checking whether invalidate_inodes() wants 2 args... yes
    checking whether shrink_dcache_memory() is available... no
    checking whether shrink_icache_memory() is available... no
    checking whether symbol kern_path_parent exists in header... no
    checking whether kern_path_parent() is available... no
    checking whether zlib_deflate_workspacesize() wants 2 args... yes
    checking whether struct shrink_control exists... yes
    checking whether struct rw_semaphore member wait_lock is raw... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating lib/Makefile
    config.status: creating cmd/Makefile
    config.status: creating module/Makefile
    config.status: creating module/spl/Makefile
    config.status: creating module/splat/Makefile
    config.status: creating include/Makefile
    config.status: creating scripts/Makefile
    config.status: creating spl.spec
    config.status: creating spl-modules.spec
    config.status: creating PKGBUILD-spl
    config.status: creating PKGBUILD-spl-modules
    config.status: creating spl.release
    config.status: creating dkms.conf
    config.status: creating spl_config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    make all-recursive
    make[1]: Entering directory `/tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11'
    Making all in module
    make[2]: Entering directory `/tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module'
    make -C /usr/src/linux-3.6.3-1-ARCH SUBDIRS=`pwd` CONFIG_SPL=m modules
    make[3]: Entering directory `/usr/src/linux-3.6.3-1-ARCH'
    CC [M] /tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl/../../module/spl/spl-debug.o
    CC [M] /tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl/../../module/spl/spl-proc.o
    CC [M] /tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl/../../module/spl/spl-kmem.o
    CC [M] /tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl/../../module/spl/spl-thread.o
    CC [M] /tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl/../../module/spl/spl-taskq.o
    CC [M] /tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl/../../module/spl/spl-rwlock.o
    CC [M] /tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl/../../module/spl/spl-vnode.o
    /tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl/../../module/spl/spl-vnode.c: In function 'vn_remove':
    /tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl/../../module/spl/spl-vnode.c:327:2: error: implicit declaration of function 'path_lookup' [-Werror=implicit-function-declaration]
    cc1: some warnings being treated as errors
    make[5]: *** [/tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl/../../module/spl/spl-vnode.o] Error 1
    make[4]: *** [/tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module/spl] Error 2
    make[3]: *** [_module_/tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module] Error 2
    make[3]: Leaving directory `/usr/src/linux-3.6.3-1-ARCH'
    make[2]: *** [modules] Error 2
    make[2]: Leaving directory `/tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11/module'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/tmp/yaourt-tmp-alex/aur-spl/src/spl-0.6.0-rc11'
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    ==> ERROR: Makepkg was unable to build spl.
    ==> Restart building spl ? [y/N]
    ==> ----------------------------
    ... i'm stuck here, can anyone help me with this one? please !

    Did you read the comments, either on the AUR page or in the output that you posted? They explain it.

  • Sharing Files Between 3 Arch Computers Using SAMBA [SOLVED]

    I am trying to network 3 of my computers together.  They are all running Arch 64.  I setup the smb.conf file according to various tutorials and then the folders show up on the other computers, but when you double click them (using Gnome 3) it gives an error "unable to mount location, failed to mount windows share"
    I know this has to be some permission issue but I have spent hours on this and am hitting a brick wall.  Here is my smb.conf file.
    #======================= Global Settings =====================================
    [global]
    # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
    workgroup = WORKGROUP
    # server string is the equivalent of the NT Description field
    server string = Samba Server
    # Security mode. Defines in which mode Samba will operate. Possible
    # values are share, user, server, domain and ads. Most people will want
    # user level security. See the Samba-HOWTO-Collection for details.
    security = share
    guest account = nobody
    [Z]
    path = /media/Z
    public = yes
    guest ok = yes
    writeable = yes
    only guest = yes
    browseable = yes
    [Documents]
    path = /home/myname/Documents
    public = yes
    guest ok = yes
    writeable = yes
    browseable = yes
    only guest = yes
    # This option is important for security. It allows you to restrict
    # connections to machines which are on your local network. The
    # following example restricts access to two C class networks and
    # the "loopback" interface. For more examples of the syntax see
    # the smb.conf man page
    ; hosts allow = 192.168.1. 192.168.2. 127.
    # If you want to automatically load your printer list rather
    # than setting them up individually then you'll need this
    load printers = yes
    # you may wish to override the location of the printcap file
    ; printcap name = /etc/printcap
    # on SystemV system setting printcap name to lpstat should allow
    # you to automatically obtain a printer list from the SystemV spool
    # system
    ; printcap name = lpstat
    # It should not be necessary to specify the print system type unless
    # it is non-standard. Currently supported print systems include:
    # bsd, cups, sysv, plp, lprng, aix, hpux, qnx
    ; printing = cups
    # Uncomment this if you want a guest account, you must add this to /etc/passwd
    # otherwise the user "nobody" is used
    ; guest account = pcguest
    # this tells Samba to use a separate log file for each machine
    # that connects
    log file = /var/log/samba/%m.log
    # Put a capping on the size of the log files (in Kb).
    max log size = 50
    # Use password server option only with security = server
    # The argument list may include:
    # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
    # or to auto-locate the domain controller/s
    # password server = *
    ; password server = <NT-Server-Name>
    # Use the realm option only with security = ads
    # Specifies the Active Directory realm the host is part of
    ; realm = MY_REALM
    # Backend to store user information in. New installations should
    # use either tdbsam or ldapsam. smbpasswd is available for backwards
    # compatibility. tdbsam requires no further configuration.
    ; passdb backend = tdbsam
    # Using the following line enables you to customise your configuration
    # on a per machine basis. The %m gets replaced with the netbios name
    # of the machine that is connecting.
    # Note: Consider carefully the location in the configuration file of
    # this line. The included file is read at that point.
    ; include = /usr/local/samba/lib/smb.conf.%m
    # Configure Samba to use multiple interfaces
    # If you have multiple network interfaces then you must list them
    # here. See the man page for details.
    ; interfaces = 192.168.12.2/24 192.168.13.2/24
    # Browser Control Options:
    # set local master to no if you don't want Samba to become a master
    # browser on your network. Otherwise the normal election rules apply
    ; local master = no
    # OS Level determines the precedence of this server in master browser
    # elections. The default value should be reasonable
    ; os level = 33
    # Domain Master specifies Samba to be the Domain Master Browser. This
    # allows Samba to collate browse lists between subnets. Don't use this
    # if you already have a Windows NT domain controller doing this job
    ; domain master = yes
    # Preferred Master causes Samba to force a local browser election on startup
    # and gives it a slightly higher chance of winning the election
    ; preferred master = yes
    # Enable this if you want Samba to be a domain logon server for
    # Windows95 workstations.
    ; domain logons = yes
    # if you enable domain logons then you may want a per-machine or
    # per user logon script
    # run a specific logon batch file per workstation (machine)
    ; logon script = %m.bat
    # run a specific logon batch file per username
    ; logon script = %U.bat
    # Where to store roving profiles (only for Win95 and WinNT)
    # %L substitutes for this servers netbios name, %U is username
    # You must uncomment the [Profiles] share below
    ; logon path = \\%L\Profiles\%U
    # Windows Internet Name Serving Support Section:
    # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
    ; wins support = yes
    # WINS Server - Tells the NMBD components of Samba to be a WINS Client
    # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
    ; wins server = w.x.y.z
    # WINS Proxy - Tells Samba to answer name resolution queries on
    # behalf of a non WINS capable client, for this to work there must be
    # at least one WINS Server on the network. The default is NO.
    ; wins proxy = yes
    # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
    # via DNS nslookups. The default is NO.
    dns proxy = no
    # These scripts are used on a domain controller or stand-alone
    # machine to add or delete corresponding unix accounts
    ; add user script = /usr/sbin/useradd %u
    ; add group script = /usr/sbin/groupadd %g
    ; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
    ; delete user script = /usr/sbin/userdel %u
    ; delete user from group script = /usr/sbin/deluser %u %g
    ; delete group script = /usr/sbin/groupdel %g
    #============================ Share Definitions ==============================
    [homes]
    comment = Home Directories
    browseable = no
    writable = yes
    [Z]
    path = /media/Z
    public = yes
    guest ok = yes
    writable = yes
    only guest = yes
    browseable = yes
    # Un-comment the following and create the netlogon directory for Domain Logons
    ; [netlogon]
    ; comment = Network Logon Service
    ; path = /usr/local/samba/lib/netlogon
    ; guest ok = yes
    ; writable = no
    ; share modes = no
    # Un-comment the following to provide a specific roving profile share
    # the default is to use the user's home directory
    ;[Profiles]
    ; path = /usr/local/samba/profiles
    ; browseable = no
    ; guest ok = yes
    # NOTE: If you have a BSD-style print system there is no need to
    # specifically define each individual printer
    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    # Set public = yes to allow user 'guest account' to print
    guest ok = no
    writable = no
    printable = yes
    # This one is useful for people to share files
    ;[tmp]
    ; comment = Temporary file space
    ; path = /tmp
    ; read only = no
    ; public = yes
    # A publicly accessible directory, but read only, except for people in
    # the "staff" group
    ;[public]
    ; comment = Public Stuff
    ; path = /home/samba
    ; public = yes
    ; writable = no
    ; printable = no
    ; write list = @staff
    # Other examples.
    # A private printer, usable only by fred. Spool data will be placed in fred's
    # home directory. Note that fred must have write access to the spool directory,
    # wherever it is.
    ;[fredsprn]
    ; comment = Fred's Printer
    ; valid users = fred
    ; path = /homes/fred
    ; printer = freds_printer
    ; public = no
    ; writable = no
    ; printable = yes
    # A private directory, usable only by fred. Note that fred requires write
    # access to the directory.
    ;[fredsdir]
    ; comment = Fred's Service
    ; path = /usr/somewhere/private
    ; valid users = fred
    ; public = no
    ; writable = yes
    ; printable = no
    # a service which has a different directory for each machine that connects
    # this allows you to tailor configurations to incoming machines. You could
    # also use the %U option to tailor it by user name.
    # The %m gets replaced with the machine name that is connecting.
    ;[pchome]
    ; comment = PC Directories
    ; path = /usr/pc/%m
    ; public = no
    ; writable = yes
    # A publicly accessible directory, read/write to all users. Note that all files
    # created in the directory by users will be owned by the default user, so
    # any user with access can delete any other user's files. Obviously this
    # directory must be writable by the default user. Another user could of course
    # be specified, in which case all files would be owned by that user instead.
    ;[public]
    ; path = /usr/somewhere/else/public
    ; public = yes
    ; only guest = yes
    ; writable = yes
    ; printable = no
    [Z]
    path = /media/Z
    public = yes
    guest ok = yes
    writable = yes
    only guest = yes
    browseable = yes
    # The following two entries demonstrate how to share a directory so that two
    # users can place files there that will be owned by the specific users. In this
    # setup, the directory should be writable by both users and should have the
    # sticky bit set on it to prevent abuse. Obviously this could be extended to
    # as many users as required.
    ;[myshare]
    ; comment = Mary's and Fred's stuff
    ; path = /usr/somewhere/shared
    ; valid users = mary fred
    ; public = no
    ; writable = yes
    ; printable = no
    ; create mask = 0765
    I know Z is in there twice, I tried adding it in a different spot after watching a tutorial, this doesn't have any bearing on my problem.
    Last edited by LuckyStrike (2012-02-18 00:26:51)

    Try setting it up this way...
    #======================= Global Settings =======================
    [global]
    log file = /var/log/samba/log.%m
    so_rcvbuf = 8192 SO_SNDBUF=8192
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    obey pam restrictions = yes
    socket options = TCP_NODELAY
    map to guest = bad user
    encrypt passwords = true
    passdb backend = tdbsam
    passwd program = /usr/bin/passwd %u
    dns proxy = no
    netbios name = ArchLinux
    server string = %h server (Samba, Arch)
    path = /home/username
    default = global
    unix password sync = yes
    os level = 20
    auto services = homes
    syslog = 0
    panic action = /usr/share/samba/panic-action %d
    usershare allow guests = yes
    max log size = 1000
    pam password change = yes
    #======================= Share Definitions =======================
    [Home]
    guest account = nobody
    comment = Home Folder
    writeable = yes
    [Z]
    guest account = nobody
    comment = Z-Drive
    writeable = yes
    path = /media/Z
    [Documents]
    guest account = nobody
    comment = Documents Folder
    writeable = yes
    path = /home/myname/Documents
    Changing the username parts and other as necessary of course.

  • Problem booting Arch after first install on MacBook Pro

    Hi all,
    I've spent the past month intermittently trying to install Arch on an old MacBook Pro with a broken screen running in clamshell mode (I've reformatted, clean installed OSX, and run pacstrap around 20 times now). I was originally trying to install Debian, but the Arch Wiki was so good that I switched. The issue has been the same anyway.
    Every time I try to install, I get stuck at the bootloader stage, where I need to make the installation bootable. It doesn't matter what bootloader method I use, since I've tried:
    Boot from /boot partition with GRUB
    Boot from separate HFS+ GRUB partition
    Boot from Apple EFI System Partition (ESP) with GRUB
    Boot with rEFInd
    Boot with rEFInd installed to the ESP
    Arch itself works fine, but when I go to boot from rEFInd's autodetected vmlinuz-linux from 128MiB ext2 partition, I get the same error message I've gotten with every other configuration:
    :: running early hook [udev]
    :: running hook [udev]
    :: Triggering uevents...
    [ 0.558033] uhci_hcd 0000:00:1a.0: Found HC with no IRQ. Check BIOS/PCI 0000:00:1a.0 setup!
    [ 0.558097] uhci_hcd 0000:00:1a.0: init 0000:00:1a.0 fail, -19
    [ 0.558135] uhci_hcd 0000:00:1a.0: Found HC with no IRQ. Check BIOS/PCI 0000:00:1d.0 setup!
    [ 0.558189] uhci_hcd 0000:00:1a.0: init 0000:00:1b.0 fail, -19
    Waiting 10 seconds for device /dev/disk/by-uuid/2b121a89-aeb9-430a-8e6c-a05b79f08427 ...
    ERROR : device 'UUID=2b121a89-aeb9-430a-8e6c-a05b79f08427' not found. Skipping fsck.
    ERROR: Unable to find root device 'UUID=2b121a89-aeb9-430a-8e6c-a05b79f08427'.
    You are being dropped to a recovery shell
    [etc.]
    When the Arch .iso live CD boots, it gets the first uhci_hcd errors, and then just moves on with:
    :: hook [memdisk]
    :: hook [archiso]
    [etc.]
    Here are the contents of my refind.conf file (/boot/efi/ESP/refind/refind.conf) (I omit all the standard comments):
    timeout 0
    scan_all_linux_kernels
    [The example menu entries - all disabled]
    menuentry "Arch Linux" {
    icon /EFI/refind/icons/os_arch.icns
    "Arch Boot"
    loader /vmlinuz-linux
    initrd /initramfs-linux.img
    options "root=/dev/sda7 rw rootfstype=ext4"
    And my refind_linux.conf (/boot/refind-linux.conf):
    "Boot with standard options" "ro root=2b121a89-aeb9-430a-8e6c-a05b79f08427"
    "Boot to single-user mode" "ro root=2b121a89-aeb9-430a-8e6c-a05b79f08427 single"
    "Boot with minimal options" "ro root=2b121a89-aeb9-430a-8e6c-a05b79f08427"
    My custom menu entry for Arch doesn't work either (I'm still researching exactly why). I've been quite confused by different posts all over by different people on how to configure the manual refind.conf stanzas. I also tried a direct to root menu entry, where I tried the files as /boot/vmlinuz-linux, etc.
    The error I always get here is the same:
    Starting vmlinuz-linux
    Using load options "[same as above]"
    Invalid loader file!
    Error: Not Found while loading vmlinuz-linux
    I've installed GRUB as well, just to be sure. Although I haven't moved it to any other partitions or 'blessed' it in OS X. (I have blessed the HFS+/EFI partitions when I used GRUB.)
    Just FYI, I've used the following pages as guides:
    My primary guide: Cody Littlewood's installation procedure for a MacBook Pro
    The Arch Wiki MacBook Page, which was useful but a bit confusing and self-referential on the Bootloader section
    The rEFInd website, by Rod Smith. I've read it fairly extensively (including an interesting comparison of SodaStream flavours)
    A Gentoo Wiki page with a rEFInd example
    The LFS GRUB chapter, and surrounding material
    And I've largely read the Arch Wiki Beginners' Guide, Bootloaders page, GRUB page, GRUB EFI examples page, UEFI page and EFI Stub Loader page.
    There have been others, but it's been a while since I read them. I've been trying to make this work for a while.
    I've also looked at some other posts on similar subjects:
    A post on the Arch Linux subreddit matching my (previous; with GRUB) situation, but not fixing my problem
    An Arch forum post, of which there have been others, but google seems to have changed my search results.
    EFI-Booting Ubuntu on a Mac, by Rod Smith
    The Debian MacBook Pro page
    A post about booting Debian without rEFIt
    Again, there are more, but I can't find them all just now.
    I've looked EVERYWHERE for a solution.
    My question is, does anyone have any ideas on how I might make my computer bootable?
    Almost forgot; I've run
    mkinitcpio -p linux
    successfully (I get the two driver warnings that seem to be standard).
    Computer specifications are as follows:
    Model Identifier:    MacBookPro6,2 (mid 2010)
    Processor Name:    Intel i7
    Architecture:    amd64
    RAM:    4GB DDR3
    Graphics:    NVIDIA GeForce GT 330M 512MB
    Software:    OS X 10.9.2
    My disk partition table is as follows:
    $gdisk -l /dev/sda
    GPT fdisk (gdisk) version 0.8.9
    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present
    Fround valid GPT with protective MBR; using GPT.
    Disk /dev/sda: 976773168 sectors, 465.8 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): C0ADB511-F73D-404A-B128-DD01509AE6EA
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 976773134
    Partitions will be aligned on 8-sector boundaries
    Total free space is 262150 sectors (128.0MiB)
    Number Start (sector) End (sector) Size Code Name [Additional Info]
    1 * * 200.0MiB EF00 EFI System Partition rEFInd currently installed here, mounts to /boot/efi
    2 * * 185.8GiB AF00 OSX
    3 * * 619.9MiB AB00 Recovery HD
    4 * * 93.1GiB AF00 DMZ unjouranaled HFS+ shared partition
    5 * * 4.0GiB 8200 Arch Swap
    6 * * 128.0MiB 8300 Arch Boot ext2
    7 * * 50.0GiB 8300 Arch Root ext4
    8 * * 131.8GiB 8300 Arch Home ext4
    And my fstab, made with genfstab after I mounted everything (except for the swap stanza, which I had to write):
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # UUID=2b121a89-aeb9-430a-8e6c-a05b79f08427
    /dev/sda7 / ext4 rw,relatime,data=ordered 0 1
    # UUID=efb41f69-6f99-4c8b-8431-01f3cd22c9cc
    /dev/sda6 /boot ext2 rw,relatime 0 2
    # UUID=67E3-17ED LABEL=EFI
    /dev/sda1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed, errors=remount-ro 0 2
    # UUID=[another long UUID]
    /dev/sda8 /home ext4 rw,relatime,data=ordered 0 2
    # UUID=[another long UUID] LABEL=DMZ
    /dev/sda4 /dmz hfsplus rw,relatime,unmask=22,uid=0,gid=0,nls=utf8 0 0
    # UUID=[another long UUID]
    /dev/sda5 swap swap defaults 0 0
    Last edited by rjmh (2014-04-04 08:35:20)

    henriqueleng wrote:
    I don't know about Mac computers but i use a uefi motehrboard,
    To install it i created a partition with 512MB and i mounted /boot on there. all the rest of system are normal.
    I use gummiboot, i don't know if its stuff on Mac. I think that ou should try another bootloader!
    And why do you mounted two point on /boot?
    /boot and /boot/efi?
    Are you sure you're using uefi, my fstab looks just like his with the boot and efi partition. I'm pretty sure that's how the wiki says to set it up. That's the fstab for a laptop with uefi if it helps you out. I had problems with grub btw, so I had to set up gummiboot
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sdb3
    UUID=0c1c97a3-0472-4141-a756-a03c00a4a3cf / ext4 rw,relatime,data=ordered,discard 0 1
    # /dev/sda3
    UUID=8a4412fa-5d4b-4de4-91ff-a4d05b3705e1 /home ext4 rw,relatime,data=ordered 0 2
    # /dev/sdb2
    UUID=971ed3e8-394d-46b3-b0d4-e8bb86b267cf /boot ext4 rw,relatime,data=ordered,discard 0 2
    # /dev/sdb1
    UUID=095C-CB43 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    # /dev/sda1
    UUID=12a4a2b1-6338-495a-8a41-474653eb227b /var ext4 rw,relatime,data=ordered 0 2
    # /dev/sda2
    UUID=846803f1-3f5b-48ae-9945-37e9725011b2 none swap defaults 0 0

  • Full format on Arch and map badsectors and smart outputs

    Hi.
    I would like to ask for your help. Recently i've been worried about my two Seagate Barracuda 14 series drives because smart provided by a smartmontools shows "end to end error" that is critical to a hard drive condition. I've been searching over the www for more info but most of them tells that drives with "end to end error" should be immediately returned for an RMA. My drives works well, even with this smart information, wrong parameter. I read that under windows doing a full format will check drive for a bad sector and it there are spare, than they would be remaped.
    I would like to ask for the same thing under linux - how to do a full format to check drive condition, to remove existing bad block/bad sectors when they show up? Doing mkfs.ext4 /dev/sdXY will do the same thinh? Maybe using gparted and do it using gparted gui?
    This is my smart from two drives:
    [firekage@arch_desktop ~]$ sudo smartctl -a /dev/sdj
    [sudo] password for firekage:
    smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.17.6-1-ARCH] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
    === START OF INFORMATION SECTION ===
    Model Family: Seagate Barracuda 7200.14 (AF)
    Device Model: ST2000DM001-1CH164
    Serial Number: Z1E6H7Q4
    LU WWN Device Id: 5 000c50 06596c809
    Firmware Version: CC27
    User Capacity: 2,000,398,934,016 bytes [2,00 TB]
    Sector Sizes: 512 bytes logical, 4096 bytes physical
    Rotation Rate: 7200 rpm
    Form Factor: 3.5 inches
    Device is: In smartctl database [for details use: -P show]
    ATA Version is: ACS-2, ACS-3 T13/2161-D revision 3b
    SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
    Local Time is: Thu Dec 18 13:28:05 2014 CET
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    See vendor-specific Attribute list for marginal Attributes.
    General SMART Values:
    Offline data collection status: (0x00) Offline data collection activity
    was never started.
    Auto Offline Data Collection: Disabled.
    Self-test execution status: ( 0) The previous self-test routine completed
    without error or no self-test has ever
    been run.
    Total time to complete Offline
    data collection: ( 575) seconds.
    Offline data collection
    capabilities: (0x73) SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    No Offline surface scan supported.
    Self-test supported.
    Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    General Purpose Logging supported.
    Short self-test routine
    recommended polling time: ( 1) minutes.
    Extended self-test routine
    recommended polling time: ( 213) minutes.
    Conveyance self-test routine
    recommended polling time: ( 2) minutes.
    SCT capabilities: (0x3085) SCT Status supported.
    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x000f 112 099 006 Pre-fail Always - 42465392
    3 Spin_Up_Time 0x0003 096 095 000 Pre-fail Always - 0
    4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1064
    5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
    7 Seek_Error_Rate 0x000f 061 060 030 Pre-fail Always - 1566281
    9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2481
    10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
    12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1054
    183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
    184 End-to-End_Error 0x0032 099 099 099 Old_age Always FAILING_NOW 1
    187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
    188 Command_Timeout 0x0032 100 099 000 Old_age Always - 0 0 3
    189 High_Fly_Writes 0x003a 098 098 000 Old_age Always - 2
    190 Airflow_Temperature_Cel 0x0022 066 047 045 Old_age Always - 34 (Min/Max 24/34)
    191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
    192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 99
    193 Load_Cycle_Count 0x0032 096 096 000 Old_age Always - 9263
    194 Temperature_Celsius 0x0022 034 053 000 Old_age Always - 34 (0 18 0 0 0)
    197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 4
    240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 1604h+23m+27.451s
    241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 8044262567
    242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 1672497340
    SMART Error Log Version: 1
    ATA Error Count: 1
    CR = Command Register [HEX]
    FR = Features Register [HEX]
    SC = Sector Count Register [HEX]
    SN = Sector Number Register [HEX]
    CL = Cylinder Low Register [HEX]
    CH = Cylinder High Register [HEX]
    DH = Device/Head Register [HEX]
    DC = Device Command Register [HEX]
    ER = Error register [HEX]
    ST = Status register [HEX]
    Powered_Up_Time is measured from power on, and printed as
    DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
    SS=sec, and sss=millisec. It "wraps" after 49.710 days.
    Error 1 occurred at disk power-on lifetime: 562 hours (23 days + 10 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    40 51 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    25 00 01 ff ff ff 4f 00 12:10:45.194 READ DMA EXT
    25 00 01 00 00 00 40 00 12:10:45.175 READ DMA EXT
    25 00 01 ff ff ff 4f 00 12:10:45.158 READ DMA EXT
    f5 00 00 00 4f c2 40 00 12:10:45.140 SECURITY FREEZE LOCK
    b0 da 00 00 4f c2 40 00 12:10:45.113 SMART RETURN STATUS
    SMART Self-test log structure revision number 1
    No self-tests have been logged. [To run self-tests, use: smartctl -t]
    SMART Selective self-test log data structure revision number 1
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    [firekage@arch_desktop ~]$
    and the second one:
    [firekage@arch_desktop ~]$ sudo smartctl -a /dev/sdk
    smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.17.6-1-ARCH] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
    === START OF INFORMATION SECTION ===
    Model Family: Seagate Barracuda 7200.14 (AF)
    Device Model: ST2000DM001-1CH164
    Serial Number: W1E1WBW0
    LU WWN Device Id: 5 000c50 05cca200b
    Firmware Version: CC24
    User Capacity: 2,000,398,934,016 bytes [2,00 TB]
    Sector Sizes: 512 bytes logical, 4096 bytes physical
    Rotation Rate: 7200 rpm
    Form Factor: 3.5 inches
    Device is: In smartctl database [for details use: -P show]
    ATA Version is: ATA8-ACS T13/1699-D revision 4
    SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
    Local Time is: Thu Dec 18 13:28:37 2014 CET
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    See vendor-specific Attribute list for marginal Attributes.
    General SMART Values:
    Offline data collection status: (0x00) Offline data collection activity
    was never started.
    Auto Offline Data Collection: Disabled.
    Self-test execution status: ( 0) The previous self-test routine completed
    without error or no self-test has ever
    been run.
    Total time to complete Offline
    data collection: ( 584) seconds.
    Offline data collection
    capabilities: (0x73) SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    No Offline surface scan supported.
    Self-test supported.
    Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    General Purpose Logging supported.
    Short self-test routine
    recommended polling time: ( 1) minutes.
    Extended self-test routine
    recommended polling time: ( 214) minutes.
    Conveyance self-test routine
    recommended polling time: ( 2) minutes.
    SCT capabilities: (0x3085) SCT Status supported.
    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x000f 106 099 006 Pre-fail Always - 11998592
    3 Spin_Up_Time 0x0003 095 095 000 Pre-fail Always - 0
    4 Start_Stop_Count 0x0032 098 098 020 Old_age Always - 2349
    5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
    7 Seek_Error_Rate 0x000f 073 060 030 Pre-fail Always - 4316601253
    9 Power_On_Hours 0x0032 100 095 000 Old_age Always - 592
    10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
    12 Power_Cycle_Count 0x0032 100 098 020 Old_age Always - 233
    183 Runtime_Bad_Block 0x0032 093 093 000 Old_age Always - 7
    184 End-to-End_Error 0x0032 099 099 099 Old_age Always FAILING_NOW 1
    187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
    188 Command_Timeout 0x0032 100 098 000 Old_age Always - 3 3 25
    189 High_Fly_Writes 0x003a 099 099 000 Old_age Always - 1
    190 Airflow_Temperature_Cel 0x0022 068 042 045 Old_age Always In_the_past 32 (1 80 32 24 0)
    191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
    192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 210
    193 Load_Cycle_Count 0x0032 094 094 000 Old_age Always - 12687
    194 Temperature_Celsius 0x0022 032 058 000 Old_age Always - 32 (0 16 0 0 0)
    197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x003e 200 199 000 Old_age Always - 47
    240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 4513h+35m+52.508s
    241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 18705892093
    242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 10912938323
    SMART Error Log Version: 1
    No Errors Logged
    SMART Self-test log structure revision number 1
    No self-tests have been logged. [To run self-tests, use: smartctl -t]
    SMART Selective self-test log data structure revision number 1
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    [firekage@arch_desktop ~]$
    I have found on www that "end to end error" means that chip on drive is either damaged, or broken and can't work properly when checking data that are being writed, they are not in match with data recived and stored in cache.
    Could somebody help? Thanks.
    In fact, it's just a bad joke from seagate. Two drives, rather new, one with around 2500h and one with only 500h are damaged, and damaged critical according to smart when my older Barracuda 11 has around 25000h and works fine! I don't want to spend fortune to hdd, won't buy red series from WD, won't buy green because i read a lot about broken green series drives...and now Seagate...

    davidm wrote:
    My gut feeling is this is nothing to worry about.  What are the odds that both failed in exactly the same way.
    From reading around it seems Seagate's SMART compatibility is questionable and highly proprietary.  More than likely smartmontools is misreporting things under the circumstances.  Apparently Seagate has an iso you can download and test your drives with that for a more accurate diagnoses.
    Here is their answer:What gave you tthat SMART error? It seems to me the
    Linux diagnostic? Our SMART values are proprietary and do not conform to
    the industrie standard. That is why 3rd party tools cannot correctly
    read our drives.
    To check on the condition of the drive, download Seatools for DOS (it
    boots into Free BSD and works with Linux).
    Here is the download link:
    http://www.seagate.com/ww/v/index.jsp?l … 04090aRCRD
    Seatools for DOS is an ISO image file that is burnt to CD. You boot with
    that CD and run the long test that will examine every sector on that
    drive. If Seatools indicates the drive has a problem, you should
    exchange it (it will generate an error code)."
    http://sourceforge.net/p/smartmontools/ … /24435188/
    It seems the problem is not very rare.
    Yes, they suggested me the same thing on Seagate support but...well...i want to be sure...i just can't belive that seatools is far better than smart reads.

  • [VIDEO TUTORIAL] Installing Arch Linux on GPT/LVM/GRUB2

    Hello everyone,
    I've recently switched over from running my machine on LVM with a MSDOS partition style, and I was tired of the limitations of it. Such as 4 primary partions or 3 primary and 1 extended. It was also hindering my flexibility since I had to make 1 primary partition that was /boot, which forced me to make an initram image if I wanted to put my / inside of the LVM. The only way I could truly fix all my problems was to move away from GRUB-Legacy (Which I love since it's so easy to configure) over to GRUB 2(Which is not as bad as I thought it was).
    I made this video to help people trying to do this combination. I also included the links to further information in the videos' description. It contains a link to GRUB 2 Architecture and moving over to GRUB (on IBM's site), and also ArchWiki resources for further reading.
    I hope you enjoy it.
    http://www.youtube.com/watch?v=69X9ZYA41xU
    After you finish doing this, you will end up with this style:
    GPT Partition Layout w/ Protective MBR.
    /dev/sda1 - BIOS Boot Partition
    /dev/sda2 - Linux LVM (arch is name of LVM)
    --> /dev/arch/boot - ext2
    --> /dev/arch/swap - swap
    --> /dev/arch/root - ext4
    --> /dev/arch/home - ext4

    As a complete newbie to partitioning on Linux I'd like to say how grateful I am to for making this.
    You've kept it clear, clean and simple which I appreciate.
    As most of my ventures into installing Linux is usually accompanied with a graphical installer a great deal of this is fairly alien. It could be nice to have a wiki entry just laying out a few examples for partitioning and setting up arch in various simple and exotic ways.
    Again, thank you for this contribution. (While I quickly transcribe the steps in your video and ready the 'man' command)
    Edit:
    Basic step by step transcription
    [root@archiso ~]# modprobe dm-mod
    [root@archiso ~]# dhcpcd
    [root@archiso ~]# pacman -Syy gptfdisk
    [root@archiso ~]# gdisk /dev/sda
    GPT fdisk (gdisk) version 0.8.1
    Partition table scan:
    MBR: not present
    BSD: not present
    APM: not present
    GPT: not present
    Creating new GPT entries.
    Command (? for help): [n]
    Partition number (1-128, default 1): [RETURN]
    First sector (34-[max], default = 34) or {+-}size{KMGTP}: [RETURN]
    Information: Moved requested sectory from 34 to 2048 in
    order to align on 2048-sector boundries.
    Use 'l' on the experts' menu to adjust alignment
    Last sector (2048-[max], default = [max]) or{+-}size{KMGTP}: [+32MB]
    Current type is 'Linux filesystem'
    Hex code or GUID (L to show codes, Enter = 8300): [EF02]
    Changed type of partition to 'BIOS boot partition'
    Command (? for help): [n]
    Partition number (2-128, default 2): [RETURN]
    First sector (34-[max], default = 67584) or {+-}size{KMGTP}: [RETURN]
    Last sector (2048-[max], default = [max]) or {+-}size{KMGTP}: [RETURN]
    Current type is 'Linux filesystem'
    Hex code or GUID (L to show codes, Enter = 8300): [8E00]
    Changed type of partition to 'Linux LVM'
    Command (? for help): [w]
    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
    Do you want to proceed? (Y/N): [y]
    OK: writing new GUID partition table (GPT).
    The operaton has completed successfully.
    [root@archiso ~]# pvcreate /dev/sda2
    [root@archiso ~]# vgcreate arch /dev/sda2
    [root@archiso ~]# vgdisplay
    [root@archiso ~]# lvcreate -L 100M -n boot arch
    [root@archiso ~]# lvcreate -C y -L 1G -n swap arch
    [root@archiso ~]# lvcreate -L 10G -n root arch
    [root@archiso ~]# lvcreate -l 100%FREE -n home arch
    [root@archiso ~]# lvscan
    [root@archiso ~]# mkfs.ext2 /dev/arch/boot
    [root@archiso ~]# mkfs.ext4 /dev/arch/root
    [root@archiso ~]# mkfs.ext4 /dev/arch/home
    [root@archiso ~]# mkswap /dev/arch/swap
    [root@archiso ~]# /arch/setup
    Prepare Hard Drive
    3 Manually Configure block devices, filesystems andmountpoints
    Partition Access Method
    dev directly by /dev/* (most intuitive but devicefile names can change
    Manage Filesystems
    /dev/sda1 raw - 32MiB N
    /dev/mapper/arch-boot raw - 100MiB N > [IGNORE]
    /dev/mapper/arch-home raw - 91000MiB N > filesystem (re)created? [NO] > ext4 home
    /dev/mapper/arch-root raw - 10240MiB N > filesystem (re)created? [NO] > ext4 root
    /dev/mapper/arch-swap raw - 1024MiB N > filesystem (re)created? [NO] > swap
    Choose bootloader
    [SKIP]
    Configuration
    mkinitcpio > HOOKS="...lvm2..."
    DONE
    Exit
    [root@archiso ~]# mount -o bind /dev /mnt/dev
    [root@archiso ~]# mount -t proc /proc /mnt/proc
    [root@archiso ~]# mount -t sysfs /sys /mnt/sys
    [root@archiso ~]# chroot /mnt /bin/bash
    [root@archiso /]# dhcpcd
    [root@archiso /]# pacman-db-upgrade
    [root@archiso /]# pacman -Syy grub2-bios
    [root@archiso /]# grub_bios-install --boot-directory=/boot --no-floppy --recheck --debug /dev/sda
    [root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg
    [root@archiso /]# exit
    [root@archiso ~]# reboot
    login
    [root@host ~]# $EDITOR /etc/default/grub
    #GRUB_GFXMODE=auto
    #GRUB_GFXPAYLOAD_LINUX=keep
    #GRUB_COLOR_NORMAL="light-blue/black"
    #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    [root@host ~]# chmod -x /etc/grub.d/10_linux
    [root@host ~]# $EDITOR /etc/grub.d/40_custom
    menuentry "Arch Linux" {
    insmod lvm
    set root=(arch-boot)
    linux /vmlinuz-linux root=/dev/arch/root ro
    initrd /initramfs-linux.img
    menuentry "Arch Linux Fallback" {
    insmod lvm
    set root=(arch-boot)
    linux /vmlinuz-linux root=/dev/arch/root ro
    initrd /initramfs-linux-fallback.img
    [root@host ~]# grub-mkconfig -o /boot/grub/grub.cfg
    [root@host ~]# reboot
    Last edited by Earnestly (2012-01-09 11:51:45)

Maybe you are looking for

  • Iphoto is showing most of my thumbnails as black

    ok im on imac running 10.7.3 using iphoto 11 (9.2.1) with a 1Tb HD My iphoto library is saved on my imac HD, and i do back up onto my external 1Tb HD using Time machine. However i can not go back and rebuild from that as i had a problem and i had to

  • Multiple Subject Area - OBIEE 11g

    Hi, I have to do cross-subject area operations in OBIEE 11g. Here is what I have found out: 1. There is an option to use Union/Intersect operations which creates a Union query 2. There is an option to use 'Add/Remove Subject Area' which can be used t

  • Iphoto keeps quitting on me when I'm importing pics from my iphone 5?

    iphoto keeps quitting on me when I'm importing pics from my iphone 5?

  • JDeveloper and XML Publisher with EBS ?

    Hi All, Can anyone clarify my doubts ? I am new to Java and i have some experience in XMLP, but i saw in the User guide the Java API's, how to and where to run those API's. And is JDeveloper used with XMLP to run Java API's ?, if yes can u pls explai

  • Sales orders that have been invoiced are still in the Billing due list

    Friends : We have  sales orders that have been invoiced are still in the Billing due list. When i look at sales orders it has 0.00 price. The error message is Billing not possible because repair is not yet completed The item is not relevant for billi