Mkdir at startup, stuck with systemd

Hello, i have /var/log dir on ramdisk, so every time system boots it is emtied, its fine, but nginx do not like it:
Starting A high performance web server and a reverse proxy server...
nginx: [alert] could not open error log file: open() "/var/log/nginx/err...ctory)
2013/02/14 09:50:04 [emerg] 1373#0: open() "/var/log/nginx/access.log" f...ctory)
nginx.service: control process exited, code=exited status=1
Then i decided to edit startup file /usr/lib/systemd/system/nginx.service and add extra ExecStartPre line:
ExecStartPre=mkdir /var/log/nginx
But this resulted no effect: the error still there, so systemd man page claim that ExecStart can contain few commands delimited with ";", then i replaced this:
ExecStart=/usr/sbin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;'
with this:
ExecStart=mkdir /var/log/nginx; /usr/sbin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;'
and sadly still no positive effect, directory not created. When i create it by hand, then nginx starts fine.
Any idea what i'm doing wrong ?

skanky wrote:Aside from ngoonee's point, you're best off using temp files - https://wiki.archlinux.org/index.php/Sy … rary_files
See also "man tmpfiles.d"
Thanks a lot,  tmpfiles.d solved my problem.

Similar Messages

  • Weblogic Startup Stuck While Starting OBIEE 11g Services

    When starting OBIEE 11g, startup stuck with this message:
    <Info> <Management> <BEA-141107> <Version: WebLogic  Server 10.3.5.0  Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Notice> <Log Management> <BEA-170019> <The server
    log file D:\app\oracle\product\OBI11G\user_projects\domains\bifoundation_domain\
    servers\AdminServer\logs\AdminServer.log is opened. All server side log events w
    ill be written to this file.>
    Please help what could be the cause for this.
    Thanks

    Hi, can u please explain in details how to remove locks and which locks u remove on Weblogic Admin Server ?
    I met the same issues here and already try to remove :
    a) $DOMAIN_HOME/servers/<server_name>/tmp/<servermame>.lok
    b) $DOMAIN_HOME/servers/<server_name>/data/ldap/ldapfiles/EmbeddedLDAP.lok
    Thanks.

  • Stuck on Startup screen with 10.5.2

    I've tried to install the 10.5.2 update on a G5 iMac ppc, but get stuck on the white startup screen with the apple logo. I've tried re-installing (archive and install) successfully, then applied the 10.5.2 combi update, with the same result. Am I stuck with 10.5.1?

    I was able to get past the Apple logo startup screen lockup by repairing my directory with DiskWarrior.

  • How to start dhclient with systemd at startup? [SOLVED]

    I have eth0 connected to DHCP server and want to use dhclient instead of dhcpcd. How can I start dhclient with systemd? Is there something similar to
    systemctl enable dhcpcd@eth0
    Last edited by mpelikan (2012-12-18 13:43:28)

    dhcpcd comes in package with completed systemd unit (/usr/lib/systemd/system/dhcpcd.service and /usr/lib/systemd/system/[email protected]) by package developer, but dhclient doesn't.
    mpelikan, you should write your own systemd unit for dhclient for yourself using
    1) dhcpcd units as example
    2) wiki page https://wiki.archlinux.org/index.php/Sy … vice_files
    3) man page for dhclient to get the right options
    Also I'm sure I saw somewhere an example of dhclient unit but I can't find it now. Anyway, it was not working out-of-box in Arch.
    I've done this previously but then I've realized disadvantages of dhclient (so I've removed it).
    Firstly, I didn't like how it's working in daemon-mode after some testing.
    Secondly, it depends on deprecated net-tools.
    You should try dhcpcd. If it doesn't work, you can make it work by editing configuration files / kernel options (like switching off IPv6 if you think you have an issues with it) or adding some parameters.

  • [solved] Setting up a "persistent" ramdisk with systemd

    I have been doing much thinking in terms of using a ramdisk (tmpfs) to mitigate, or rather postpone SSD write limit issues as well as to enhance system performance. After following the steps described in the Ramdisk wiki page to no avail, I realized I have a systemd setup. I have also found another topic describing how to "hack" init scripts into the systemd build but I am not sure this is the "right" (or most elegant) way. Essentially I would like to move/copy several folders to a ramdisk and have its contents written back to disk after system suspend/shutdown. Just general guidelines would suffice!
    (1) How should I go about setting up a "persistent" ramdisk with systemd? How would I setup "before" and "after" hooks?
    (2) From what I have gathered so far, it appears that for the above, using rsync rather than cp would be a more efficient way to write ramdisk contents to disk. Is this true?
    (3) The example described in the Ramdisk wiki page loads pacman cache and lib into a ramdisk. How about completely putting /var to a ramdisk?
    (4) Will doing what I have described above (including /var) possibly leave my system in an inconsistent state?
    I am trying to get this running on a computer with 8 GB of RAM on which memory usage rarely goes above 2 GB. I am not too worried about power failures as what I intend to put on the ramdisk is not mission critical (with the possible exception of /var).
    I apologize in advance if I posted my concerns in the wrong subforum as I am both a Linux rookie and an Arch noob; I have also tried using the search function but I may have formulated my query improperly (the answers seemed irrelevant!) Thanks in advance for your time and please let me know if I have omitted important details.
    Last edited by ndejay (2012-10-31 13:50:02)

    #create 'ramdisksave' directory using terminal
    mkdir /home/ramdisksave
    #edit grub config or custom_40. This allocates max ram for ramdisks
    kernel /vmlinuz ramdisk_size=2048000
    #edit rc.local add these lines to create & mount ramdisk at boot
    mke2fs -t ext2 /dev/ram1 2048000
    mount /dev/ram1 /home/ramdisksave
    #copies 'ramdisksave' contents to ramdisk save as *.sh make exe!
    cp -a /home/ramdisksave/.  /mnt/ram1
    #saves ramdisk contents to ramdisksave folder save as *.sh make exe!
    cp -a /mnt/ram1/.  /home/ramdisksave/
    #deletes ramdisk contents save as *.sh make exe!
    cd /mnt && rm -rf ram1/*
    #deletes ramdisksave contents save as *.sh make exe! DANGEROUS!!
    cd /home && rm -rf ramdisksave/*
    for safety better to create ramdisksave on another partition.  Scripts can be crontabbed, can add tar compression options to save space, use rsync to copy only  new etc etc.......script lines can be added to r.sysinit for startup and rc.shutdown for load and save at startup and shutdown.
    Last edited by st.emsee (2013-06-22 11:23:44)

  • Im stuck with this message "no bootable device, insert boot disk and press any key". Now i want to go back to mac os but everytime i turn on my laptop that message appear..kindly help... Please

    Im stuck with this message "no bootable device, insert boot disk and press any key". Now i want to go back to mac os but everytime i turn on my laptop that message appear..kindly help... Please .... Im using my usb as bootable device but it cant be detected..

    Reboot, hold the option key down, select OSX when the startup manager appears.

  • Stuck with a bad font in Safari

    Safari used to have an option in an appearance setting to select a default font for webpages, and back in high school, I made it something dumb and illegible. It's still set to that same font through transferring my data from one computer to the next, but now the option to change it back is gone. I can't install an older version of Safari to change it, am I stuck with it? My MacBook Pro is completely up to date with all upgrades.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Stuck with the apple and the scrolling gear while booting

    Hi there
    i am using my mac for more than 2 years , i did not format it or even fix any thing into it but now something bad happend...
    accdentaly my genius friend preesed the power putton for more than 5 seconds to start up the computer and i heared a sound and a the normal flashing light under the track pad and suddenly i was stuck with the apple gray booting screen and the scrooling gear and the computer does not go further .. i left for 2 hours and it still stuck with the same screen ... try to restart do any thing no results also ...
    NOTE: THE BIG PROPLEM IS THAT I PUT A PASSWORD FOR THE FRIMWARE AND I FORGOOT IT SO I CAN NOT USE THE FOLLWOING:
    1-the ability to use the "C" key to start up from an optical disc.
    2-the ability to use the "N" key to start up from a NetBoot server.
    3-the ability to use the "T" key to start up in Target Disk Mode (on computers that offer this feature).
    4-Diagnostic volume of the Install DVD.
    5-mode by pressing the Command-S key combination during startup.
    6- a reset of Parameter RAM (PRAM) by pressing the Command-Option-P-R key combination during startup.
    Requires the password to use the Startup Manager, accessed by pressing the Option key during startup (see below).
    7- Safe mood.
    8-Single mode acsses and the other one i forrgot its name.
    SO I FIGURED THERE IS NO WAY BETER THAN THE PRIVIOUS WAYS TO SOLVE THE PROPLEM
    IF YOU HAVE ANY IDEAS OR ANY THING SO I CAN FIX THIS THING ?
    Thanks in advance >>>
    iBook G4 Mid 2005   Mac OS X (10.4.8)  

    I was mistaken about the PMU..with a little more digging I found that Open Firmware password can be removed if you change the amount of memory installed.
    I found this info here: http://archive.macosxlabs.org/documentation/firmwaresecurity/faqs/faqs.html#remove_passwordprotection
    The following is a link from Apple's site to download the user's manual for your iBook:
    http://manuals.info.apple.com/en/iBookG4(Mid2005)_UsersGuide.pdf
    It provides the instructions to add or remove memory from the machine. If you do have additional memory installed then you'll be able to remove the memory, and reset the PRAM, that way your password is gone. Hopefully from there we can figure out and fix your startup issue.
    Ben

  • 4s bricked after trying new update, stuck with black screen with apple logo how can i fix this

    Update bricked my 4s
    phone , stuck with black screen with apple logo .. 
    how can I fix this

    Greetings r1042,
    Welcome to the Apple Support Communities!
    I understand that your iPhone is not booting up past the Apple logo. In this situation, I would recommend working through the troubleshooting steps located in the attached article.
    If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on - Apple Support
    If your device gets stuck during startup
    When starting up, you might see the Apple logo or a red or blue screen for a long time, or your device might restart again. Try these steps:
    Make sure that you have iTunes 12 or later on your computer.
    Put your device in recovery mode.
    When you get the option to restore or update, select Update. This will reinstall iOS without erasing your data.
    Have a great day,
    Joe

  • I replaced my hard drive and am installing the OS 10.5.6 that i got from Apple. It is stuck with 7 minutes remaining. Help! this is the first time I've ever done this.

    I just replaced my hard drive in my 13" Macbook. I got the OS install disk from Apple but it's stuck with 7 minutes remaining. What do I do now? I let it check the disk before the install.

    Did you properly prep your new drive first?
    Drive Preparation
    1.  Open Disk Utility in your Utilities folder.  If you need to reformat your startup volume, then you must boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID (for Intel Macs) or APM (for PPC Macs) then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Steps 4-6 are optional but should be used on a drive that has never been formatted before, if the format type is not Mac OS Extended, if the partition scheme has been changed, or if a different operating system (not OS X) has been installed on the drive.
    When formatting has completed quit DU and return to the installer.  Complete the OS X installation.
    I think you should shutdown the installer then erase the drive per the above and start again.

  • [SOLVED] samba does not start properly again -this time with systemd

    Definitely no luck with this one...
    So, today I've switched to a pure systemd init system, and noticed that I have this old issue again.
    (Link to my old thread: https://bbs.archlinux.org/viewtopic.php?id=142704)
    Samba doesn't start properly again, more precisely smbd is launched but not nmbd, so samba is not working as it should (for example smbtreee lists nothing).
    Last time I've solved it by putting samba long before networkmanager in the daemons array, but with systemd I'm a bit confused...
    Anyone has this issue?
    Last edited by scar (2012-11-03 07:05:42)

    I think that nmbd isn't waiting for networkmanager to start on my system, because I'm getting journal entries like
    Oct 31 00:47:21 spacebar winbindd[431]: [2012/10/31 00:47:21.556005, 0] param/loadparm.c:7969(lp_do_parameter)
    Oct 31 00:47:21 spacebar systemd[1]: nmbd.service: main process exited, code=exited, status=1
    Oct 31 00:47:21 spacebar systemd[1]: Unit nmbd.service entered failed state.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> (eth0): carrier now ON (device state 20)
    Oct 31 00:47:22 spacebar kernel: r8169 0000:03:00.0: eth0: link up
    Oct 31 00:47:22 spacebar kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> (eth0): device state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40]
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Auto-activating connection 'Static'.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) starting connection 'Static'
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> (eth0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> (eth0): device state change: prepare -> config (reason 'none') [40 50 0]
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) successful.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> (eth0): device state change: config -> ip-config (reason 'none') [50 70 0]
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started...
    Oct 31 00:47:22 spacebar rpc.mountd[462]: Version 1.2.6 starting
    Oct 31 00:47:22 spacebar systemd[1]: Startup finished in 3s 850ms 155us (kernel) + 21s 279ms 972us (userspace) = 25s 130ms 127us.
    Oct 31 00:47:23 spacebar NetworkManager[391]: <info> (eth0): device state change: ip-config -> activated (reason 'none') [70 100 0]
    Oct 31 00:47:23 spacebar ntpd_intres[441]: DNS 0.au.pool.ntp.org -> 116.66.160.39
    Oct 31 00:47:23 spacebar NetworkManager[391]: <info> Policy set 'Static' (eth0) as default for IPv4 routing and DNS.
    Oct 31 00:47:23 spacebar NetworkManager[391]: <info> Activation (eth0) successful, device activated.
    Oct 31 00:47:23 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete.
    Oct 31 00:47:23 spacebar dbus[401]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
    Oct 31 00:47:20 spacebar smbd[428]: [2012/10/31 00:47:20.771872, 0] param/loadparm.c:7969(lp_do_parameter)
    Oct 31 00:47:20 spacebar smbd[428]: Ignoring unknown parameter "user client driver"
    Oct 31 00:47:20 spacebar smbd[428]: [2012/10/31 00:47:20.794252, 0] lib/interface.c:543(load_interfaces)
    Oct 31 00:47:20 spacebar smbd[428]: WARNING: no network interfaces found
    Oct 31 00:47:20 spacebar smbd[428]: [2012/10/31 00:47:20.805126, 0] smbd/server.c:1109(main)
    Oct 31 00:47:20 spacebar smbd[428]: standard input is not a socket, assuming -D option
    Oh, this started happening after putting a MUCH faster cpu and motherboard in the system, so maybe there's a race-condition there?
    Last edited by MisterAnderson (2012-10-30 04:59:46)

  • Apple Hardware Test Stuck with white screen

    hy every one..............
    i am unable to start the apple hardware test ,i've done anything ,holding d at start up with inserted installation disk,also with holding c........
    also inserted application cd....
    apple logo appear and after some time with spinning wheel it stuck with white screen....What that means
    please help me out....
    what can i do???

    If you are still using Snow Leopard -
    Shut down your computer and disconnect all peripherals (keyboard & mouse if pertinent) from your computer.  Now reboot.
    If the Mac starts up normally, shut it down again and then plug in one of the peripherals (keyboard or mouse first) and start up your computer again.  If it does so successfully repeat the process, adding one peripheral at a time until your Mac acts up.  At that point, disconnect the last peripheral you added, reboot your Mac and search the peripheral vendor's website for an updated driver. 
    If no driver exists or the problem remain after installing the new driver, try a different cable or a different port on your Mac.
    If none of the above works, again disconnect all peripherals from your Mac, hold down the "shift" key to start up in "Safe Boot" mode. 
    If the Mac starts up correctly, restart without pressing the "shift" key.
    If your computer still does not start up properly, shut it down and restart it while holding down the Apple+Option-P-R keys; keep holding "all 4 keys" down until you hear the startup sound "twice."
    If none of the above work Disconnect all peripherals from your computer. Boot from your install disc & run Repair Disk from the utility menu. To use the Install Mac OS X disc, insert the disc, and restart your computer while holding down the C key as it starts up.
    Select your language.
    Once on the desktop, select Utility in the menu bar.
    Select Disk Utility.
    Select the disk or volume in the list of disks and volumes, and then click First Aid.
    Click Repair Disk.
    (If Disk Utility cannot repair, you will need a stronger utility (3rd party) - Diskwarrior or Techtool PRO)
    Restart your computer when done.
    Repair permissions after you reach the desktop-http://docs.info.apple.com/article.html?artnum=25751 and restart your computer.
    Remove any 3rd party ram.
    Reinstall Snow Leopard - This will install a "fresh" copy of Snow Leopard without archiving old system files but leaves the rest of your files in place.
    If your computer is still under warranty or you have Apple Care, take full advantage of it by letting tech support deal with your problems.  It's what you're paying them for.
    Out of warranty - take the computer to an Apple store or an AASP.  Whichever is more convenient for you.

  • MacBook Pro won't get off startup screen with apple logo. Help?

    Could someone please tell me how I can get my macbook to get off that stupid startup screen with the apple logo? It won't go past that screen and boot properly. I have tried reinstalling OS X didn't work. I tried running a disk utility test and no errors where found. I don't have the time machine thingy so I couldn't try that. Is there anything else I can do before taking it to Apple and l
    paying hundreds of dollars???
    thanks in advance!!!

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    Step 1
    The first step in dealing with a startup failure is to secure the data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since the last backup, you can skip this step.
    There are several ways to back up a Mac that is unable to start. You need an external hard drive to hold the backup data.
    a. Start up from the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.” The article refers to starting up from a DVD, but the procedure in Recovery mode is the same. You don't need a DVD if you're running OS X 10.7 or later.
    b. If Step 1a fails because of disk errors, and no other Mac is available, then you may be able to salvage some of your files by copying them in the Finder. If you already have an external drive with OS X installed, start up from it. Otherwise, if you have Internet access, follow the instructions on this page to prepare the external drive and install OS X on it. You'll use the Recovery installer, rather than downloading it from the App Store.
    c. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, start the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    d. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    If the startup process stops at a blank gray screen with no Apple logo or spinning "daisy wheel," then the startup volume may be full. If you had previously seen warnings of low disk space, this is almost certainly the case. You might be able to start up in safe mode even though you can't start up normally. Otherwise, start up from an external drive, or else use the technique in Step 1b, 1c, or 1d to mount the internal drive and delete some files. According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation.
    Step 3
    Sometimes a startup failure can be resolved by resetting the NVRAM.
    Step 4
    If you use a wireless keyboard, trackpad, or mouse, replace or recharge the batteries. The battery level shown in the Bluetooth menu item may not be accurate.
    Step 5
    If there's a built-in optical drive, a disc may be stuck in it. Follow these instructions to eject it.
    Step 6
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to start up, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can start up now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    Step 7
    If you've started from an external storage device, make sure that the internal startup volume is selected in the Startup Disk pane of System Preferences.
    Start up in safe mode. Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to start and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know the login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you start up in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, the startup volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 11. If you ever have another problem with the drive, replace it immediately.
    If you can start and log in in safe mode, empty the Trash, and then open the Finder Info window on the startup volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then restart as usual (i.e., not in safe mode.)
    If the startup process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 8
    Launch Disk Utility in Recovery mode (see Step 1.) Select the startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then restart as usual.
    Step 9
    If the startup device is an aftermarket SSD, it may need a firmware update and/or a forced "garbage collection." Instructions for doing this with a Crucial-branded SSD were posted here. Some of those instructions may apply to other brands of SSD, but you should check with the vendor's tech support.  
    Step 10
    Reinstall the OS. If the Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 11
    Do as in Step 9, but this time erase the startup volume in Disk Utility before installing. The system should automatically restart into the Setup Assistant. Follow the prompts to transfer the data from a Time Machine or other backup.
    Step 12
    This step applies only to models that have a logic-board ("PRAM") battery: all Mac Pro's and some others (not current models.) Both desktop and portable Macs used to have such a battery. The logic-board battery, if there is one, is separate from the main battery of a portable. A dead logic-board battery can cause a startup failure. Typically the failure will be preceded by loss of the settings for the startup disk and system clock. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 13
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.

  • Startup stuck at Lenovo screen

    Hi
    I am having startup problem with my Lenovo G500. 
    I closed the lid after using the laptop with power cable connected. After 3 or 4 hours I just picked up the laptop and put it in the bag for traveling. After 12 hours when I took it out it was too hot.
    I tried to switch it on but it stuck on Lenovo startup screen. Then I removed HDD and started again, It showed error of no bootable device. Then I connected HDD and started it worked fine for few days.
    Now again same problem of startup screen.
    I've done power flee procedure as well but of no use now.
    Can anybody please guide me what's the suspected problem in the laptop?
    Regards
    Nasir
    Solved!
    Go to Solution.

    hi nasirraza2009,
    Welcome to the Forums.
    When the machine gets stucked on the lenovo logo, can you boot into the BIOS (by pressing F2 or Fn+F2) and check if the HDD is detected
       - Link to picture
    In addition, If the machine boots again into Windows again, to un a diagnostic on the HDD to verify its health.
      - Lenovo Storage Test or
      - HD Tune.
        - http://www.hdtune.com/faq_1.html
    If you're unable to run a diagnostic on the drive then I recommend you contact lenovo and report the problem as there's likely an issue on the HDD / HDD's connection to the motherboard (or other internal component).
    Support phone list
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How do I get the startup page with tabs like "tools" etc.?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I have re-installed Firefox but how can I get a normal startup page with a normal toolbar (tabs like "Tools", slot for writing web address etc.)?
    == Firefox version
    ==
    3.6.6
    == Operating system
    ==
    Windows Vista
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; sv-SE; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-np-mswmp
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.3"
    *Default Plug-in
    *Shockwave Flash 10.0 r45
    *iTunes Detector Plug-in
    *CANON iMAGE GATEWAY Album Plugin Utility Module
    *Picasa plugin
    *4.0.50524.0
    *Office Live Update v1.5
    *Virtual Earth 3D 4.00090316005 plugin for Mozilla
    *NPWLPG
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *Nexus Personal Plug-Ins
    *Voddler Web Plugin
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers

    In Firefox 3.6 and later on Windows you can hide the menu bar via "View > Toolbars" or via the right click context menu on a toolbar.
    Press F10 or press and hold the Alt key down to bring up the menu bar temporarily.
    Go to "View > Toolbars" or right-click the menu bar or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
    See also [[Menu bar is missing]] and http://kb.mozillazine.org/Toolbar_customization

Maybe you are looking for

  • Automatic variable Change of the Place item on a action

    I'm begining in the scripting area, but I'm lost realy.  I looking in a way to change the place automatic based on the filename/ folder. Today I do like this: I'm aplying a image in the back of a photo with automate batch. My actions goes in resume l

  • Oracle SFTP adapter Configuration for BPEL  process (11.1.1.3 )

    Hi All, Can someone tell me how to configure the FTP adapter for window's server. We already have a bpel process with FTP adapter but it is set up for unix server , we want to change the location to window's server. Can any one provide me with what c

  • Factory Settings problem.

    I tried to restart my MacBook Pro back to Factory settings but after doing restarting my MB it comes up with a flashing folder icon with a question mark.

  • Siebel 8.1.1.11 • Error in Siebel Server Configuration

    Problem Description Hi, I'm trying to make the Siebel Server Configuration for a new Development Environment. After completing the Siebel Configuration Wizard I am having the following error: 2021 2014-05-28 12:40:21 2014-05-28 12:40:21 -0300 0000000

  • Adobe Flash CS5 generating SWF file size more then fla file?

    Hi, I have developed a video player in adobe flash cs4 and used all vector arts but when I open this fla file in Adobe Flash CS5 and published it, the swf file size more then fla file. Please see the details below - Adobe Flash CS4 - Index.fla file s