[Solved] NFS export at boot and net-auto-wired

Hello Guys,
I have a problem with my fileserver. Previously dhcp was enabled through systemctl enable dhcpd@eth0 and everything worked fine. I changed the network to be configured using net-auto-wired, because it seemed a reasonable thing to do and because it allows for a fallback-ip-address in case dhcp fails. Now the problem is that many daemons are (at boot) started before the net is up and so don't work properly, especially nfsd, because exportfs can't resolve the names of the allowed client computers.
Mär 18 11:32:22 bigbrain systemd[1]: Started NFS server.
Mär 18 11:32:22 bigbrain systemd[1]: Starting NFS Mount Daemon...
Mär 18 11:32:22 bigbrain systemd[1]: Starting NFSv4 ID-name mapping daemon...
Mär 18 11:32:23 bigbrain systemd[1]: Started NFSv4 ID-name mapping daemon.
Mär 18 11:32:24 bigbrain systemd[1]: Started Samba SMB/CIFS server.
Mär 18 11:32:24 bigbrain systemd[1]: Started NFS Mount Daemon.
Mär 18 11:32:28 bigbrain kernel: Installing knfsd (copyright (C) 1996 [email protected]).
Mär 18 11:32:28 bigbrain tunnel-httpd.sh[321]: ssh: Could not resolve hostname example.com: Name or service not known
Mär 18 11:32:28 bigbrain tunnel-httpd.sh[321]: ssh: Could not resolve hostname example.com: Name or service not known
Mär 18 11:32:28 bigbrain ifplugd[318]: Link beat detected.
Mär 18 11:32:28 bigbrain ifplugd[318]: Executing '/etc/ifplugd/netcfg.action eth0 up'.
Mär 18 11:32:28 bigbrain ifplugd[318]: client: up
Mär 18 11:32:28 bigbrain ifplugd[318]: client: loading stw-wh
Mär 18 11:32:28 bigbrain ifplugd[318]: client: loading dhcp
Mär 18 11:32:28 bigbrain kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Mär 18 11:32:28 bigbrain dhcpcd[397]: version 5.6.7 starting
Mär 18 11:32:28 bigbrain kernel: NFSD: starting 90-second grace period
Mär 18 11:32:28 bigbrain exportfs[354]: exportfs: Failed to resolve some-domain.example.com
Mär 18 11:32:28 bigbrain exportfs[354]: exportfs: Failed to resolve some-domain.example.com
Mär 18 11:32:28 bigbrain exportfs[354]: exportfs: Failed to resolve some-other-domain.example.com
Mär 18 11:32:28 bigbrain exportfs[354]: exportfs: Failed to resolve some-other-domain.example.com
Mär 18 11:32:28 bigbrain exportfs[354]: exportfs: Failed to resolve some-domain.example.com
Mär 18 11:32:28 bigbrain exportfs[354]: exportfs: Failed to resolve some-domain.example.com
Mär 18 11:32:28 bigbrain exportfs[354]: exportfs: Failed to resolve some-other-domain.example.com
Mär 18 11:32:28 bigbrain exportfs[354]: exportfs: Failed to resolve some-other-domain.example.com
Mär 18 11:32:28 bigbrain kernel: r8169 0000:04:00.0 eth0: link up
Mär 18 11:32:28 bigbrain kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Mär 18 11:32:28 bigbrain systemd[1]: PID file /run/httpd/httpd.pid not readable (yet?) after start.
Mär 18 11:32:29 bigbrain dhcpcd[397]: eth0: sending IPv6 Router Solicitation
Mär 18 11:32:29 bigbrain dhcpcd[397]: eth0: broadcasting for a lease
Mär 18 11:32:30 bigbrain dhcpcd[397]: eth0: offered 10.42.19.195 from 141.35.0.13
Mär 18 11:32:30 bigbrain dhcpcd[397]: eth0: acknowledged 10.42.19.195 from 141.35.0.13
Mär 18 11:32:30 bigbrain dhcpcd[397]: eth0: checking for 10.42.19.195
Mär 18 11:32:30 bigbrain ntpd_intres[341]: host name not found: 0.pool.ntp.org
Mär 18 11:32:30 bigbrain ntpd_intres[341]: host name not found: 1.pool.ntp.org
Mär 18 11:32:30 bigbrain ntpd_intres[341]: host name not found: 2.pool.ntp.org
Mär 18 11:32:32 bigbrain ntpd_intres[341]: host name not found: 0.pool.ntp.org
Mär 18 11:32:32 bigbrain ntpd_intres[341]: host name not found: 1.pool.ntp.org
Mär 18 11:32:32 bigbrain ntpd_intres[341]: host name not found: 2.pool.ntp.org
Mär 18 11:32:33 bigbrain dhcpcd[397]: eth0: sending IPv6 Router Solicitation
Mär 18 11:32:34 bigbrain dhcpcd[397]: eth0: leased 10.42.19.195 for 1800 seconds
Mär 18 11:32:35 bigbrain dhcpcd[397]: forked to background, child pid 446
Mär 18 11:32:35 bigbrain ifplugd[318]: client: :: dhcp up [done]
Mär 18 11:32:35 bigbrain ifplugd[318]: Program executed successfully.
Mär 18 11:32:36 bigbrain ntpd[336]: Listen normally on 5 eth0 10.42.19.195 UDP 123
Mär 18 11:32:36 bigbrain ntpd[336]: peers refreshed
Mär 18 11:32:36 bigbrain ntpd[336]: new interface(s) found: waking up resolver
Mär 18 11:32:37 bigbrain dhcpcd[446]: eth0: sending IPv6 Router Solicitation
Mär 18 11:32:38 bigbrain ntpd_intres[341]: DNS 0.pool.ntp.org -> 83.137.98.96
Mär 18 11:32:38 bigbrain ntpd_intres[341]: DNS 1.pool.ntp.org -> 176.31.45.66
Mär 18 11:32:38 bigbrain ntpd_intres[341]: DNS 2.pool.ntp.org -> 192.53.103.108
what can I do to fix this?
TIA
Sunday
Last edited by Sunday87 (2013-03-19 23:08:56)

For future reference:
net-auto-wired doesn't Wants=network.target at any time (neither when started nor when a connection is made) as does dhcpcd.service (so indeed i had the same problem already before i switched to net-auto-wired but i guess i didn't notice it). now i'm using netcfg.service which actually Wants=network.target and starts Before=network.target so everything works fine. The only thing that is missing is a fallback static ip in case the dhcp does not respond, but that is another question so i will mark this solved.

Similar Messages

  • Ypbind, systemd and net-auto-wired problems

    I have the following problem after boot:
    YPBINDPROC_DOMAIN: Domain not bound
    And can't login with any user!
    I have to restart the ypbind so I can login.
    I am using systemd and net-auto-wired.service to start my connection.
    I think the problem is that the ypbind.service is being started before the network.
    # journalctl | grep ypbind
    Feb 10 14:36:00 qomplex000 ypbind[369]: Host name lookup failure
    I can't find the problem, tried all kinds of configurations on
    /usr/lib/systemd/system/ypbind.service
    And no change.
    I think there is a relation with this:
    https://bugzilla.redhat.com/show_bug.cgi?id=632620

    oangelo wrote:One can use the words "before" and "after", on *.sevice files, to make sure that the service will start on the right order.
    But this does check only start but not completion of the started service. In our case dns is started and systemd moves on, not waiting for a valid dns configuration (but it takes a few seconds for dhcpd to put the nameserver in /etc/resolv.conf). The ypbind service gets started and tries to resolve a dns for ypserver from /var/yp.conf. Since the nameserver is not configured properly at this moment it gets no valid answer. Unfortunately ypbind seems not to be smart enough to retry ypserver and hangs. Thats the cause for 'YPBINDPROC_DOMAIN: Domain not bound'.
    From the ypbind manpage:
    This ypbind version listens for DBUS messages from NetworkManager. If no NetworkManager is running at startup, ypbind will behave as usual and assumes there is a working network connection. If NetworkManager is running on the system, ypbind will only search and provide NIS informations, if NetworkManager tells that a network connection is available. If NetworkManager establishes a connection, ypbind will reread all configuration files, registers at the local portmapper and try to search NIS servers. If NetworkManager drops a connection, ypbind will unregister from portmapper.
    I don't use NetworkManager on these systems (because of keeping it simple, as a real archer).
    Harvey

  • [Solved] net-auto-wired and ifplugd failing to work

    Having installed Arch successfully on one machine I then move to another, so I've just got a fresh install with nothing else.
    Using netcfg and ifplugd to manage network interfaces (trying to, did same process and it worked okay on other computer), however systemctl status of net-wired-auto gives:
    net-auto-wired.service - Provides automatic netcfg wired connection
    Loaded: loaded (/usr/lib/systemd/system/net-auto-wired.service; enabled)
    Active: active (running) since Wed 2013-03-13 14:00:22 GMT; 12min ago
    Main PID: 259 (ifplugd)
    CGroup: name=systemd:/system/net-auto-wired.service
    └─259 /usr/bin/ifplugd -i enp7s0 -r /etc/ifplugd/netcfg.action -fIns
    Mar 13 14:00:22 alexpc systemd[1]: Started Provides automatic netcfg wired connection.
    Mar 13 14:00:22 alexpc ifplugd[259]: ifplugd 0.28 initializing.
    Mar 13 14:00:22 alexpc ifplugd[259]: Using interface enp7s0/8C:89:A5:37:9F:51 with driver <r8169> (version: 2...-NAPI)
    Mar 13 14:00:22 alexpc ifplugd[259]: Using detection mode: SIOCETHTOOL
    Mar 13 14:00:22 alexpc ifplugd[259]: Initialization complete, link beat not detected.
    Mar 13 14:00:25 alexpc ifplugd[259]: Link beat detected.
    Mar 13 14:00:26 alexpc ifplugd[259]: Executing '/etc/ifplugd/netcfg.action enp7s0 up'.
    Mar 13 14:00:26 alexpc ifplugd[259]: client: up
    Mar 13 14:00:26 alexpc ifplugd[259]: Program execution failed, return value is 1.
    I've checked many times and interface is enp7s0 (only one anyway and no wireless)
    Running
    dhcpcd enp7s0
    does work fine and connects me to the network. Also realtek driver (r8269) is being loaded (obv given I can connect to network)
    Contents of /etc/conf.d/netcfg
    # Enable these netcfg profiles at boot time.
    # - prefix an entry with a '@' to background its startup
    # - set to 'last' to restore the profiles running at the last shutdown
    # - set to 'menu' to present a menu (requires the dialog package)
    # Network profiles are found in /etc/network.d
    NETWORKS=(last)
    # Specify the name of your wired interface for net-auto-wired
    WIRED_INTERFACE="enp7s0"
    # Specify the name of your wireless interface for net-auto-wireless
    WIRELESS_INTERFACE="wlan0"
    # Array of profiles that may be started by net-auto-wireless.
    # When not specified, all wireless profiles are considered.
    #AUTO_PROFILES=("profile1" "profile2")
    I can use dhcpcd service and it works fine - but it would be nice to use ifplugd/netcfg.
    Not really sure what else to try...
    Thanks.
    Last edited by alexjj (2013-03-15 12:15:46)

    I think you may need to also put a config file into /etc/network.d/ - you can copy one of the sample files there and adapt it to your situation.
    Also you have to set the correct interface in /etc/ifplugd/ifplugd.conf
    You will also need:
    systemctl start net-auto-wired
    systemctl enable net-auto-wired
    Hope this helps.
    Last edited by mcloaked (2013-03-13 18:09:55)

  • [solved] ifplugd; systemd, net-auto-wired: annoying beep

    Hello everyone!
    I experience annoying pc speaker beeps whenever the net-auto-wired service is getting started or stopped, e.g. on every boot or shutdown.
    I've already tried various ways to mute the pc speaker:
    "xset -b" in ~/.xinitrc
    blacklisting pcspkr module
    "setterm -blength 0" in /etc/profile
    It doesn't work.
    The following log corresponds to stopping and then re-starting the net-auto-wired service after having booted the system.
    Nov 24 11:34:19 virtus sudo[2298]: freddy : TTY=pts/0 ; PWD=/home/freddy ; USER=root ; COMMAND=/usr/bin/systemctl stop net-auto-wired.service
    Nov 24 11:34:19 virtus sudo[2298]: pam_unix(sudo:session): session opened for user root by (uid=0)
    Nov 24 11:34:19 virtus systemd[1]: Stopping Provides automatic netcfg wired connection...
    Nov 24 11:34:19 virtus dhcpcd[2320]: sending signal 1 to pid 1819
    Nov 24 11:34:19 virtus dhcpcd[1819]: received SIGHUP, releasing
    Nov 24 11:34:19 virtus dhcpcd[1819]: eth0: releasing lease of 85.170.167.0
    Nov 24 11:34:19 virtus dhcpcd[2320]: waiting for pid 1819 to exit
    Nov 24 11:34:19 virtus dhcpcd[1819]: eth0: removing interface
    Nov 24 11:34:19 virtus netcfg[2301]: :: ethernet-dhcp down [done]
    Nov 24 11:34:20 virtus kernel: e1000e 0000:00:19.0: irq 47 for MSI/MSI-X
    Nov 24 11:34:20 virtus ifplugd[1675]: Link beat lost.
    Nov 24 11:34:20 virtus kernel: e1000e 0000:00:19.0: irq 47 for MSI/MSI-X
    Nov 24 11:34:20 virtus ifplugd[1675]: Executing '/etc/ifplugd/netcfg.action eth0 down'.
    Nov 24 11:34:20 virtus ifplugd[1675]: Program execution failed, return value is 1.
    Nov 24 11:34:20 virtus ifplugd[1675]: Exiting.
    Nov 24 11:34:20 virtus systemd[1]: Stopped Provides automatic netcfg wired connection.
    Nov 24 11:34:20 virtus sudo[2298]: pam_unix(sudo:session): session closed for user root
    Nov 24 11:34:21 virtus kernel: e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: Rx/Tx
    Nov 24 11:34:21 virtus kernel: e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
    Nov 24 11:34:23 virtus sudo[2365]: freddy : TTY=pts/0 ; PWD=/home/freddy ; USER=root ; COMMAND=/usr/bin/journalctl
    Nov 24 11:34:23 virtus sudo[2365]: pam_unix(sudo:session): session opened for user root by (uid=0)
    Nov 24 11:35:58 virtus sudo[2365]: pam_unix(sudo:session): session closed for user root
    Nov 24 11:36:03 virtus sudo[2469]: freddy : TTY=pts/0 ; PWD=/home/freddy ; USER=root ; COMMAND=/usr/bin/systemctl start net-auto-wired.service
    Nov 24 11:36:03 virtus sudo[2469]: pam_unix(sudo:session): session opened for user root by (uid=0)
    Nov 24 11:36:03 virtus systemd[1]: Starting Provides automatic netcfg wired connection...
    Nov 24 11:36:03 virtus systemd[1]: Started Provides automatic netcfg wired connection.
    Nov 24 11:36:03 virtus sudo[2469]: pam_unix(sudo:session): session closed for user root
    Nov 24 11:36:03 virtus ifplugd[2472]: ifplugd 0.28 initializing.
    Nov 24 11:36:03 virtus ifplugd[2472]: Using interface eth0/00:1C:25:9F:3E:24 with driver <e1000e> (version: 2.0.0-k)
    Nov 24 11:36:03 virtus ifplugd[2472]: Using detection mode: SIOCETHTOOL
    Nov 24 11:36:03 virtus ifplugd[2472]: Initialization complete, link beat detected.
    Nov 24 11:36:03 virtus ifplugd[2472]: Executing '/etc/ifplugd/netcfg.action eth0 up'.
    Nov 24 11:36:03 virtus ifplugd[2472]: client: up
    Nov 24 11:36:03 virtus ifplugd[2472]: client: loading wireless-profile1
    Nov 24 11:36:03 virtus ifplugd[2472]: client: loading wireless-profile2
    Nov 24 11:36:03 virtus ifplugd[2472]: client: loading ethernet-dhcp
    Nov 24 11:36:03 virtus dhcpcd[2505]: version 5.6.3 starting
    Nov 24 11:36:03 virtus dhcpcd[2505]: all: configured as a router, not a host
    Nov 24 11:36:03 virtus dhcpcd[2505]: eth0: broadcasting for a lease
    Nov 24 11:36:04 virtus dhcpcd[2505]: eth0: offered 85.170.167.0 from 212.198.0.161
    Nov 24 11:36:04 virtus dhcpcd[2505]: eth0: ignoring offer of 85.170.167.70 from 212.198.0.162
    Nov 24 11:36:04 virtus dhcpcd[2505]: eth0: acknowledged 85.170.167.0 from 212.198.0.161
    Nov 24 11:36:04 virtus dhcpcd[2505]: eth0: checking for 85.170.167.0
    Nov 24 11:36:10 virtus dhcpcd[2505]: eth0: leased 85.170.167.0 for 14400 seconds
    Nov 24 11:36:10 virtus dhcpcd[2505]: forked to background, child pid 2603
    Nov 24 11:36:10 virtus ifplugd[2472]: client: :: ethernet-dhcp up [done]
    Nov 24 11:36:10 virtus ifplugd[2472]: Program executed successfully.
    This did not happen before using systemd, everything was fine back then.
    Any ideas? Thanks!
    Edit: Hardware is Lenovo T400.
    Last edited by ball (2013-01-23 22:45:20)

    @sie: thank you very much! This is it! Silence, finally!
    But instead of editing the .service file changing the ifplugd configuration is better IMHO. Otherwise the change won't survive an upgrade of netcfg. So I edited /etc/ifplugd/ifplugd.conf and added the "-b" flag to ARGS.
    EDIT: I just realized that adding "-b" to the default ARGS of ifplugd does not have the desired effect, the problem persists. So why is this the case? Do the flags which are employed in the .service file bypass the default ifplugd configuration? Or is this my very own user misconception? I did RTFM, though...
    Currently this is my /usr/lib/systemd/system/net-auto-wired.service:
    [Unit]
    Description=Provides automatic netcfg wired connection
    [Service]
    EnvironmentFile=/etc/conf.d/netcfg
    ExecStart=/usr/bin/ifplugd -i $WIRED_INTERFACE -r /etc/ifplugd/netcfg.action -fIns -b
    ExecStop=/usr/bin/netcfg iface-down $WIRED_INTERFACE
    [Install]
    WantedBy=multi-user.target
    If this issue really has to be addressed in the .service file, we should file a bug report/feature request.
    Last edited by ball (2013-01-23 18:13:13)

  • [Solved] Problems with net-auto-wired, no interent after install

    *Background*
    I am returning to Arch Linux after being away for about a year. I have finally had a chance to install Arch on my new laptop. Since I am new to systemd and the new installation process I followed the beginners guide very closely.
    *Description of the Steps I followed and the Error I encountered*
    When I came the the "Configure the Network" Portion of the Beginners' Guide, I chose to follow the net-auto-wired setup. This was partly because I found the warning to be confusing and could not understand why the Guide included a command that "won't work". Additionally I the "net-auto-wired" method seemed given the language of the Guide to be the superior alternative. So I followed the following steps:
    # pacman -S ifplugd
    # cd /etc/network.d
    # ln -s examples/ethernet-dhcp .
    # systemctl enable net-auto-wired.service
    These commands returned no errors, nor did the net-auto-wired daemon fail to initialize on reboot. I simply did not have a connection with the internet, even after confirming that all the wires were securely plugged in.
    *Question for the Forum*
    I was able to establish a connection with via several means as well I will likely be installing dbus and wicd to manage my internet connections. So my question is less about how to get connected and more (a) how to trouble shoot net-auto-wired and (b) what language and procedures can we change to the Beginners' Guide so that this issue is not encountered by beginners in the future.
    *Information I have Uncovered*
    When the net-auto-wired daemon failed to establish a connection. I immediately tried running the following command:
    # systemctl enable [email protected]
    The output of this command (what is following) showed me what the warning was talking about, how it rename the symbolic link to eth0.service and not enp4s0f2.service as it should have.
    ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/multi-user.target.wants/[email protected]'
    I attempted to resolve this issue by creating the symbolic link with the following command
    # ln -s /usr/lib/systemd/system/[email protected] /etc/systemd/system/multi-user.target.wants/[email protected]
    After reboot, the appropriately started the dhcpcd@ deamon and established an internet connection.
    It also hit me that the netcfg profile "ethernet-dhcp" would be pointing to the wrong interface. I edited the profile to interface with the enp4s0f2 not eth0 and was able to establish a connection manually with the following command but net-auto-wired still failed to work.
    # netcfg ethernet-dhcp
    At this point I checked the status of the of the net-auto-wired daemon with the following command which uncovered what is most certainly the issue.
    # systemctl status net-auto-wired
    net-auto-wired.service - Provides automatic netcfg wired connection
    Loaded: loaded (/usr/lib/systemd/system/net-auto-wired.service; disabled)
    Active: active (running) since Thu 2013-01-24 14:47:12 EST; 36s ago
    Main PID: 421 (ifplugd)
    CGroup: name=systemd:/system/net-auto-wired.service
    421 /usr/bin/ifpluged -i eth0 -r /etc/ifplugd/netcfg.action -fIns
    Jan 24 14:47:12 ragnarok systemd[1]: Started Provides automatic netcfg wired connection.
    Jan 24 14:47:12 ragnarok ifplugd[421]: ifplugd 0.28 initializing.
    Jan 24 14:47:12 ragnarok ifplugd[421]: Using interface eth0
    Jan 24 14:47:12 ragnarok ifplugd[421]: Initalization complete, link beat not detected.
    Obviously the issues with this are it use of eth0 and not enp4s0f2.
    I do not know where to go from here but I am curious if the issue of dhcpcd@ misnaming the symlink is some how related to this issue.
    Thanks for all your insight and responses.
    PS. This is the third time I have written this post. I finally typed it out in a separate text editor and then copied it in. Twice my login has timed out before I could submit and thus when I submitted I was logged out and my post lost. I do not post often with the forums but I was just frustrated to have lost so much effort. Has anyone else encountered this?
    Last edited by jash (2013-01-25 17:29:49)

    jash wrote:PS. This is the third time I have written this post. I finally typed it out in a separate text editor and then copied it in. Twice my login has timed out before I could submit and thus when I submitted I was logged out and my post lost. I do not post often with the forums but I was just frustrated to have lost so much effort. Has anyone else encountered this?
    Yes, it seems that after a period of inactivity (5 minutes ?) the forum software automatically logs someone out.
    After that happened to me for the zillionth time, i installed the firefox addon ReloadEvery .
    Now i always open 2 tabs for arch forums : 1 that just shows the index, and has reloadevery enabled with a time of 1 minute.
    The 2nd tab is for reading/answering etc.
    Haven't been logged out automatically since.

  • Net-auto-wired wont start

    Trying to enable and start net-auto-wired but systemctl says:
    net-auto-wired.service - Provides automatic netcfg wired connection
              Loaded: loaded (/usr/lib/systemd/system/net-auto-wired.service; enabled)
              Active: failed (Result: exit-code) since Thu, 2013-04-25 18:51:59 UTC; 1s ago
             Process: 21000 ExecStop=/usr/bin/netcfg iface-down $WIRED_INTERFACE (code=exited, status=0/SUCCESS)
             Process: 20998 ExecStart=/usr/bin/ifplugd -i $WIRED_INTERFACE -r /etc/ifplugd/netcfg.action -fIns (code=exited, status=203/EXEC)
              CGroup: name=systemd:/system/net-auto-wired.service
    Apr 25 18:51:59 u3640230-01 systemd[1]: Starting Provides automatic netcfg wired connection...
    Apr 25 18:51:59 u3640230-01 systemd[1]: Started Provides automatic netcfg wired connection.
    Apr 25 18:51:59 u3640230-01 systemd[1]: net-auto-wired.service: main process exited, code=exited, status=203/EXEC
    Apr 25 18:51:59 u3640230-01 systemd[1]: Unit net-auto-wired.service entered failed state
    What might I be doing wrong?

    after updating, and reinstalling pacman i could get netctl again
    when i do systemctl start [email protected] i get locked out from SSH and i have to reboot
    after reboot i do systemctl status [email protected]
    it shows:
    Apr 26 04:28:31 u364023 ifplugd[443]: client: Starting network profile 'ethernet-static'...
    Apr 26 04:28:31 u364023 ifplugd[443]: client: RTNETLINK answers: File exists
    Apr 26 04:28:31 u364023 ifplugd[443]: client: Could not add address '............./24' to interface 'eth0'
    Apr 26 04:28:31 u364023 ifplugd[443]: client: Failed to bring the network up for profile 'ethernet-static'
    Apr 26 04:28:31 u364023 ifplugd[443]: Program execution failed, return value is 1.
    i guess this is because ifconfig already has an ip set up?
    after that, there is:
    Apr 26 04:29:40 u364023 systemd[1]: Stopping Automatic wired network connection using netctl profiles...
    Apr 26 04:29:40 u364023 ifplugd[443]: Executing '/etc/ifplugd/netctl.action eth0 down'.
    Apr 26 04:29:40 u364023 ifplugd[443]: Program execution failed, return value is 1.
    Apr 26 04:29:40 u364023 ifplugd[443]: Exiting.
    Apr 26 04:29:40 u364023 systemd[1]: Stopped Automatic wired network connection using netctl profiles.
    guessing this is netctl trying to start up the profile after reboot..
    in my rc.conf i have my old settings for eth
    i tried to disable the old ip link lines, and rebooted with netctl service active but no ip is being set with ifconfig

  • Net-auto-wireless isn't really doing anything

    I've got netcfg installed and I'm trying to use it for my wifi configuration on my laptop which has an ath9k wireless chip.
    I've got my profiles (WPA personal) setup just fine, when I do netcfg my.profile.name it brings it up and it works. However if my wireless drops for whatever reason, or I come to work, I always have to manually do "netcfg profile".
    In my rc.conf I have nothing in INTERFACES (only have wlan0 on this machine), I have WIRELESS_INTERFACE defined as wlan0, I have two profiles in NETWORKS, and I have "syslog-ng hal net-auto-wireless netfs crond" in my DAEMONS list.
    Can anyone see anything that I'm doing wrong? How does net-auto-wireless actually work?

    Okay I can't get it to automatically connect neither to wired no wireless network.
    ifplugd at least is trying to connect to networks, I can see in /var/log/everything that but wpa_actiond simply sits there silently and does nothing.
    When run manually, either via rc.d/net-auto-wireless or directly, it connects to a wireless access point immediately. No problem here.
    So, basically I had gone through the following scenario today. Went to work office, plugged in ethernet cable, ifplugd tried to connect to any of the networks specified in the profiles but failed to for whatever reason. No meaningful explanation. All it said was this:
    Jan 27 09:44:57 localhost ifplugd(eth0)[27597]: ifplugd 0.28 initializing.
    Jan 27 09:44:57 localhost ifplugd(eth0)[27597]: Using interface eth0/00:13:77:49:00:BE with driver <8139too> (version: 0.9.28)
    Jan 27 09:44:57 localhost ifplugd(eth0)[27597]: Using detection mode: SIOCETHTOOL
    Jan 27 09:44:57 localhost ifplugd(eth0)[27597]: Initialization complete, link beat detected.
    Jan 27 09:44:57 localhost ifplugd(eth0)[27597]: Executing '/etc/ifplugd/netcfg.action eth0 up'.
    Jan 27 09:44:57 localhost ifplugd(eth0)[27597]: client: up
    Jan 27 09:44:57 localhost ifplugd(eth0)[27597]: client: loadin ho-eth
    Jan 27 09:45:09 localhost ifplugd(eth0)[27597]: client: :: ho-eth up [BUSY] > DHCP IP lease attempt failed.
    Jan 27 09:45:09 localhost ifplugd(eth0)[27597]: client: [FAIL]
    Jan 27 09:45:09 localhost ifplugd(eth0)[27597]: client: loadin pdp-wifi
    Jan 27 09:45:09 localhost ifplugd(eth0)[27597]: client: loadin st-mt
    Jan 27 09:45:09 localhost ifplugd(eth0)[27597]: client: loadin home-wifi
    Jan 27 09:45:09 localhost ifplugd(eth0)[27597]: client: loadin sc-eth
    Jan 27 09:45:09 localhost ifplugd(eth0)[27597]: client: loadin st-eth
    Jan 27 09:45:09 localhost ifplugd(eth0)[27597]: client: loadin st-wifi
    Jan 27 09:45:09 localhost ifplugd(eth0)[27597]: client: loadin uncle-wifi
    Jan 27 09:45:09 localhost ifplugd(eth0)[27597]: Program execution failed, return value is 1.
    Jan 27 09:47:39 localhost ifplugd(eth0)[27597]: Executing '/etc/ifplugd/netcfg.action eth0 down'.
    Jan 27 09:47:39 localhost ifplugd(eth0)[27597]: Program execution failed, return value is 1.
    Jan 27 09:47:39 localhost ifplugd(eth0)[27597]: Exiting.
    So, I had to do netcfg -u $PROFILE to set up network connection manually. Then I went back home, where I use wireless ap to connect to the home LAN, I saw ifplugd detect that ethernet had been down so it properly unconfigured eth0, again /var/log/everything clearly stated that
    Jan 27 14:03:00 localhost ifplugd(eth0)[28240]: Link beat lost.
    Jan 27 14:03:11 localhost ifplugd(eth0)[28240]: Executing '/etc/ifplugd/netcfg.action eth0 down'.
    Jan 27 14:03:11 localhost ifplugd(eth0)[28240]: Program execution failed, return value is 1.
    but nothing was happening for wireless interface at all. This was registered in the log when I got bored with netcfg/wpa_actiond not doing my job for me so I ran /etc/rc.d/net-auto-wireless restart which configured wireless network connection:
    Jan 27 14:12:59 localhost wpa_actiond[4401]: Starting wpa_actiond session for interface 'wlan0'
    Jan 27 14:13:00 localhost wpa_actiond[4401]: Interface 'wlan0' connected to network '$ESSID'
    I think my configuration is correct but well I could've missed something of course. So, to save us time:
    - all profiles are in /etc/network.d/. one of these looks like this:
    % cat /etc/network.d/home-wifi
    CONNECTION='wireless'
    DESCRIPTION='A simple WPA encrypted wireless connection using a static IP'
    INTERFACE='wlan0'
    SECURITY='wpa'
    ESSID='$ESSID'
    KEY='$KEY'
    IP='static'
    IPCFG=('addr add dev wlan0 $CIDR/IP brd +' 'route add default via $IP')
    DNS=('$IP')
    POST_UP="sh /home/$USER/scripts/netcfg-home-post"
    - /etc/rc.conf:
    # net-auto-wireless support
    WIRELESS_INTERFACE="wlan0"
    WIRED_INTERFACE="eth0"
    DAEMONS=(... !network @net-profiles net-auto-wireless net-auto-wired ...)
    no ROUTES, no INTERFACES. Clean and neat. No syntax errors.
    Software installed:
    ifplugd 0.28-7
    wpa_actiond 1.1-1
    netcfg 2.5.4-1
    So far the problem is that ifplugd can't connect to a wired network, but at least it attempts to, while wpa_actiond does nothing at all.
    I really want my laptop to do this automatically. It's like... you know... 2011 already! Computers must do this stuff xD

  • Netcfg: net-auto-wireless missing

    Maybe I just don't know the actual reason, but can someone tell me why netcfg installs net-auto-wired into /usr/bin but not net-auto-wireless?  To get it to work I've been having to copy it into /usr/bin.  Is there something else I should be doing?

    http://mailman.archlinux.org/pipermail/ … 15241.html
    Last edited by skottish (2011-08-28 19:39:24)

  • [SOLVED] Netbooting with PXE, TFTP and NFS / Numerous errors

    Greetings all, hope you can help me out.
    Been given a task by my company of making a network bootable ICA client (with X and Firefox, with the Citrix ICA client installed) as small as possible to minimize network traffic (as 440 workstations would be downloading the end-product simultaneously, so it'd beat ten bells of proverbial out of the core and edge switches for a little while). I discovered two options. One being to integrate everything in side a cloop image directly inside the INITRD. I have stacks of working INITRDs with their matched kernels yet being my first dabble in to extracting the INITRD, my faffing with CPIO has resulted in me nuking my base layout (Thank god for snapshotting in VMware Workstation!) 4 times, and either getting "Premature end of file" or a copius amount of lines stating "cpio: Malformed Number: <strange characters>" finally ending with "Premature end of file". As a result I went in search of another option, which would be booting off an NFS share. I followed the guide:
    http://wiki.archlinux.org/index.php/Dis … t_NFS_root
    ...in order to set up a network booted install of Arch and hit a few snags along the way, probably a result of using multiple operating systems for the TFTP and NFS server as opposed to using what the guide recommends, but I'm not sure as these seem solvable, although I don't know how right now.
    The set up:
    DHCP is provided by a Microsoft Windows Server 2003 VM (AD Integrated) on 172.16.10.17 on a box called "Rex".
    TFTP is provided by another Windows Server 2003 VM by "TFTPd32" which is a free download. This is located on 172.16.10.158 on a box called "Terra".
    The NFS store is provided by OpenFiler 2.3 which is a specialized version of rPath Linux designed specifically for turning boxes in to dedicated NAS stores. This is located on 172.16.10.6, and is called "frcnet-nas-1".
    The problem:
    DHCP is correctly configured with a Boot Host Name (Which is 172.16.10.158) and a boot file name of "pxelinux.0". This is confirmed as working.
    Client gets the kernel and INITRD from TFTP and boots up fine until it hits "Waiting for devices to settle..." by which point it echos out "Root device /dev/nfs doesn't exist, attempting to create it...", which it seems to do so fine. It then passes control over to kinit and echos "INIT: version 2.86 booting" and the archlinux header, and immediately after that it prints:
    mount: only root can do that
    mount: only root can do that
    mount: only root can do that
    /bin/mknod: '/dev/null': File exists
    /bin/mknod: '/dev/zero': File exists
    /bin/mknod: '/dev/console': File exists
    /bin/mkdir: cannot create directory '/dev/pts': File exists
    /bin/mkdir: cannot create directory '/dev/shm': File exists
    /bin/grep: /proc/cmdline: No such file or directory
    /etc/rc.sysinit: line 72: /proc/sys/kernel/hotplug: No such file or directory
    :: Using static /dev filesystem [DONE]
    :: Mounting Root Read-only [FAIL]
    :: Checking Filesystems [BUSY]
    /bin/grep: /proc/cmdline: No such file or directory
    :: Mounting Local Filesystems
    mount: only root can do that
    mount: only root can do that
    mount: only root can do that
    [DONE]
    :: Activating Swap [DONE]
    :: Configuring System Clock [DONE]
    :: Removing Leftover Files [DONE]
    :: Setting Hostname: myhost [DONE]
    :: Updating Module Dependencies [DONE]
    :: Setting Locale: en_US.utf8 [DONE]
    :: Setting Consoles to UTF-8 mode[BUSY]
    /etc/rc.sysinit: line 362: /dev/vc/0: No such file or directory
    /etc/rc.sysinit: line 363: /dev/vc/0: No such file or directory
    /etc/rc.sysinit: line 362: /dev/vc/1: No such file or directory
    /etc/rc.sysinit: line 363: /dev/vc/1: No such file or directory
    ... all the way down to vc/63 ...
    :: Loading Keyboard Map: us [DONE]
    INIT: Entering runlevel: 3
    :: Starting Syslog-NG [DONE]
    Error opening file for reading; filename='/proc/kmsg', error='No such file or directory (2)'
    Error initializing source driver; source='src'
    :: Starting Network...
    Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
    eth0: dhcpcd 4.0.3 starting
    eth0: broadcasting inform for 172.16.10.154
    eth0: received approval for 172.16.10.154
    eth0: write_lease: Permission denied
    :: Mounting Network Filesystems
    mount: only root can do that
    [FAIL]
    :: Starting Cron Daemon [DONE]
    ...and, nothing after that, it just stops. Kernel doesn't panic, and hitting ctrl+alt+delete does what you'd expect, a clean shutdown minus a few errors about filesystems not being mounted. It seems /proc isn't getting mounted because init apparently doesn't have the appropriate permissions, and /proc not being mounted causes a whole string of other issues. Thing is, proc gets created at boot time as it contains kernel specific information about the system and the kernel's capabilities, right? Why can't it create it? How come init doesn't have the same privileges as root as it usually would, and how would I go about fixing it?
    I admit, while I'm fairly competent in Linux, this one has me stumped. Anyone have any ideas?
    Last edited by PinkFloydYoshi (2008-11-22 12:29:01)

    The idea behind the Windows DHCP and TFTP is that we'd be using an existing server and a NetApp box with NFS license to serve everything off. I would have loved to make a new server which is completely Linux, but my boss, nor the other technician have ever used Linux so if I left for any reason, they'd be stuck if ever they ran in to trouble, which is why I've struggled to get Linux to penetrate our all Windows infrastructure.
    During my hunting around on Google I found a lot of information on making my own initrd, and a lot of it using all manner of switches. I can make them fine, but I figure that I would need to look at extracting the current working one first, adding X, Firefox and the ICA client to it, then compressing it again. Cloop came about when I was looking at DSL's internals. The smaller the initrd, the better, so utilizing this could possibly be a plus too.
    The reason I'm doing this with Archlinux is that I know Arch's internals quite well (and pacman is just wonderous, which is more than I can say for yum), so if I run in to a small problem I'm more likely to fix it without consulting Google. Fair enough though, the NFS booting method is giving me issues I never thought were possible. Ahh, sods law strikes again.
    Addendum: I've noticed something which struck me as odd. Files in the NFS share are somehow owned by 96:scanner instead of root:root. Upon attempting changing, it's telling me "Operation Not Permitted". Further prodding has led me to believe it's an Openfiler thing where GID/UID 96 on the OpenFiler box is "ofgroup"/"ofguest". Chowning / to root:root puts NFS boot right ahead and gives me a prompt, however I cannot log in as root. I've also discovered that chrooting in to the base from my Arch workstation and creating a directory makes the directory owned by ofgroup:ofguest again, so it's an Openfiler thing after all this time. Prodding further.
    Addendum two: For anyone using Openfiler out there, when you allow guest access to the NFS share, be sure to set the Anonymous GID and Anonymous UID to 0. By default it's 96 and as a result when trying to boot you get the errors I experienced. This is insecure and you should use some sort of network/host/ip range restriction. Because the root filesystem has 96:96 as the owner of everything after you install the base layout using pacman (and any changes you make afterward) init and root no longer have the appropriate permissions, user 96:96 (which is "scanner" in Archlinux) has the permissions instead and init, in order to complete boot would need to be "scanner" in order to boot completely.
    Solution is to set Anon GID and Anon UID to 0, chown the entire diskless root filesystem to root, then use a linux desktop to mount the diskless root filesystem, mount /proc, /sys and mount bind /dev, then chroot in to the diskless root filesystem. At this point to clear up any problems with bad passwords, use passwd to change your password. Exit the chroot environment then unmount the diskless proc, sys and dev. Boot up via the network and use your chosen password to log in as root. At this point, start clearing up permissions from the en masse filesystem chown and you should then have a usable diskless root.
    I'll experiment further and clear up some of the remaining permission errors that occured during boot and report on my progress in fixing it. Didn't like the idea of chowning the entire share as root. :S
    Last edited by PinkFloydYoshi (2008-11-21 19:28:15)

  • [SOLVED] Cloning boot and var partitions to a new drive for booting

    Ok first of all here's my setup:
    fakeraid (dmraid) / and home on an OCZ Revodrive
    boot with GRUB on a flash drive (since fakeraid doesn't support grub)
    var and downloads/media folder on a 500GB WD Caviar drive
    When I originally installed Arch I had the Caviar drive in my home server in a RAID5 array, so that's why I opted to install boot and grub on a flash drive simply for booting.  Now that I have the drive in my desktop I've cloned the flash drive's partitions and MBR using dd:
    #dd if=/dev/sde of=~/MBR.img bs=512 count=1
    #dd if=/dev/sde1 of=~/boot.img
    #dd if=/dev/sdc1 of=~/var.img
    I then backed up my downloads/media partition, then removed the partition table, then used dd to put the img files on the Caviar drive.
    #dd if=~/MBR.img of=/dev/sdc bs=512 count=1
    #dd of=~/boot.img of=/dev/sdc1
    #dd of=~/var.img of=/dev/sdc2
    I also created labels for the filesystems and put those in fstab.
    I'm able to mount both partitions, however I can't boot from the drive.  I get a 'grub hard disk error' (no error number) when I put it as my first drive in the BIOS. 
    I can still use the flash drive as the first hard drive in the BIOS and boot from it, then it mounts the dmraid root partition and boots successfully.  It is also able to mount the var and boot partitions in fstab. 
    Basically the only problem is that the MBR is somehow wrong.  I then tried booting back into an Arch live USB and installing GRUB from the prompt:
    grub
    grub>setup (hd4,0) (in this case the Caviar drive's boot partition was /dev/sde1
    So essentially what I'm asking is how GRUB handles the MBR.  Is it specific to the partition table of the drive in which it resides when it's originally installed?  For instance, since I had an 8GB flash drive with 2 partitions when I installed GRUB, is the backed up MBR no good for a 500GB drive with 3 partitions?
    I have everything backed up so I can start with a fresh /boot and /var if need be....I'm just not sure where to start. 
    Thanks in advance.
    Last edited by DarksideEE7 (2011-02-13 23:25:31)

    Sorry, I forgot to mention that I tried to install GRUB from the GRUB shell in a live Arch USB.  It failed on a few non-critical parts, and succeeded on the last part. I'm going to try again shortly, possibly I did something wrong.  GRUB is able to find the stage files using:
    #grub
    grub>find /grub/stage1
    grub> find /grub/stage1
    (hd0,0)
    (hd5,0)
    grub>
    (hd0,0) is the desired boot drive, while (hd5,0) is the current bootable flash drive with /boot and GRUB installed.
    Here is the output of fdisk -l:
    WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.
    Disk /dev/sde: 2000.4 GB, 2000398934016 bytes
    256 heads, 63 sectors/track, 242251 cylinders, total 3907029168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    Device Boot Start End Blocks Id System
    /dev/sde1 1 3907029167 1953514583+ ee GPT
    Disk /dev/sdb: 60.0 GB, 60022480896 bytes
    255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xedb72db9
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 2048 206847 102400 7 HPFS/NTFS
    /dev/sdb2 206848 117227519 58510336 7 HPFS/NTFS
    Disk /dev/sdd: 40.0 GB, 40018599936 bytes
    255 heads, 63 sectors/track, 4865 cylinders, total 78161328 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    Disk /dev/sdd doesn't contain a valid partition table
    Disk /dev/sdc: 40.0 GB, 40018599936 bytes
    32 heads, 32 sectors/track, 76329 cylinders, total 78161328 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xb8372fcd
    Device Boot Start End Blocks Id System
    /dev/sdc1 32 21484543 10742256 83 Linux
    /dev/sdc2 21484544 156317695 67416576 83 Linux
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x8497e059
    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 206847 102400 83 Linux
    /dev/sda2 206848 42149887 20971520 83 Linux
    /dev/sda3 42149888 976773167 467311640 83 Linux
    Disk /dev/dm-0: 80.0 GB, 80035053568 bytes
    32 heads, 32 sectors/track, 152654 cylinders, total 156318464 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 65536 bytes / 131072 bytes
    Disk identifier: 0xb8372fcd
    Device Boot Start End Blocks Id System
    /dev/dm-0p1 32 21484543 10742256 83 Linux
    Partition 1 does not start on physical sector boundary.
    /dev/dm-0p2 21484544 156317695 67416576 83 Linux
    Disk /dev/dm-1: 11.0 GB, 11000070144 bytes
    255 heads, 63 sectors/track, 1337 cylinders, total 21484512 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 65536 bytes / 131072 bytes
    Alignment offset: 49152 bytes
    Disk identifier: 0x00000000
    Disk /dev/dm-1 doesn't contain a valid partition table
    Disk /dev/dm-2: 69.0 GB, 69034573824 bytes
    255 heads, 63 sectors/track, 8392 cylinders, total 134833152 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 65536 bytes / 131072 bytes
    Disk identifier: 0x00000000
    Disk /dev/dm-2 doesn't contain a valid partition table
    Disk /dev/sdf: 8086 MB, 8086618112 bytes
    249 heads, 62 sectors/track, 1023 cylinders, total 15794176 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x8497e059
    Device Boot Start End Blocks Id System
    /dev/sdf1 * 62 200693 100316 83 Linux
    /dev/sdf2 200694 15794175 7796741 83 Linux
    I'm using dmraid, so just to be clear I've configured the raid using:
    #modprobe dm_mod
    #dmraid -ay
    Then I saw the array stored in /dev/mapper/silXXXXX.  I then created partitions for /boot, /, and home.  At that time I was hoping to get GRUB working with the AUR package grub2-dmraid.  I wasn't able to get it working for some time, so I just went ahead and installed boot and GRUB to a separate USB flash drive.
    Here is the output of df -h:
    Filesystem Size Used Avail Use% Mounted on
    udev 10M 268K 9.8M 3% /dev
    /dev/mapper/sil_bgbgdjaddicbp1
    11G 5.3G 4.3G 56% /
    shm 6.0G 584K 6.0G 1% /dev/shm
    /dev/mapper/sil_bgbgdjaddicbp2
    64G 38G 23G 63% /home
    /dev/sda1 95M 16M 75M 18% /boot
    /dev/sda2 19G 142M 19G 1% /var
    /dev/sda3 439G 148G 269G 36% /home/l33/Torrents
    none 1000M 132K 1000M 1% /tmp
    shm 6.0G 584K 6.0G 1% /dev/shm
    /dev/sde1 1.8T 1.1T 665G 62% /mnt/Green
    and cat /etc/mtab
    proc /proc proc rw,nosuid,nodev,noexec,relatime
    sys /sys sysfs rw,nosuid,nodev,noexec,relatime
    udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=1022975,mode=755
    /dev/mapper/sil_bgbgdjaddicbp1 / ext4 rw,noatime,barrier=1,stripe=32,data=ordered
    devpts /dev/pts devpts rw 0 0
    shm /dev/shm tmpfs rw,nosuid,nodev 0 0
    /dev/mapper/sil_bgbgdjaddicbp2 /home ext4 rw,noatime 0 0
    /dev/sda1 /boot ext2 rw 0 0
    /dev/sda2 /var reiserfs rw,noatime 0 0
    /dev/sda3 /home/l33/Torrents ext4 rw,noatime 0 0
    none /tmp tmpfs rw,nosuid,nodev,noatime,size=1000M,mode=1777 0 0
    shm /dev/shm tmpfs rw,nosuid,nodev,size=6G 0 0
    rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
    nfsd /proc/fs/nfsd nfsd rw,noexec,nosuid,nodev 0 0
    /dev/sde1 /mnt/Green ext4 rw 0 0
    Also I don't have a /proc/mdstat.  That's only for mdadm RAID setups, right?  It's been quite some time since I've used mdadm so I can't remember.
    EDIT:
    So I booted into a live Arch USB and entered the grub shell.  I ran:
    #grub
    grub> root (hd3,0)
    Filesystem type is ext2fs, partition type 0x83
    grub> setup (hd3)
    Checking if "/boot/grub/stage1" exists.....no
    Checking if "/grub/stage1 exists.......yes
    Checking if "/grub/stage2 exists.......yes
    Checking if "/grub/e2fs_stage1_5 exists....yes
    Running "embed /grub/e2fs_stage1_5 (hd3)".....25 sectors are embedded.
    succeeded
    Running "install /grub/stage1 (hd3) (hd3))1+25 p (hd3,0)/grub/stage2 /grub/menu.lst".......succeeded
    Done.
    Last time I recall more errors than this, then it reporting that one was a non-critical error, so I think the problem may be solved.  More to come.
    Last edited by DarksideEE7 (2011-02-13 23:18:44)

  • OS X extern drive ownership/permissions and NFS exporting

    - I have an external (250GB) firewire drive on OS X 10.4.9.
    - I want to have it available to local users of this Mac but with ownership/permissions of created files/directories protected in the usual UNIX sense of unique UID/GID -- files/directories created by one user cannot be read/written by other users of this Mac except as allowed by standard UNIX permissions groups settings; eg., those set with 'chmod' command.
    - I want to NFS-server this drive volume to a linux NFS client (eg., RHEL 4), again with files/directories protected in this same UID/GID UNIX sense. In our case, the users' UID/GIDs will be made to match, but regardless, I wish likewise for file/directory use on the linux client to be restricted as per UNIX permissions and the files/directories created by the Mac users have protections remain in place against linux user access, and visa versa, as above.
    Is this feasable in Mac OS X (without OS X Server)?
    How does one go about acheiving it?
    I have basic Netinfo Manager skills for creating NFS exports and starting NFS daemon services, but am not expert on all available export options. I have average linux IT NFS server/client and user management skills.
    Thanks,
    -Neil

    I don't know about networking with Linux, but I don know that for OS X users, enforcing permissions on an external drive without OS X Server is tricky.
    First, log in to your admin account. Right-click the drive, Get Info, expand Ownership & Permissions, and uncheck "Ignore ownership on this volume". Then set permissions accordingly.
    The problem is that any unprivileged user can log in to his own account, Get Info, recheck the box, and get ownership of the entire contents of the drive. This is possible even without the admin password.
    There is a workaround that will remove the Ignore Ownership box from the Get Info panel so that there will be no box for them to check. First make sure that the box is unchecked and that the permissions are set how you want. Then enable ACLs on the volume by entering this command in a Terminal window:
    sudo fsaclctl -p /Volumes/volumename -e
    Then restart Finder. Now there's no box for the unprivileged user to check. But I don't know where this setting is stored; perhaps the unprivileged user can find some command-line way of getting the box re-checked and thus getting ownership of everything.
    If there is some way you can get the data off of the external drive and onto the main boot drive you will have the best chance of keeping the data safe.

  • My HDD crashed and I had to reinstall my boot and programmes on a new HDD.  I managed to recover my library.itl.  How can i import it with the new version of itunes? When i try imprt playlist, it replies that it is not a validly exported file.

    My HDD crashed and I had to reinstall my boot and programmes on a new HDD.  I managed to recover my library.itl.  How can i import it with the new version of itunes? When i try imprt playlist, it replies that it is not a validly exported file.

    It should be like the very first time you synced your phone with I-Tunes. It will notice you haven't synced before and just copy everything from your phone into I-Tunes. It shouldn't delete anything from the phone, at least it never has for me. It just puts a copy of everything into I-Tunes and even if you delete an app for example from your phone and you decide you want it back later, you can just go back into I-Tunes and copy it back over. Hope this helps.

  • Snow leopard server for net boot and software updates only what needs to be running to use it?

    Snow leopard server for net boot and software updates only what needs to be running to have it work right?

    Netboot and Software Update, at its simplest.  Mac OS X Server also expects to have functional IP networking and DNS services (somewhere) on the LAN (and if you're behind a NAT gateway, then the DNS server(s) are on your LAN and not out at your ISP), or things get weird.  SUS (usually) works out of the box, outside of cases where there's an outbound firewall.  Netboot can be more effort to setup, in terms of what you're loading into the clients.

  • Trying to do pxe-boot and kickstart install on sunfire x4150 using NET MGT

    I am trying to do pxe-boot and kickstart install on sunfire x4150 using NET MGT port. Is this doable? The eth0 port works fine, but the NET MGT port does not seems working. It gets the IP, gateway, mask and other info, but would not start the install. I heard that the NET MGT port is not capable of doing pxe-boot, please let me know if this is true.
    Your help is appreciated.
    Sheng

    The NET MGT port is for the ILOM. That interface is not visible to the Host OS so no it cannot be used for host communication including PXE booting...

  • [SOLVED]Incorrect mountpoint for /home and /boot

    Hello Archers,
    I'm new to Arch, if you find my question is so dummy, let me know
    I have manually setup the partition like this:
    1. sdb1 NTFS with boot flag toggle, primary (My existing Windows XP)
    2. sdb2  with boot flag toggle, primary (will be used as /boot), type 83
    3. sdb5 logical (will be used as swap), type 82
    4. sdb6 logical (will be used as /), type 83
    5. sdb7 logical (will be used as /home), type 83
    6. sdb8 logical NTFS
    I have a small problem when installing Arch, it's about setting up filesystem and mountpoint.
    The installer asked me to select the swap, I chose sdb5, for / I chose sdb6, and it asked me to select additional partition to be mounted under new root, I chose sdb5 with the mount point /boot, sdb7 for /home. The installer show a summary of the filesystem and mountpoint before it makes changes to the hdd, everything is correct. But when it makes changes to my hdd, it said that it make a mountpoint at /mnt/boot and /mnt/home.:rolleyes:. It should make mountpoints at /boot and /home respectively. Why does it add a prefix /mnt to my custom mountpoint?
    It seems to be a bug in the installer.
    Any help are appreciated.
    Thanks
    Tinh
    Last edited by tinhtruong (2008-12-28 09:46:43)

    fumbles wrote:Because you are still running Arch from the CD and not the one you just installed on your computer.
    If so, the message generated by the installer is confusing, it need to be fixed to save some posts like this on the forum:D
    I'm not at that computer right now, so I cannot verify this. I will verify this problem in the evening and report back.
    Thanks for a quick reply.

Maybe you are looking for

  • Downloader

    As im new to this ( Yesterday ) just finding my feet just downloaded Skype its all working however how do i delete the files in Downloader? is it right click remove from list? douse this delete the file downloaded ? Thanks

  • SL upgrade installation failed and now macbook won't boot

    Hi all, I did some searching in the forums, but I couldn't find this answer -- I'm sorry if it has already been asked/answered. I have a 2.5 yr old intel macbook that was running leopard, and I bought the SL upgrade. My mac has been hovering around 0

  • Rundll32 error when opening a PDF attachment from Outlook 2010

    The computer is a 32 bit Win7.  Outlook is 2010 for business.  Everything was working fine until 4 days ago.  Now have to save the pdf to the desktop and open it from there.  Any ideas? Thanks

  • How to stop HP Annoying Status Message Windows?

    Before posting this message now (July/2014) I've searched for related posts here. I found one from 2009, whose author got a solution through an answer only in 2012 (pasted bellow).  I have the same problem: I'd like to stop the invasive alert message

  • Application Error on system run

    When I run Windows I get: Application Error CouldNotLoadArgumentException[ Could not load file/URL specified: E:\Documents and Settings\Konrad\Dane aplikacji\Sun\Java\Deployment\cache\6.0\48\103a1530-21f21f05]      at com.sun.javaws.Main.launchApp(Un