Help! -sh: /etc/profile: is a directory!

My PowerBook was locked, so I hold down the power button to reboot and this come up:
-sh: /etc/profile: is a directory
-sh-2.05b#
I have read some posts on this forum, I got to the part where I type fsck -y, showed:
/dev/rdisk0s5
Root file system
Checking HFS Plus volume.
fsck_hfs: Volume is journaled. No checking performed.
fsck_hfs: Use the -f option to force checking.
so I typed fsk -f, this showed:
/dev/rdisk0s5
Root file system
Checking HFS Plus volume.
Checking Extents Overflow file.
Checking Catalog file.
Invalid record count
(4, 12)
Volume check failed.
Can anyone help? any help will be appreciated...
Message was edited by: lxxl

Hello and thanks for replying so quickly,
Well I got an install disk and I rebooted with C holding down, but here comes another problem, I got the panic:
panic(cpu 0 caller 0x002E0BF4): Unable to find driver for this platform: "PowerBook3,5".
Latest stack backtrace for cpu 0:
Backtrace:
0x00099EA4 0x0009A860 0x00027A28 0x002E0BF4 0x002BCC60 0x002BDDB0 0x002BFC28 0x002BED3C
0x000ADE14
Procedding back via exception chain:
Exception state (sv=0x0125EA00)
PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
Kernel version:
Darwin Kernel Version 8.6.2: Thu Apr 13 18:51:54 PDT 2006; root:xnu-792.9.59.obj~1/RELEASE_PPC
No debugger configured - dumping debug information
MSR=00001030
Lastest stack backtrace for cpu 0:
Backtrace:
0x00099EA4 0x0009AA58 0x00027A28 0x002E0BF4 0x002BCC60 0x002BDDB0 0x002BFC28 0x002BED3C
0x000ADE14
Procedding back via exception chain:
Exception state (sv=0x0125EA00)
PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
Kernel version:
Darwin Kernel Version 8.6.2: Thu Apr 13 18:51:54 PDT 2006; root:xnu-792.9.59.obj~1/RELEASE_PPC
panic: We are hanging here...
Message was edited by: lxxl

Similar Messages

  • -sh: /etc/profile: is a directory??

    My computer froze, so I held down the power button to shut it off. Upon restarting it, I got a black screen with this message:
    -sh: /etc/profile: is a directory
    -sh-2.05b#
    It's been freezing a lot in the past couple weeks and I've had to shut it down like that quite a bit, but this is the first time I've gotten this message. I've tried to get around it, but nothing works. Has this happened to anybody else?

    you hard drive is in bad shape.
    running fsck from single-user mode is precisely the same as booting off of your tiger install disk and running Disk Utility from there (disk utility is basically just a GUI wrapper around fsck). but as you saw, Disk Utility/fsck was unable to fix the problem.
    two options.
    1. get DiskWarrior. this excellent app can often fix hard drive problems that Disk Utility cannot
    2. if suggestion 1 doesn't work (i.e. the drive is really bad shape), you'll probably have to erase the drive and reinstall everything... this can be done from the Tiger install disk after you boot off it...
    good luck! cheers

  • Help with pico /etc/profile

    I have redhat 7.3 and i install the sdk. Its in usr/java/j2sdk1.4.1/bin
    Where exactly do I put the line path so every user can use the java/javac etc commands anywhere. I tried. but it dont work. Im I clicked on save settings, but im not sure that saves it. I was trying to follow the other thread instructions but everyone seems kinda different. Im very new to linux by the way. Think i installed it by accident :P
    # /etc/profile
    # System wide environment and startup programs, for login setup
    # Functions and aliases go in /etc/bashrc
    pathmunge () {
    if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
    if [ "$2" = "after" ] ; then
    PATH="$PATH:/usr/java/j2sdk1.4.0/bin"
    else
    PATH=$1:$PATH
    fi
    fi
    # Path manipulation
    if [ `id -u` = 0 ]; then
    pathmunge /sbin
    pathmunge /usr/sbin

    It seems to me that when ".plist" files contain references to other files or folders, most require full paths and they won't accept anything to represent a generic "home". Either that, or items are represented by "alias" data, referring to a specific file, which would be completely independent of paths. That of course means that any sort of "template" account must avoid containing references to items within the "home" folder because the template will contain references to the original items, not their counterparts in the new user's home. Note that things like the "sidebar" in a regular account or the "Dock" in a "Simple Finder" do contain shortcuts to items within the "home" folder, but these aren't generated from ".plist" files in the template but rather are generated on the fly by "Finder" during login.
    In the case of the default download location for "Safari", I think it defaults to the user's "Desktop" in the absence of a ".plist" file. However, if the user changes the location, then a ".plist" file is created at that point. It would also appear that the default download location is set to the user's "Desktop" if the default Safari "home page" is changed, which also causes the same file to be created. The file appears to be: "~/Library/Preferences/com.apple.internetconfigpriv.plist"
    I haven't tested this to see if it would work, but it might be possible to modify your existing template to remove the reference to the "download folder" while retaining the desired Safari "home page" using something along these lines:<pre style="overflow:auto; padding: 5px; width: 500px ; font-size: 10px; border:1">sudo defaults delete /System/Library/User\ Template/English.lproj/Library/Preferences/com.apple.internetconfigpriv DownloadFolder</pre>

  • Need a little help understanding java and /etc/profile.d/***

    A few days ago I installed jre-6u10-1 and jdk-6u10-1 via pacman on my desktop machine; for the web plugin.
    The packages installed in /opt/java/...
    I later installed jedit, via pacman.  It runs fine as it (/usr/bin/jedit) is hardcoded to look for java in /opt/java/...
    Today, I installed jedit (pacman -S jedit) on my laptop which did not have any java installed.
    Pacman automatically installed openjdk6-jre-6u10-1 as a prerequisite.
    Openjdk installs to /usr/lib/jvm/..., therefore jedit fails as /opt/java... is non-existent.
    I suppose Sun's java and the opensource version are installed in different locations to keep from overwriting each other.
    I could easily edit /usr/bin/jedit to point to the openjdk location and it would work.
    But I'm a little uncertain of the following three files:
    Sun's java installs /etc/profile.d/jre.sh and /etc/profile.d/jdk.sh
    which do the following (respectively):
    export PATH=$PATH:/opt/java/jre/bin
    if [ ! -f /etc/profile.d/jdk.sh ]; then
    export JAVA_HOME=/opt/java/jre
    fi
    and
    export J2SDKDIR=/opt/java
    export PATH=$PATH:/opt/java/bin
    export JAVA_HOME=/opt/java
    The opensource java package installs /etc/profile/openjdk6.sh
    which does the following:
    export J2SDKDIR=/usr/lib/jvm/java-1.6.0-openjdk
    export J2REDIR=$J2SDKDIR/jre
    export JAVAHOME=/usr/lib/jvm/java-1.6.0-openjdk
    #export CLASSPATH="${CLASSPATH:+$CLASSPATH:}$J2SDKDIR/lib:$J2REDIR/lib"
    So I am left with a few options:
    1.  edit /usr/bin/jedit to look in the opensource location
    2.  edit /usr/bin/jedit to use the $J2SDKDIR variable when looking for java
    3.  update the $PATH via /etc/profile.d/openjdk6.sh to include java's location
    I think all three methods would work, but I have limited experience with java and would like some input as to which proposed solution is the best going forward.
    What methods are other java apps using to find java?
    Thanks
    (edit: more descriptive title)
    Last edited by cjpembo (2008-11-11 04:24:47)

    I think the best option would be to ask the maintainer to modify the jedit-bin file, and have it launch
    $J2SDKDIR/bin/jre/java cp $CP -Djedit.home="/usr/share/jedit" -mx${JAVA_HEAP_SIZE}m org.gjt.sp.jedit.jEdit $@
    That way, it should work with both java implementations (completely untested, btw.)

  • Cannot source /etc/profile from within the PKGBUILD anymore

    Hi,
    Short story: the command
    source /etc/profile
    within the build() section of my PKGBUILD now returns a build() error. It used to work before, is there a reason for this? Should it be executed in another section than build()? (Note source /etc/profile works properly in console, within the build directory)
    Long story:
    I need to use $JAVA_HOME in my PKGBUILD (to patch a lua source file with the current JDK path, which can be detected with $JAVA_HOME. Patching is done with a sed command). However, if java-environment is installed for the first time (as a makedepends) along with my package, then I need to source /etc/profile first to set the $JAVA_HOME environment variable, before being able to use it within my build() section. Otherwise it is not set yet and building fails.
    Many thanks for your help.
    Last edited by zebulon (2012-12-28 14:57:23)

    Hi,
    Many thanks for the advice. I was unclear though: I maintain the aacskeys package in AUR, not the lua package. However, the file I am patching in aacskeys is named premake.lua, used for the project file generator premake.sourceforge.net.
    I'll try your first suggestion, since this is the only one which may work without touching the system. Another alternative would be to directly source the /etc/profile.d/jdk.sh file. EDIT: nope, because there could be openjdk6.sh instead. I really need to be able to source the correct file. The maintainer of opencascade uses:
    if [ -z $JAVA_HOME ]; then
    [ -e /etc/profile.d/openjdk6.sh ] && source /etc/profile.d/openjdk6.sh
    [ -e /etc/profile.d/jdk.sh ] && source /etc/profile.d/jdk.sh
    fi
    which is efficacious but less generic.
    Besides, is it normal that we get this error code, since the Arch documentation only recommends to set LANG in /etc/locale.conf? SHould I report it as a bug or request a design change for /etc/profile.d/locale.sh there (as suggested in your (b) entry)? I am asking this because my PKGBUILD is not the only one to use this trick, and this problem breaks them all.
    Thanks.
    Last edited by zebulon (2012-12-30 06:14:58)

  • /etc/profile isn't sourced on startx

    the command
    source /etc/profile
    isn't used on startx
    and now all paths and locales aren't set, has anyone an idea whats wrong here?
    if i login on console it behaves normal. But if i login on X with qingy or slim it doesn't work.
    It also doesn't work if i startx on a console with /etc/profile sourced.
    i hope someone can help me.
    so long
    ukognos

    but if i run X, there's no locale set, or environment variable, so how can i set that at startup of X?

  • /etc/profile.d scripts

    A while ago, I was helping a friend installing archlinux on his laptop.
    He wanted to use tcsh as his main shell, as he is used to this from FreeBSD.
    We then discovered that his path was never updated after installing new packages (for instance firefox) and then running source /etc/profile
    The reason, we later found out, was that most (if not all) of the scripts in /etc/profile.d does not have a valid shebang (usually the top row of a script, looking something like #!/bin/sh , telling the computer which shell to run the script in).
    This, in combination with tcsh (and probably csh as well, we never tested that though), results in our problem, since tcsh does not have the command export, which is built in in bash (and sh, zsh, and most of other shells out there).
    Tcsh uses the command set instead.
    My little question is this: Why doesn't those scripts have proper shebangs, so that it would be possible to use archlinux with tcsh?
    Does anybode have a good answer to that, and is this something that should be corrected in some way?

    As those files are getting sourced through /etc/profile they don't need a proper shebang.
    The only distro I know with support for csh is Slackware, don't expect it in Arch.

  • Build fails no /etc/profile.d/gnome.sh

    I am trying to build gnome-system-tools and I keep failing here:
    [root@localhost system-tools]# makepkg -i
    ==> Making package: system-tools-backends 1.2.0-1 (Fri Sep 21 12:26:10 EDT 2007)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
       -> Found system-tools-backends-1.2.0.tar.bz2 in build dir
       -> Found archsupport.patch in build dir
    ==> Validating source files with md5sums
        system-tools-backends-1.2.0.tar.bz2 ... Passed
        archsupport.patch ... Passed
    ==> Extracting Sources...
       -> tar -xf system-tools-backends-1.2.0.tar.bz2
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    PKGBUILD: line 20: /etc/profile.d/gnome.sh: No such file or directory
    What am I missing?  Why no /etc/profile.d/gnome.sh?
    I am running Gnome 2.18.3 and starting it with gdm.  Totally lost at this point.
    Thanks

    The output in your post says you're trying to build system-tools-backends, not gnome-system-tools. According to the relevant AUR page, that package was submitted over two years ago, and hasn't been updated since. The upstream release date for system-tools-backends 1.2.0 was 08 March 2005.
    Find a more recent release, and see if that builds correctly for you.

  • Something similar to /etc/profile in LDAP?

    My /etc/profile contains a logging feature which tracks the history of a local user. It doesn't work for ldap users though since I don't think LDAP looks at this file when ldap users login to a client.
    Is there some way to make ldap users use this file as the initial login profile or is there some way to setup something similar in LDAP? ldapaddent won't add this file. The only thing I can think of is to make some sort of change on cn=default,ou=profile,dc=example,dc=com but I'm unsure as to whether that will work or how exactly to set it up.
    Any help on this would be appreciated. Thanks.

    Hi Liam. Thanks for your reply. When I used the Update Credit Card option and tested the form, I got the error message "Credit Card Payment Failed….Invoice Number Not Found". But after search for that error message in this forum, I found out that I should be using the "Credit Cards (existing orders)" option. This has worked, ie payment was successfully processed and was applied to the existing order; a new invoice was not created. I have received a receipt from the payment gateway (eWay) but not one from BC. Also, upon successfully submitting the form, I was then taken to a totally blank page. I'll have to do some more testing to see whether the blank page was just a one off. If not, I'll try adding code in the Action part of the form to redirect to specific page.
    So thanks for your help. Though it didn't give me the correct answer, it l led me to it.

  • Aterm now opens with source /etc/profile

    I was in aterm when I did source /etc/profile, but now whenever I open aterm I get the results of source /etc/profile. Xterm doesn't do this, only aterm. Why is it doing this and how can I fix it?

    just add "source /etc/profile" (without the quotes) to .bashrc (thats located in ur home directory)

  • [SOLVED] printenv output differs from settings in /etc/profile

    Hi, I just noticed that
    printenv PATH
    gives me something else (just '/usr/bin') than is defined in /etc/profiles, which is
    PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
    export PATH
    I'm using fish but there is no entry about variables in ./config/fish/config.fish.
    Thanks for your help!
    Last edited by ysetdng (2014-09-16 23:05:56)

    Let /etc/login.defs be, it isn't supposed to have the full PATH.
    Read https://wiki.archlinux.org/index.php/Fi … leshooting
    Arch wiki wrote:
    If you decide to set fish as your default shell, you may find that you no longer have very much in your path. You can add a section to your ~/.config/fish/config.fish file that will set your path correctly on login. This is much like .profile or .bash_profile as it is only executed for login shells.
    if status --is-login
    set PATH $PATH /usr/bin /sbin
    end
    Note that you will need to manually add various other environment variables, such as $MOZ_PLUGIN_PATH. It is a huge amount of work to get a seamless experience with fish as your default shell.

  • [Solved] -bash: /etc/profile.d/bash_completion.sh: No such file or ...

    Hi all.
    Did a pacman -Syu yesterday, havn't done this for a while. After this, whenever starting a login shell, I'm getting the following:
    -bash: /etc/profile.d/bash_completion.sh: No such file or directory
    It seems to be caused by sourcing /etc/profile. Now, my /etc/profile hasn't been changed.
    [ndlarsen@slave ~]$ . /etc/profile
    -bash: /etc/profile.d/bash_completion.sh: No such file or directory
    [ndlarsen@slave ~]$ pacman -Qo /etc/profile
    /etc/profile is owned by filesystem 2009.07-1
    [ndlarsen@slave ~]$ pacman -Ss filesystem | grep core/filesystem
    core/filesystem 2009.07-1 (base)
    [ndlarsen@slave ~]$ pacman -Qk filesystem
    filesystem: 89 total files, 0 missing file(s)
    [ndlarsen@slave ~]$ pacman -Q bash-completion
    bash-completion 1.0-3
    [ndlarsen@slave ~]$ pacman -Ss bash-completion
    extra/bash-completion 1.0-3
    Programmable completion for the bash shell
    [ndlarsen@slave ~]$ pacman -Qk bash-completion
    bash-completion: 45 total files, 0 missing file(s)
    Now, I'm wondering if this is a bug or feature and what to do about it.
    Cheers.
    Last edited by ndlarsen (2009-10-30 12:32:54)

    Correct, seems to be caused by /etc/profile.bash, which I neither have messed with, though difers for some reason.
    [ndlarsen@slave ~]$ . /etc/profile.bash
    -bash: /etc/profile.d/bash_completion.sh: No such file or directory
    [ndlarsen@slave ~]$ wget -O profile.bash http://repos.archlinux.org/wsvn/packages/bash/repos/core-i686/profile.bash?op=dl&rev=0
    [ndlarsen@slave ~]$ diff profile.bash /etc/profile.bash; echo ..Done...
    25a26,29
    >
    > #. bash_completion
    > . /etc/profile.d/bash_completion.sh
    >
    ..Done...
    [ndlarsen@slave ~]$ pacman -Qo /etc/profile.bash
    /etc/profile.bash is owned by bash 4.0.033-1
    [ndlarsen@slave ~]$ pacman -Q bash
    bash 4.0.033-1
    Wonder if the devs have made changes to the svn entries.
    Last edited by ndlarsen (2009-10-30 10:57:11)

  • User profiles from Active directory when loggedin then userdisplay, useredit shows blank white screen in SharePoint 2013

    User profiles from Active directory when loggedin then userdisplay, useredit shows blank white screen in SharePoint 2013 
    I can login with the these AD users and AD direct import is working just fine. We are not using UPS.
    With admin user when I click on the user it shows up proper data. But when I login with the same user it does not show me userdisplay/useredit and shows blank data. Also another strange thing is when I add new item in list with these AD users created by
    modified by is blank and its really strange. I checked user information list, tried to rerun user sync with direct AD import option but no success.
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    According to your description, my understanding is that the page is blank when the use accessed /_layouts/15/userdisp.aspx and the created by field was blank when the user created a new list item in SharePoint 2013.
    I tested the same scenario per your post, however I cannot reproduce your issue.
    For troubleshooting this issue, I recommend to verify the things below:
    Check the permission of the user in the corresponding site collection to see if he can access /_layouts/15/userdisp.aspx.
    Delete the user from AD and SharePoint, then re-add the user to AD and grant proper permission to the user in SharePoint to see if the issue still occurs.
    Did this issue occur with all the users? Add a new user in AD and test the same scenario.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Using Excel 2008 for a Mac in my laptop and part of toolbar has disappeared (windows, help, view, etc) and Need to to freeze column headings

    Using Excel 2008 for a Mac on my laptop
    Part of toolbar has disappeared (windows, help, view, etc) --- want to restore
    Need to freeze column headings but freezing option was not working prior to disappearance of tool bar

    Hi Alveretta,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing developing issues on Windows platform. I suggest to get more effective response from
    Office for mac forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or
    learn from your interaction with us.
    Thanks for your understanding.
    Best regards
    Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [SOLVED] How do I set the default umask? Not in /etc/profile

    Hi guys
    This is probably not what you expect to hear about umasks... I have set it in /etc/profile:
    [2] ognyan@xxxlinux : ~ >grep umask /etc/profile
    #Set our umask
    umask 002
    If I log on via ssh, my umask is 0002. I can start a vnc server and a konsole inside, which has umask 0002. So far so good...
    I also have a vnc server running as a service. If I open a konsole from inside this vnc, bash says umask 0022. So there must be a more-default setting for umask, than /etc/profile. I found a setting in /etc/login.defs and changed it to "UMASK 007", then even rebooted, but bash inside the vnc service stays with umask 0022.
    It seems not to be a setting of KDE, since both vnc sessions have different umasks, inherited by their parents. What provides the environment for the service and how can I control it?
    Last edited by bigblondewolf (2013-12-11 08:37:26)

    on my server i have something like this in ~/.profile:
    # the default umask is set in /etc/profile; for setting the umask
    # for ssh logins, install and configure the libpam-umask package.
    umask 002
    and at home i have ~/.bash_profile, but no umask in it.
    or is this answer too obvious? not quite sure i get your problem.

Maybe you are looking for

  • Decision Step outcomes in English language only

    Hi, My issue is little bit different, In my workflow template (WF) i have one user Decision step and currently outcomes are coming in Logon language. but my requirement is to display in English language only. I am working on 4.6c version. When i try

  • Adding/Editing "Old" Images

    A number of DNG images already existed on my HDD prior to installation of LR3. Now I would like to bring them into LR. Only practical way that I have found is, in Library view, to "Move" them from one folder to another folder. Just completed that man

  • Font warning every time I start up

    Whenever I start up Leopard I get two annoying windows about fonts, like this: http://www.violetmount.com/font.png I have to have my own Helvetica fonts activated for work, in Linotype Font Explorer and it's annoying that Leopard now complains about

  • Slide toggle from right to left and left to right. in sharepoint issue.

    I have used this url to create asp.net sliding panel but panel slides and while page is loading it will dissappear. link how to solve it. my code:  <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js" type='text/javascript'></scrip

  • X-Fi and MP3s or InGame so

    Hi there,?I own a X-Fi Xtreme Gamer and I have a problem with MP3s playing too fast. If I open WMP to play my MP3s it sounds like my PC has been hijacked by the Chipmunks :angry:All MP3s play way too fast and are pitched. This does not happen if I us