Hdparm -Y /dev/sdb in /etc/rc.conf no effect

Hello. I have added SSD disk to my laptop (/dev/sda), but I have kep old HDD (/dev/sdb).
Because HDD is rarely used, I decided to spare some power by putting this HDD to rest. So I checked out the command in terminal:
sudo hdparm -Y /dev/sdb
It worked. However, when I added
hdparm -Y /dev/sdb
to the bottom of /etc/rc.conf file, nothing happens.
Why is this and how can I debug that? Can I somehow prevent HDD spinning up in the first place?

siriusb wrote:Problem is that hdparm needs root privilage to run. So if you want that command invoked in ~/.xinitrc you have to write a script which asks for root password then execute hdparm.
There may be other ways I'm not aware of, but I'm not a guru either.
You can work around that with proper sudo configuration. Say, this should work for whole wheel group to be able to use sudo hdparm without root password:
%wheel ALL = NOPASSWD: /sbin/hdparm
Obviously could be done for other groups as well. Just an example.
technolog wrote:
I have come up with solution:
until [ "$(pidof X)" ]; do
sleep 1
done
sleep 10
hdparm -Y /dev/sdb
Is solution like this acceptable?
edit, nevermind, I'm just dumb looks good
edit2 actually... a script put this way will ask for a pid of a process, on whose creation it is waiting. Either I'm very very tired (which I am), or the logic is a bit faulty.
Last edited by meph (2012-01-29 16:08:24)

Similar Messages

  • Settings in /etc/sysctl.conf overwritten [SOLVED]

    I added a new line to /etc/sysctl.conf setting the vm.dirty_ratio to 3 (line is simply `vm.dirty_ratio = 3`).  I can invoke it by running `sysctl -p` so I know the syntax is correct.  This setting is however not loaded upon a reboot.  The systemd-sysctl.service is however kicked off just  fine and completes without errors.  I have also tried removing the line from /etc/sysctl.conf and placing it in /etc/sysctl.d/dirty.conf but again, it is not honored at boot.  What am I doing wrong?
    EDIT: The solution is in post #31 - acknowledgement to chp for pointing me to it.  Note that I also changed to topic to a more relevant one.
    Last edited by graysky (2013-08-10 12:27:41)

    Guess I'm stumped.  I just spun up an Arch VM, pasted in the /etc/sysctl.conf below and reboot it.  All the settings in the file in the VM are applied.  If Leonid's guess that something is overriding these values on my workstation, I would like to figure out what it is and shut it down.  To keep things simple, I booted into the stock ARCH kernel; here are the services I have active:
    UNIT LOAD ACTIVE SUB DESCRIPTION
    proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automo
    sys-devices-pci0000:00-0000:00:19.0-net-eno1.device loaded active plugged P8P67 Deluxe Motherboard
    sys-devices-pci0...-0000:00:1b.0-sound-card0.device loaded active plugged 7 Series/C210 Series Chipset Family High Definition
    sys-devices-pci0...6-0000:07:00.0-net-wlp7s0.device loaded active plugged AR9485 Wireless Network Adapter
    sys-devices-pci0...:0-0:0:0:0-block-sda-sda1.device loaded active plugged OCZ-VERTEX4
    sys-devices-pci0...:0-0:0:0:0-block-sda-sda2.device loaded active plugged OCZ-VERTEX4
    sys-devices-pci0...:0-0:0:0:0-block-sda-sda3.device loaded active plugged OCZ-VERTEX4
    sys-devices-pci0...et0:0:0-0:0:0:0-block-sda.device loaded active plugged OCZ-VERTEX4
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb1.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb2.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb3.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb4.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb5.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb6.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb7.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...et1:0:0-1:0:0:0-block-sdb.device loaded active plugged WDC_WD1001FALS-00J7B1
    sys-devices-pci0...et3:0:0-3:0:0:0-block-sr0.device loaded active plugged ATAPI_iHAS424_B
    sys-devices-platform-serial8250-tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
    sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
    sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
    sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
    sys-module-configfs.device loaded active plugged /sys/module/configfs
    sys-module-fuse.device loaded active plugged /sys/module/fuse
    sys-subsystem-net-devices-eno1.device loaded active plugged P8P67 Deluxe Motherboard
    sys-subsystem-net-devices-wlp7s0.device loaded active plugged AR9485 Wireless Network Adapter
    -.mount loaded active mounted /
    boot.mount loaded active mounted /boot
    dev-hugepages.mount loaded active mounted Huge Pages File System
    dev-mqueue.mount loaded active mounted POSIX Message Queue File System
    home-facade-.cache.mount loaded active mounted /home/facade/.cache
    mnt-data.mount loaded active mounted /mnt/data
    run-user-1000-gvfs.mount loaded active mounted /run/user/1000/gvfs
    scratch.mount loaded active mounted /scratch
    sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
    sys-kernel-config.mount loaded active mounted Configuration File System
    sys-kernel-debug.mount loaded active mounted Debug File System
    tmp.mount loaded active mounted Temporary Directory
    var-cache.mount loaded active mounted /var/cache
    systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watc
    systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
    cronie.service loaded active running Periodic Command Scheduler
    dbus.service loaded active running D-Bus System Message Bus
    fancontrol.service loaded active running Fan control daemon
    [email protected] loaded active running Getty on tty1
    gpm.service loaded active running Virtual console mouse server
    lxdm.service loaded active running LXDE Display Manager
    [email protected] loaded active exited A basic static ethernet connection using iproute
    ntpd.service loaded active running Network Time Service
    polkit.service loaded active running Authorization Manager
    psd.service loaded active exited Profile-sync-daemon
    rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running Login Service
    systemd-modules-load.service loaded active exited Load Kernel Modules
    systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
    systemd-sysctl.service loaded active exited Apply Kernel Variables
    systemd-tmpfiles-setup.service loaded active exited Recreate Volatile Files and Directories
    systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
    systemd-udevd.service loaded active running udev Kernel Device Manager
    systemd-update-utmp.service loaded active exited Update UTMP about System Reboot/Shutdown
    systemd-user-sessions.service loaded active exited Permit User Sessions
    systemd-vconsole-setup.service loaded active exited Setup Virtual Console
    udisks2.service loaded active running Disk Manager
    ufw.service loaded active exited CLI Netfilter Manager
    upower.service loaded active running Daemon for power management
    cups.socket loaded active listening CUPS Printing Service Sockets
    dbus.socket loaded active running D-Bus System Message Bus Socket
    dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
    sshd.socket loaded active listening sshd.socket
    systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
    systemd-journald.socket loaded active running Journal Socket
    systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
    systemd-udevd-control.socket loaded active listening udev Control Socket
    systemd-update-utmp.service loaded active exited Update UTMP about System Reboot/Shutdown
    systemd-user-sessions.service loaded active exited Permit User Sessions
    systemd-vconsole-setup.service loaded active exited Setup Virtual Console
    udisks2.service loaded active running Disk Manager
    ufw.service loaded active exited CLI Netfilter Manager
    upower.service loaded active running Daemon for power management
    cups.socket loaded active listening CUPS Printing Service Sockets
    dbus.socket loaded active running D-Bus System Message Bus Socket
    dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
    sshd.socket loaded active listening sshd.socket
    systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
    systemd-journald.socket loaded active running Journal Socket
    systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
    systemd-udevd-control.socket loaded active listening udev Control Socket
    systemd-udevd-kernel.socket loaded active running udev Kernel Socket
    basic.target loaded active active Basic System
    cryptsetup.target loaded active active Encrypted Volumes
    getty.target loaded active active Login Prompts
    graphical.target loaded active active Graphical Interface
    local-fs-pre.target loaded active active Local File Systems (Pre)
    local-fs.target loaded active active Local File Systems
    multi-user.target loaded active active Multi-User System
    network.target loaded active active Network
    paths.target loaded active active Paths
    remote-fs.target loaded active active Remote File Systems
    sockets.target loaded active active Sockets
    sound.target loaded active active Sound Card
    swap.target loaded active active Swap
    sysinit.target loaded active active System Initialization
    timers.target loaded active active Timers
    psd-resync.timer loaded active waiting Timer for Profile-sync-daemon - 1Hour
    systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
    And...
    % systemctl list-unit-files
    UNIT FILE STATE
    proc-sys-fs-binfmt_misc.automount static
    dev-hugepages.mount static
    dev-mqueue.mount static
    proc-fs-nfsd.mount static
    proc-sys-fs-binfmt_misc.mount static
    sys-fs-fuse-connections.mount static
    sys-kernel-config.mount static
    sys-kernel-debug.mount static
    tmp.mount static
    var-lib-nfs-rpc_pipefs.mount static
    cups.path disabled
    systemd-ask-password-console.path static
    systemd-ask-password-wall.path static
    alsa-restore.service static
    alsa-state.service static
    alsa-store.service static
    arch32.service disabled
    [email protected] disabled
    avahi-daemon.service disabled
    avahi-dnsconfd.service disabled
    binfmt-support.service disabled
    blkmapd.service disabled
    canberra-system-bootup.service disabled
    canberra-system-shutdown-reboot.service disabled
    canberra-system-shutdown.service disabled
    colord.service static
    console-getty.service disabled
    console-shell.service disabled
    cronie.service enabled
    cups-browsed.service disabled
    cups.service disabled
    cupsd.service disabled
    dbus-org.freedesktop.hostname1.service static
    dbus-org.freedesktop.locale1.service static
    dbus-org.freedesktop.login1.service static
    dbus-org.freedesktop.timedate1.service static
    dbus.service static
    debug-shell.service disabled
    dhcpcd.service disabled
    [email protected] disabled
    display-manager.service enabled
    distccd.service disabled
    dkms.service disabled
    dmeventd.service static
    emergency.service static
    fancontrol.service enabled
    ftpd.service disabled
    [email protected] enabled
    [email protected] static
    gpm.service enabled
    hddtemp.service disabled
    healthd.service disabled
    initrd-cleanup.service static
    initrd-parse-etc.service static
    initrd-switch-root.service static
    initrd-udevadm-cleanup-db.service static
    ip6tables.service disabled
    iptables.service disabled
    irexec.service disabled
    krb5-kadmind.service disabled
    krb5-kdc.service disabled
    krb5-kpropd.service disabled
    [email protected] static
    lirc.service disabled
    lircm.service disabled
    lm_sensors.service disabled
    lxdm.service enabled
    mcelog.service disabled
    mpd.service disabled
    [email protected] disabled
    [email protected] disabled
    netctl-sleep.service disabled
    netctl.service disabled
    [email protected] static
    [email protected] static
    [email protected] enabled
    nfsd.service disabled
    nmbd.service disabled
    nscd.service disabled
    ntpd.service enabled
    ntpdate.service disabled
    polkit.service static
    psd-resync.service enabled
    psd.service enabled
    quotaon.service static
    rescue.service static
    rpc-gssd.service disabled
    rpc-idmapd.service disabled
    rpc-mountd.service disabled
    rpc-statd.service disabled
    rpc-svcgssd.service disabled
    rpcbind.service disabled
    rsyncd.service disabled
    [email protected] static
    rtkit-daemon.service disabled
    samba.service disabled
    sensord.service disabled
    [email protected] static
    smartd.service disabled
    smbd.service disabled
    [email protected] static
    snmpd.service disabled
    snmptrapd.service disabled
    speech-dispatcherd.service disabled
    sshd.service disabled
    [email protected] static
    sshdgenkeys.service static
    svnserve.service disabled
    [email protected] static
    systemd-ask-password-console.service static
    systemd-ask-password-wall.service static
    systemd-binfmt.service static
    systemd-fsck-root.service static
    [email protected] static
    systemd-halt.service static
    systemd-hibernate.service static
    systemd-hostnamed.service static
    systemd-hybrid-sleep.service static
    systemd-initctl.service static
    systemd-journal-flush.service static
    systemd-journal-gatewayd.service static
    systemd-journald.service static
    systemd-kexec.service static
    systemd-localed.service static
    systemd-logind.service static
    systemd-modules-load.service static
    [email protected] static
    systemd-poweroff.service static
    systemd-quotacheck.service static
    systemd-random-seed-load.service static
    systemd-random-seed-save.service static
    systemd-readahead-collect.service disabled
    systemd-readahead-done.service static
    systemd-readahead-drop.service disabled
    systemd-readahead-replay.service disabled
    systemd-reboot.service static
    systemd-remount-fs.service static
    systemd-shutdownd.service static
    systemd-suspend.service static
    systemd-sysctl.service static
    systemd-timedated.service static
    systemd-tmpfiles-clean.service static
    systemd-tmpfiles-setup-dev.service static
    systemd-tmpfiles-setup.service static
    systemd-udev-settle.service static
    systemd-udev-trigger.service static
    systemd-udevd.service static
    systemd-update-utmp-runlevel.service static
    systemd-update-utmp.service static
    systemd-user-sessions.service static
    systemd-vconsole-setup.service static
    udisks.service disabled
    udisks2.service static
    ufw.service enabled
    upower.service disabled
    usbmuxd.service static
    [email protected] disabled
    uuidd.service static
    vboxweb.service disabled
    vncserver.service disabled
    winbindd.service disabled
    [email protected] disabled
    [email protected] disabled
    wpa_supplicant.service disabled
    [email protected] disabled
    avahi-daemon.socket disabled
    cups.socket enabled
    dbus.socket static
    dmeventd.socket static
    git-daemon.socket disabled
    krb5-kpropd.socket disabled
    rsyncd.socket disabled
    smbd.socket disabled
    sshd.socket enabled
    swat.socket disabled
    syslog.socket static
    systemd-initctl.socket static
    systemd-journal-gatewayd.socket disabled
    systemd-journald.socket static
    systemd-shutdownd.socket static
    systemd-udevd-control.socket static
    systemd-udevd-kernel.socket static
    uuidd.socket disabled
    basic.target static
    bluetooth.target static
    cryptsetup.target static
    ctrl-alt-del.target disabled
    default.target disabled
    emergency.target static
    final.target static
    getty.target static
    graphical.target disabled
    halt.target disabled
    hibernate.target static
    hybrid-sleep.target static
    initrd-fs.target static
    initrd-root-fs.target static
    initrd-switch-root.target static
    initrd.target static
    kexec.target disabled
    local-fs-pre.target static
    local-fs.target static
    multi-user.target disabled
    network-online.target static
    network.target static
    nss-lookup.target static
    nss-user-lookup.target static
    paths.target static
    poweroff.target disabled
    printer.target static
    reboot.target disabled
    remote-fs-pre.target static
    remote-fs.target enabled
    rescue.target disabled
    rpcbind.target static
    shutdown.target static
    sigpwr.target static
    sleep.target static
    smartcard.target static
    sockets.target static
    sound.target static
    suspend.target static
    swap.target static
    sysinit.target static
    system-update.target static
    time-sync.target static
    timers.target static
    umount.target static
    psd-resync.timer static
    systemd-readahead-done.timer static
    systemd-tmpfiles-clean.timer static
    231 unit files listed.
    Last edited by graysky (2014-11-03 08:39:54)

  • Set systemwide variable with /etc/launchd.conf does not work in 10.10

    Hi,
    before i upgraded my system, i set in file /etc/launchd.conf some variables. I need this for the Shell, Eclipse and some other tools.
    user@osx10-10:~$ cat /etc/launchd.conf
    setenv M2_HOME /opt/maven
    setenv MAVEN_OPTS "-Xmx2048m -Dmaven.surefire.debug=-Xmx2048m"
    user@osx10-10:~$
    With Mavericks there was no problem, since Yosemite no Variables are set.
    Also when i try to set it manually with launchctl setting xxxxx xxxx, no variable is set.
    Does anyone has a workaround for me?
    Regards
    Joerg

    Alex It should work . by the way your PATH variable should be placed in /etc/paths like this :
    /usr/bin
    /bin
    /usr/sbin
    /sbin
    /usr/local/bin
    /Users/alex/Dev/apache-ant-1.9.2/bin
    Note after each line there is a return key
    As for environment variables open your ~/.bash_profile and place the.
    export ANT_HOME = /Users/alex/Dev/apache-ant-1.9.2
    launchctl setenv ANT_HOME $ANT_HOME
    export ANT_OPTS = -Xmx512M
    launchctl setenv ANT_OPTS $ANT_OPTS
    make sure you save and restart all applications that need to read environment variables. I faced the same problem with intelliJ accessing M2_HOME
    As a side note : consulting the man pages of launchctl(1)
    DEPRECATED AND REMOVED FUNCTIONALITY
         launchctl no longer has an interactive mode, nor does it accept commands from stdin. The
         /etc/launchd.conf file is no longer consulted for subcommands to run during early boot time; this func-
         tionality was removed for security considerations. While it was documented that $HOME/.launchd.conf
         would be consulted prior to setting up a user's session, this functionality was never implemented.
         launchd no longer uses Unix domain sockets for communication, so the LAUNCHD_SOCKET environment vari-
         able is no longer relevant and is not set.
         launchd no longer loads configuration files from the network

  • [SOLVED] Changed an option in /etc/updatedb.conf

    Hello all,
    I started using locate to search my files. However, it never showed files in my /home directory which is, obviously, the directory I search most. Running updatedb --debug-pruning I found out that it didn't add /home to the database because it's an "autofs" filetype:
    ┌─[jente @ lappy ~] 23:54:27
    └─■ sudo updatedb --debug-pruning
    `/home' (32 on 18) is `/' of `systemd-1' (0:27), type `autofs'
    Skipping `/home': in prunefs
    So, I edited /etc/updatedb.conf and removed autofs from the PRUNEFS line. I never found any documentation on this and thus, I don't know if this is the correct way of solving this. Hence this post; I would just like to get some feedback on whether or not I fixed this the right way.
    Thanks in advance, guys!
    Last edited by Unia (2012-12-15 13:45:36)

    Unia wrote:
    Mr.Elendig wrote:Another way would be to add your /home to fstab instead.
    Hey! Thanks for your input. My /home is actually already there:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    tmpfs /tmp tmpfs nodev,nosuid 0 0
    # /dev/sda1
    UUID=60eb73f7-635c-4b3e-9d6a-8bb49aee739a / ext4 rw,relatime 0 1
    # /dev/sda2 LABEL=home
    UUID=4470b151-db99-4586-a652-398e0e8995cb /home ext4 rw,relatime,noauto,x-systemd.automount 0 2
    If your /home is on an internal disk, why use automount?

  • No Inputs in xserver(unable to access /etc/rc.conf to change startup)

    Hello everyone,
    I've installed arch on an older notebook and of all the steps I could miss, I forgot to add hal to the daemons array in /etc/rc.conf so now when arch boots up it goes directly into xserver(kde) without any input hotplugging resulting in no input from trackpad/keyboard, as well as external mouse and keyboard.
    I've tried editing /etc/rc.conf when using the arch boot cd but I get "permission denied" when trying to mount /dev/sda1,2,3,4 etc. Is there any way I can interrupt the boot process so that I can remove "kdm" from the daemons array? Or to somehow stop arch from booting into xserver? I'm somewhat new to the linux environment but I try my best to follow all and any tutorials/advice and you guys seem to have the most detailed tutorials of all the distros - way to go!
    Thanks for the help
    Last edited by geometro (2010-06-08 01:30:06)

    You need to set a different runlevel in the Grub entry. Once you have selected the entry in the boot menu, you can edit it by pressing key e. Add "3" (without to quotes) to the end of the kernel line and then Esc to exit. Then you can try to boot by pressing b.
    Runlevel 3 didnt work(still booted into xserver), but I looked up into runlevels(didnt know about them before) so I tried runlevel 1 and it worked! :P Thanks for the help!!
    "Runlevel 1 is usually for very basic commands. This is the equivalent to "safe mode" used by Windows. This level is usually only used to asses repairs or maintenance to the system. This is a single-user mode and does not allow other users to login to the machine."
    edit: typo
    Last edited by geometro (2010-06-08 05:07:58)

  • [SOLVED] How to restore kernel image after wrong /etc/mkinitcpio.conf

    I wanted to learn a bit more about the kernel and boot, and I'm afraid I cannot start up my ArchLinux anymore.
    I updated the /etc/mkinitcpio.conf to make the boot faster (with this reference: http://kmandla.wordpress.com/2007/01/30 … initcpio/) and executed #mkinitcpio -p kernel26
    I thought that if there was any problem, I could start up with the "fallback image". Certainly, there was a problem (probably I didn´t loaded all the modules required) and when I tried the fallback image, I experimented the same problem:
    Root device '/dev/disk/by-uuid/...' doesn´t exist
    ramfs$
    In fact, both images are the same (or at least they have the same size)
    I tried the ArchLinux liveCD to recover my system. There's no recovery service, so I started up the CD-ROM, mounted my ArchLinux partitions, generated the images and copied into the /boot of my Archlinux partitions. But the same problem is still there.
    What could I do to fix it?
    Thank you in advance
    Last edited by jjjaime (2009-05-10 15:45:45)

    Thank you. I follow your instructions and it worked (perhaps it would be simpler with a "#pacman -Sy kernel26"). I didn't know the command chroot and it's really interesting.
    red_erik wrote:
    I have a similar problem, (read more in this thread), and I solve it by booting off the Live CD, and doing the following:
    (replace sda1 with your / partition)
    cd /
    mount -t ext3 /dev/sda1 /mnt
    mount -t proc proc /mnt/proc
    mount -t sysfs sys /mnt/sys
    mount -o bind /dev /mnt/dev
    chroot /mnt /bin/bash
    mkinitcpio -p kernel26
    after that, I exit chroot, unmount all of my partitions and reboot...:
    cd /
    umount -a
    exit
    cd /
    umount -a
    reboot
    hope this helps...

  • Boot fails due to /dev/sdb not showing up after update

    For some reason, my secondary hard disk has stopped being detected after I updated my Arch Linux machine today.  This machine has not been updated for about a year (I have been away).  Basically, /dev/sdb* is not in /dev/.  There is only /dev/sda*.
    The current kernel installed is 2.6.39.
    The error I get on boot is when it tries to detect the hard drives.  I would try to provide a log file, however every time I try to plug in a USB stick, it says that it is disabling IRQ #10, and it won't start the network so I can't ssh the information to any other computer.  I can log in by removing sdb from the fstab, so I will try to get /var/log/messages on here later.
    I am using udev to detect my hard drives on startup.
    Anybody know how to fix this problem?
    I can log in perfectly fine if I remove any mention of sdb from my /etc/fstab.
    Thank-you in advance for your help,
    kev717.
    Last edited by kev717 (2011-07-17 01:49:12)

    Assuming you have a BIOS based computer, have you tried the BIOS configuration program to see if the drive is detected by the BIOS ?

  • Deleted /etc/rc.conf ...How can I repair?

    Deleted script in /etc/rc.conf dueing clean-up...can't log-in...
         Is it possible to use Arch install CD to sgway to configuration and re-install the rc data?
         Is there any particular order of operations to ensure protecting the already installed kernel and packages? :?:

      Rasat;
       I understand the chroot procedure you listed previously so I opt to use that one.
         Firstly, I assume that the hdx you specify is ...root partition...
         I am hoping the CD kernel boot identifies the drive as hda and partition 3 since it has been addressed in the kernel 2.4.21 as /dev/disc/disc/part3.
         I assume I do not have to address the 2.4.21 kernel in this procedure...
        I don't have any familiarity with vi but nano will serve OK.
         One last query... if I cp /etc/rc.conf~~~~ /etc/rc.conf.... with this procedure will it not show up with the tilde~~~~?   Perhaps I can just rename /etc/rc.conf~~~ to /etc/rc.conf  
         I assume that the contents are transferred and not the ID details.  I also assume since the tilde is eliminated that the file icon script will show up in /etc/rc.conf.
         If I do not find any /etc/rc.conf with tilde, I assume I will have to use the rc.root~ cp procedure and edit using an exchange procedure so as not to generate more tildes!!
        marku?

  • Setting global umask via NSUmask or /etc/launchd.conf and /etc/launchd-user.conf broken?

    The procedure to change the default global umask from 0022 to 0002, so that most files created by one user on a machine will be read-write by other users in the same group, seems to have been broken or to have been changed in OS X Lion from OS X Snow Leopard.  What worked as far back as OS X 10.4 and was officially documented was done from Terminal: "defaults write /Library/Preferences/.GlobalPreferences NSUmask 2" (with a sudo, if not logged in as 'root').
    Another way documented in various places and which I actually used through OS X 10.6 was also done via Terminal. Two files were created: /etc/launchd.conf (for system-wide global umask) or /etc/launchd-user.conf (for user-specific global umask).  The contents of each were simply the single umask command, "umask 002" or ("umask u=rwx,g=rwx,o=rx", I can't remember which variant I used - they're functionally the same, though).
    No matter which method I use, the 2nd or the 1st, the global umask no longer changes.
    Does anyone know whether this has been deliberately hobbled under OS X Lion, requiring purchase of OS X Lion Server?  Is this an OS X Lion bug?  Or, am I looking at something wrong?

    See this support article, which was written for OS X Server, but seems applicable to  Mac OS X client versions as well:
    Mac OS X Server v10.5, 10.6: Setting a custom umask
    The excerpt below describes the use of /etc/launchd-user.conf, and strongly cautions against using /etc/launchd.conf.
    Umask for user applications
    In Mac OS X v10.5.3 and later, you can create the file /etc/launchd-user.conf with the contents "umask nnn". Do not include the quotation marks and replace nnn with the desired umask value, such as 027 or 002.
    This will set the user's umask for all applications they launch, such as Finder, TextEdit, or Final Cut Pro, and control the permissions set on new files created by any of these applications.
    Umask for system processes
    In Mac OS X v10.4 and later, create the file /etc/launchd.conf with the contents "umask nnn". Do not include the quotation marks and replace nnn with the desired umask value, such as 027 or 002.
    This will set the umask for all processes. Changing this value is strongly discouraged because it changes the permissions on files used by the system software. If the permissions are too restrictive, dependent software may not work. If the permissions are too open, they may introduce security issues.

  • How to test after commenting unnecessary service in /etc/inetd.conf

    Hi All,
    I have a requirement to comment all unnecessary services listed below in /etc/inetd.conf file.
    Pls suggest a test scenario which shows that these services are disabled after commenting
    The list of unnecessary services are :
    echo stream tcp6 nowait root internal
    echo dgram udp6 wait root internal
    discard stream tcp6 nowait root internal
    discard dgram udp6 wait root internal
    daytime stream tcp6 nowait root internal
    daytime dgram udp6 wait root internal
    chargen stream tcp6 nowait root internal
    chargen dgram udp6 wait root internal
    comsat dgram udp wait root /usr/sbin/in.comsat in.comsat
    talk dgram udp wait root /usr/sbin/in.talkd in.talkd
    uucp stream tcp nowait root /usr/sbin/in.uucpd in.uucpd
    finger stream tcp6 nowait nobody /usr/sbin/in.fingerd in.fingerd
    rstatd/2-4 tli rpc/datagram_v wait root /usr/lib/netsvc/rstat/rpc.rstatd rpc.rstatd
    rusersd/2-3 tli rpc/datagram_v,circuit_v wait root /usr/lib/netsvc/rusers/rpc.rusersd rpc.rusersd
    walld/1 tli rpc/datagram_v wait root /usr/lib/netsvc/rwall/rpc.rwalld rpc.rwalld
    sprayd/1 tli rpc/datagram_v wait root /usr/lib/netsvc/spray/rpc.sprayd rpc.sprayd
    name dgram udp wait root /usr/sbin/in.tnamed in.tnamed
    bootps dgram udp wait root /usr/sbin/bootpd bootpd
    Thanks
    gattu

    How to turn your computer into a Virtual (Personal)Router.
    Our hotel the Grand Oasis Cancun provided internet for only 36 hours and you could only use it on one device which comes to my next option as using your Laptop as a Personal Router to broadcast WiFi to any devices near your computer. Our room was on the Second level of the Pyramid at Grand Oasis and I was able to access it while at the VIP lounge below our room. Before our supposedly free internet service ended.
    I attempted using the hotel next door since I was getting a good signal from the Omni Hotel. They offered complimentary 24hr internet access using your browser as a way to track your use. Once you find the signal of the Omni it will open your browser I used Google Chrome, after it opens you go threw a few simple steps and your ready.
    I learned that after the 24 hours are up all you have to do is disconnect from their network, just run Ccleaner(free program) then find the Signal of the hotel and you will be given another 24 hours. What Ccleaner(<--download there) does is clears anything attached to your browser ie cookies temp files etc. it cleans your browser history giving you a way of not paying for the hotel fee of internet and giving you free WiFi. this is only if you are next to the Omni hotel :).
    What you need to download to turn your computer into a hotspot need to say is this little easy to use program Virtual Router. Once it has download test at your home to make sure it works with you devices. This will work with Tablets, Phones and other computers that cant find the Omni WiFi signal. Your welcome. To use it, is simple. Open program>make a password>select WiFi and start VR.

  • Unable to determine the sharedness of /dev/sda, /dev/sdb, /dev/sdc on nodes

    hello, pls how do i fix this issue, the two scripts ran on first node, but failed on second node, after running cluvfy this is the output:
    using cluvfy for storage requirements
    Verifying shared storage accessibility
    Checking shared storage accessibility...
    WARNING:
    Unable to determine the sharedness of /dev/sda on nodes:
    rac2,rac1
    WARNING:
    Unable to determine the sharedness of /dev/sdb on nodes:
    rac2,rac1
    WARNING:
    Unable to determine the sharedness of /dev/sdc on nodes:
    rac2,rac1
    WARNING:
    Unable to determine the sharedness of /dev/sdd on nodes:
    rac2
    Shared storage check failed on nodes "rac2,rac1".
    Verification of shared storage accessibility was unsuccessful on all the nodes.
    using cluvfy for system requirements
    Verifying system requirement
    Checking system requirements for 'crs'...
    Check: Total memory
    Node Name Available Required Comment
    rac2 1011.13MB (1035400KB) 1GB (1048576KB) failed
    rac1 1011.13MB (1035400KB) 1GB (1048576KB) failed
    Result: Total memory check failed.
    Check: Free disk space in "/tmp" dir
    Node Name Available Required Comment
    rac2 1.07GB (1119972KB) 400MB (409600KB) passed
    rac1 1.09GB (1141784KB) 400MB (409600KB) passed
    Result: Free disk space check passed.
    Check: Swap space
    Node Name Available Required Comment
    rac2 2GB (2096472KB) 1.5GB (1572864KB) passed
    rac1 2GB (2096472KB) 1.5GB (1572864KB) passed
    Result: Swap space check passed.
    Check: System architecture
    Node Name Available Required Comment
    rac2 i686 i686 passed
    rac1 i686 i686 passed
    Result: System architecture check passed.
    Check: Kernel version
    Node Name Available Required Comment
    rac2 2.6.18-8.el5 2.6.9 passed
    rac1 2.6.18-8.el5 2.6.9 passed
    Result: Kernel version check passed.
    Check: Package existence for "make-3.81"
    Node Name Status Comment
    rac2 make-3.81-1.1 passed
    rac1 make-3.81-1.1 passed
    Result: Package existence check passed for "make-3.81".
    Check: Package existence for "binutils-2.17.50.0.6"
    Node Name Status Comment
    rac2 binutils-2.17.50.0.6-2.el5 passed
    rac1 binutils-2.17.50.0.6-2.el5 passed
    Result: Package existence check passed for "binutils-2.17.50.0.6".
    Check: Package existence for "gcc-4.1.1"
    Node Name Status Comment
    rac2 gcc-4.1.1-52.el5 passed
    rac1 gcc-4.1.1-52.el5 passed
    Result: Package existence check passed for "gcc-4.1.1".
    Check: Package existence for "libaio-0.3.106"
    Node Name Status Comment
    rac2 libaio-0.3.106-3.2 passed
    rac1 libaio-0.3.106-3.2 passed
    Result: Package existence check passed for "libaio-0.3.106".
    Check: Package existence for "libaio-devel-0.3.106"
    Node Name Status Comment
    rac2 libaio-devel-0.3.106-3.2 passed
    rac1 libaio-devel-0.3.106-3.2 passed
    Result: Package existence check passed for "libaio-devel-0.3.106".
    Check: Package existence for "libstdc++-4.1.1"
    Node Name Status Comment
    rac2 libstdc++-4.1.1-52.el5 passed
    rac1 libstdc++-4.1.1-52.el5 passed
    Result: Package existence check passed for "libstdc++-4.1.1".
    Check: Package existence for "elfutils-libelf-devel-0.125"
    Node Name Status Comment
    rac2 elfutils-libelf-devel-0.125-3.el5 passed
    rac1 elfutils-libelf-devel-0.125-3.el5 passed
    Result: Package existence check passed for "elfutils-libelf-devel-0.125".
    Check: Package existence for "sysstat-7.0.0"
    Node Name Status Comment
    rac2 sysstat-7.0.0-3.el5 passed
    rac1 sysstat-7.0.0-3.el5 passed
    Result: Package existence check passed for "sysstat-7.0.0".
    Check: Package existence for "compat-libstdc++-33-3.2.3"
    Node Name Status Comment
    rac2 missing failed
    rac1 missing failed
    Result: Package existence check failed for "compat-libstdc++-33-3.2.3".
    Check: Package existence for "libgcc-4.1.1"
    Node Name Status Comment
    rac2 libgcc-4.1.1-52.el5 passed
    rac1 libgcc-4.1.1-52.el5 passed
    Result: Package existence check passed for "libgcc-4.1.1".
    Check: Package existence for "libstdc++-devel-4.1.1"
    Node Name Status Comment
    rac2 libstdc++-devel-4.1.1-52.el5 passed
    rac1 libstdc++-devel-4.1.1-52.el5 passed
    Result: Package existence check passed for "libstdc++-devel-4.1.1".
    Check: Package existence for "unixODBC-2.2.11"
    Node Name Status Comment
    rac2 unixODBC-2.2.11-7.1 passed
    rac1 unixODBC-2.2.11-7.1 passed
    Result: Package existence check passed for "unixODBC-2.2.11".
    Check: Package existence for "unixODBC-devel-2.2.11"
    Node Name Status Comment
    rac2 unixODBC-devel-2.2.11-7.1 passed
    rac1 unixODBC-devel-2.2.11-7.1 passed
    Result: Package existence check passed for "unixODBC-devel-2.2.11".
    Check: Package existence for "glibc-2.5-12"
    Node Name Status Comment
    rac2 glibc-2.5-12 passed
    rac1 glibc-2.5-12 passed
    Result: Package existence check passed for "glibc-2.5-12".
    Check: Group existence for "dba"
    Node Name Status Comment
    rac2 exists passed
    rac1 exists passed
    Result: Group existence check passed for "dba".
    Check: Group existence for "oinstall"
    Node Name Status Comment
    rac2 exists passed
    rac1 exists passed
    Result: Group existence check passed for "oinstall".
    Check: User existence for "nobody"
    Node Name Status Comment
    rac2 exists passed
    rac1 exists passed
    Result: User existence check passed for "nobody".
    System requirement failed for 'crs'
    Verification of system requirement was unsuccessful on all the nodes.
    cluvfy check for node connectivity
    Verifying node connectivity
    Checking node connectivity...
    Interface information for node "rac2"
    Interface Name IP Address Subnet Subnet Gateway Default Gateway Hardware Address
    eth0 192.168.2.102 192.168.2.0 0.0.0.0 192.168.2.1 00:0C:29:4D:18:BA
    eth1 192.168.0.102 192.168.0.0 0.0.0.0 192.168.2.1 00:0C:29:4D:18:C4
    Interface information for node "rac1"
    Interface Name IP Address Subnet Subnet Gateway Default Gateway Hardware Address
    eth0 192.168.2.101 192.168.2.0 0.0.0.0 192.168.2.1 00:0C:29:A5:25:87
    eth1 192.168.0.101 192.168.0.0 0.0.0.0 192.168.2.1 00:0C:29:A5:25:91
    Check: Node connectivity of subnet "192.168.2.0"
    Source Destination Connected?
    rac2:eth0 rac1:eth0 yes
    Result: Node connectivity check passed for subnet "192.168.2.0" with node(s) rac2,rac1.
    Check: Node connectivity of subnet "192.168.0.0"
    Source Destination Connected?
    rac2:eth1 rac1:eth1 yes
    Result: Node connectivity check passed for subnet "192.168.0.0" with node(s) rac2,rac1.
    Interfaces found on subnet "192.168.2.0" that are likely candidates for a private interconnect:
    rac2 eth0:192.168.2.102
    rac1 eth0:192.168.2.101
    Interfaces found on subnet "192.168.0.0" that are likely candidates for a private interconnect:
    rac2 eth1:192.168.0.102
    rac1 eth1:192.168.0.101
    WARNING:
    Could not find a suitable set of interfaces for VIPs.
    Result: Node connectivity check passed.
    Verification of node connectivity was successful.
    Verifying administrative privileges
    Checking user equivalence...
    Check: User equivalence for user "oracle"
    Node Name Comment
    rac2 passed
    rac1 passed
    Result: User equivalence check passed for user "oracle".
    Verification of administrative privileges was successful.

    Hi,
    Refer --- *19. Pre-Installation Tasks for Oracle Clusterware* section from the below link:
    http://www.oracle.com/technology/pub/articles/hunter_rac11gr1_iscsi_2.html
    See this thread also seems to be same with ur issue:
    Clusterware (Unable to determine the sharedness of) in VMware 2.0x server
    Regards,
    Xaheer

  • Beware Latest 10.3.x security update - it replaces /etc/named.conf

    The latest security update for 10.3.9 replaced "my" /etc/named.conf with a new one - fortunately the old one is saved in /etc/named.conf.applesaved
    This caused me a huge nightmare as I had no idea what had happened to our network services. This was the last thing I expected.

    Yes it did that for me too a few minutes ago, when I looked into the Server Admin window and only saw two records, one for localhost and reverse for localhost I figured it had to do something with named.conf, and of course it was the issue with that. We always keep backups of everything so I wasn't too much in a panic, and thanks to the saved backup by apple I was able to recover fast.
    I still don't understand what exactly the developers of this security update where thinking with this, this is a HUGE bug with this update, have they not noticed and corrected this by now?

  • Alsa entries in /etc/modprobe.conf

    could someone who has all the alsa options compiled as modules post that part of their /etc/modprobe.conf? i'm only getting 3 lines and i believe there are supposed to be more, causing me to have to run alsaconf every time after booting. for some reason the other modules aren't getting written to the file. appreciate!
    # --- BEGIN: Generated by ALSACONF, do not edit. ---
    # --- ALSACONF verion 1.0.5 ---
    options snd device_mode=0666
    alias snd-card-0 snd-cs46xx
    alias sound-slot-0 snd-cs46xx
    # --- END: Generated by ALSACONF, do not edit. ---

    http://bbs.archlinux.org/viewtopic.php? … a&start=15
    look at hapy's post that is an example of everything you can load (note cmipci is HIS soundcard the rest is generic modules)
    i found this with a search

  • [SOLVED] (...) which CFLAGS to choose for /etc/makepkg.conf

    Hello all. I read about certain CFLAGS you can set in /etc/makepkf.conf, so I checked out if there was anything i could do to make the packages built on my system more optimized. However, as the title states, I'm not sure what to set. The sticker on my Thinkpad T61 says "Intel® Centrino® vPro™ inside™"
    Which CPU type from the Intel list on that page applies to me? Thanks
    Last edited by robrene (2009-09-14 10:37:45)

    This Gentoo wiki page looks legit. You may want to do a bit of background research before you dig into compile flags, as there's quite a lot that gcc can break when you tell it to crunch down your programs. Also, gcc's man page is pretty exhaustive; but if you're just looking for your -march flag, it's pentium-m.
    Big 'AFAIK' here, but ignore the 'pro,' as Intel tends to arbitrarily tack that on products to up the price tag a smidgeon.

  • Override CFLAGS and CXFLAGS from /etc/makepkg.conf [solved]

    This might be a stupid question, but here goes: if I redefine variables such as CFLAGS and CXXFLAGS from within a PKGBUILD, any subsequent make would use the new ones rather than the ones defined in /etc/makepkg.conf ...right?  I'm assuming that makepkg reads them once when the user invokes it.
    Thanks.
    Last edited by graysky (2011-01-15 11:58:58)

    Thanks.  I looked at /usr/bin/makepkg and I believe this is the case, but I don't know of a way to check after I compile them.  Is there some place I can look within the final NAME.tar.xz to see which CFLAGS were used?  (Again, I think the answer here is "no").

Maybe you are looking for

  • Sugar CRM issues: can't create or edit drop-down lists

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/822646'' Sugar CRM CE 6.2.0 will not let me add drop down boxes in Firefox. Yes I've cleared the cache. Yes I can do what I need in IE8. Yes the server permissions have been check

  • Psn code not working. please help

    I just bought from a store nearby two 50$ receipt one worked but the other didn't it said not correct or may no longer be valid please check your entry (E-8200012F). I checked it many times but still no use what do I do. And I realy like how you take

  • Installation of Oracle Apps 11i

    I have purchased Oracle Apps 11i(One month license) around two months back. Will it be a problem if I install after 30 days of purchase?(I have back dated the host by two months. The Host Name is Ciber. I tried to load Vision demo on WIN NT6.0 SP6 by

  • Trial to full version(s)

    I have a full (Box) version of +Aperture 2+ on order. It's not arrived yet. If I download and install the Trial +Aperture 2+ from the Apple site, is it identical (apart from not updating) and would I lose anything by 'playing' with the trial version

  • CS5.5 Installation incomplete, Adobe Support Adviser is disconneting my network

    Hello, I've installed the new CS5.5 (Middle eastern version) on my brand new Windows 7 system. When it was done, it said that some parts were uninstalled and that I shoule reinstall. So I reinstalled and again, got the same "could not install" this a