Kernel parameter "init=/bin/bash" in kernelpanic

Hi,
   when I try to add kernel parameter "init=/bin/bash"  for maintenance
I have thi error...
kinit mounted root read only ...
bash   root:/dev/hdxx nosuch file or directory
kernel panic
why ?
thankyou
Last edited by sacarde (2008-02-24 18:15:51)

just ad "1" instead for booting in runlevel 1. With passing init you override execution of the scripts in initramfs which mount your / etc..

Similar Messages

  • Append 'init=/bin/systemd' to kernel command line

    I have just updated my Arch_64bit and have been adviced by Pacman to ":: Append 'init=/bin/systemd' to your kernel command line in your bootloader to replace sysvinit with systemd".
    I dual boot Ubuntu and Arch and use the GRUB2 from Ubuntu. I have installed Arch's Grub to its own partition.
    However there is no /etc/default/grub in my File System instead there is /boot/grub/menu.lst... mine is a recent Arch install and  I wonder how I ended up with Grub1.
    In /etc/default/grub I would have edited: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash init=/bin/systemd". I have no idea how to deal with Grub1 /boot/grub/menu.lst.
    Pointers will be helpful.
    Also, why do I need to append 'init=/bin/systemd' to the kernel command line? Without doing so my Arch is booting and working fine. So far I haven't encountered any issues I can tell with my current Arch, the way it is.
    Do I need really need to append the above to my Kernel command line?
    Thanks

    fantab wrote:
    I have just updated my Arch_64bit and have been adviced by Pacman to ":: Append 'init=/bin/systemd' to your kernel command line in your bootloader to replace sysvinit with systemd".
    I dual boot Ubuntu and Arch and use the GRUB2 from Ubuntu. I have installed Arch's Grub to its own partition.
    Thanks Jason, (and thanks for the quote I use as signature)
    However, it turns out that I may  NOT have installed GRUB during Arch install... 'coz there are no 'stage' files in the /boot/grub there is just menu.lst and also because mine is only a few months old Arch install.
    #pacman -SS does not show GRUB as installed. So I did not install it.
    So how do I go about it?  Do I have Install GRUB now to "append 'init=/bin/systemd' to kernel command line"?

  • /etc/init.d/oracle-xe status gives /bin/su: /bin/bash: Permission denied

    Hi all,
    This is my first attempt at Oracle so I tried XE on a linux machine (RedHat Enterprise).
    Install and configuration went fine, however trying http://localhost:8080/apex gives me a connection refused message. So i tried '/etc/init.d/oracle-xe status' to check the status. However i got the following message : '/bin/su: /bin/bash: Permission denied'.
    I installed as root. What gives? What did i do wrong?

    Fixed that issue. I had to set the permission to enter the directory also and to execute these two files. I have the following problem now though. See below:
    [root@localhost root]# /etc/init.d/oracle-xe status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-AUG-2006 19:57:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused

  • Trying a recovery from a livedisc and chroot fails to run /bin/bash?!?

    The title pretty much says it all.
    Trying to do a repair on my daughter's laptop, booting from a live image on USB.  It's an old eeepc with only 1 partition, all on sda1.
    I'm using the Kernel Panics wiki like I usually do when I have to go through this: ( https://wiki.archlinux.org/index.php/Kernel_panic) but when I try to chroot, I get this:
    chroot: failed to run comman '/bin/bash': No such file or directory
    Any ideas?  I'm pulling my hair out here.

    Ah, maybe you're trying to use a 64-bit binaries from the USB on a 32-bit system or vice-versa.
    Last edited by karol (2010-12-15 18:28:42)

  • Kernel parameter tuning in Solaris 10

    Hi Guru's
    Can you any one help me to find the some good docs for Solaris kernel tuning. How to change the kernel parameter online?
    How to do kernel tuning in online and what is the purposre of /etc/system and sysdef command.
    How I can search for exisiting kernel value.
    Thanks in advance.
    Jimbe

    There is interesting info at [Solaris Internals|http://www.solarisinternals.com/wiki/index.php/Solaris_Internals] .
    have a good day,
    Glen

  • [solved] ssh will only login to /bin/bash

    I have a machine with a few users and an ssh server.
    I would like to setup a user with rbash or nologin for the shell but if i do that, I can't ssh onto that user.
    my /etc/passwd
    zidar:x:1000:100:zidar:/home/zidar:/bin/bash
    smotko:x:1001:1001::/home/smotko:/bin/rbash
    now
    ssh zidar@pc
    su smotko #this works
    # but this doesnt
    ssh smotko@pc # works only if i change the passwd file back to /bin/bash
    this is with my log for ssh with rbash
    Dec 25 03:17:25 arch-dev sshd[636]: Failed password for smotko from 10.0.2.2 port 49075 ssh2
    and same with bash
    Dec 25 03:20:18 arch-dev sshd[678]: Accepted password for smotko from 10.0.2.2 port 49088 ssh2
    and this is how ssh looks with anything other than /bin/bash in /etc/passwd
    $ ssh smotko
    smotko@pc's password:
    Permission denied, please try again.
    password is correct because i can use it locally
    thank you for helping
    Last edited by zidarsk8 (2014-03-14 14:59:17)

    The Arch bash package doesn't actually have the /usr/bin/rbash command.  So not only is this not included in the /etc/shells file, but you are also trying to set the shell to something that doesn't actually exist.  See the RESTRICTED SHELL section of the bash man page. 
    I think wat you are after might be achieveable by simply using 'set' in the given user's startup files.

  • Rlim_fd_max Kernel Parameter on Solaris 9

    I am trying to install Oracle Application Server 10g Release 2 on Solaris 9. The installation errors out on the "Select Configuration Options" screen with the following error:
    "Oracle Application Server 10g Web Cache requires the Kernel Parameter rlim_fd_max to be set to a value of 65536 or higher. Please set rlim_fd_max to 65536 or higher, reboot the machine and restart the installation".
    I checked the value of the set rlim_fd_max Kernel Parameter prior to starting the install and it is set to 65536. Does anyone know why I'm getting this error? Thanks in advance!

    I was able to get an answer by opening a SR with Metalink. The problem was that even though the rlim_fd_max default on Solaris 9 is 65536, it must be in the /etc/system file. Must be the installer looks at the file to determine that it is set correctly. So, adding set rlim_fd_max=65536 and set rlim_fd_cur=1024 to the /etc/system file fixed the problem.

  • Authentication error with shell=/usr/bin/bash

    Hello there,
    I'm comfortable with linux, but new with Arch Linux. Recently I completed an installation with success but I ran into a strange authentication error at login.
    Before adding a user I verified the path of the bash shell and 'which bash' returned /usr/bin/bash.
    So I added a user with shell /usr/bin/bash and the line in /etc/passwd reads similar to:
    newuser:x:1000:100:His name:/home/newuser:/usr/bin/bash
    With this line I get an authentication error from login
    And when I change the shell to /bin/bash, the user is able to login with success.
    I have found similar problem reports, but not this solution.
    I hope to get some help with understanding this issue, to me it seems wrong to point the shell in /etc/passwd to a symbolic link.

    Thank you very much, falconindy.
    My first reaction is "But what if /usr becomes inaccessible", also /bin/sh is a symlink.
    But I guess with rescue options from initramfs or live CD/usb, this is not a big issue anymore.
    I have added /usr/bin/bash to /etc/shells.
    Last edited by wilbert-vb (2013-05-18 12:55:45)

  • I get error when I run Terminal /bin/bash: Please run this as root.

    Help!
    Every time I open Terminal I get:
    /bin/bash: Please run this as root.
    [Process completed]
    Any suggestions?

    FLYFI5H wrote:
    Help!
    Every time I open Terminal I get:
    /bin/bash: Please run this as root.
    [Process completed]
    Any suggestions?
    I wonder if there's a permissions problem with your /bin/bash. If you go to the /bin directory (presumably with the Finder's Go -> Go to Folder command, as Terminal isn't working for you), then do a "Get Info" on bash, what do you see as the permissions? Mine shows "system: Read & Write", "wheel: Read only", and "everyone: Read only".
    If you can't run Terminal, your diagnostic options may be limited. Do you have a second Mac that you could use to investigate the problem with this Mac in "target disk mode"?

  • Oracle 10g on solaris 10 : kernel parameter warning

    I am installing oracle 10g on Solaris 10.
    I have a warning on kernel parameter missing (shminfo_shmmax for example) during the system check.
    I understood that with the 10 version of solaris these parameters are replaced by ressources control and I have checked them. They are correctly setted.
    Need I do something before continue the install to release the warning or can I bypass this issue and continue the install as I have no warning ?
    Thanks for your answers.
    Sorry for my english.

    You are right. Since Solaris 10 kernel parameters settings in /etc/system is obsolete and some parameters are deprecated.
    The steps how to configure required parameters you can find in my paper (step #1.): http://ivan.kartik.sk/oracle/install_ora10gR2_solaris.html
    I bypass this issue and continue the install as I have no warning You can safely bypass this issue during installation process but you should set these parameters after installation.

  • Determining OS Kernel parameter settings in HP ITANIUM

    Hi
    Can any one help me out to determine the depedant OS kernel parameters settings in HP IA-64 for Oracle database 10.2.0.4 after increasing the processes parameter value in the database level .
    As after increasing the processes parameter to 10000 , we are getting n number of issues related to one or the other OS kernel parameter , so we want to take one single downtime and settle all the issues.
    Regards,
    Phani Kumar P

    Hi
    Acutally we already increased the processes parameter to 10000 by modifying nproc value to 30000 , now we are receiving issues respect to database as below and inturn there is problem in getting connected to the database giving ora-12502 error
    Errors in file /ora/newdump/ACEPROD/udump/aceprod1_ora_4712.trc:
    ORA-00603: ORACLE server session terminated by fatal error
    ORA-27504: IPC error creating OSD context
    ORA-27300: OS system dependent operation:bind failed with status: 227
    ORA-27301: OS failure message: Can't assign requested address
    ORA-27302: failure occurred at: sskgxpcre3
    kkjcre1p: unable to spawn jobq slave process
    Tue Jan 5 18:28:57 2010
    Errors in file /ora/newdump/ACEPROD/bdump/aceprod1_cjq0_20387.trc:
    So now we want to fix the issues by setting optimal values for OS Kernel parameter for NPROC value equals 30000.
    Regards,
    Phani Kumar p
    +919948677317

  • [solved]Terminator can not start /bin/bash

    Terminator show an error:
    Unable to start shell:/bin/bash
    this error comes from here:
    /usr/lib/python2.7/site-packages/terminatorlib/terminal.py
    1292 self.pid = self.vte.fork_command(command=shell, argv=args, envv=envv,
    1293 loglastlog=login,
    1294 logwtmp=update_records,
    1295 logutmp=update_records,
    1296 directory=self.cwd)
    1297 self.command = shell
    1298
    1299 self.titlebar.update()
    1300
    1301 if self.pid == -1:
    1302 self.vte.feed(_('Unable to start shell:') + shell)
    1303 return(-1)
    But I can startup terminator using root acount
    the self.pid != -1 when I'm root
    I dont remeber change any privileges ...
    Any idears ?
    Last edited by Hacksign (2013-08-27 01:47:33)

    Scimmia wrote:is /dev/pts listed in /etc/fstab? If so, remove it.
    Thanks, that's actually resolved my problem

  • /bin/bash to write a form letter [solved]

    Ok, in principal, I need to have bash read in a file and make substitutions for variables I have defined in a skeleton file.  Kind of like a form letter.  Why?  I have torque installed on my machine and I need to have my repo-ck build script make a custom build.sh that each respective cluster job will call.
    I'm no student and this isn't homework.  Anyway, here is an oversimplified example
    letter.skl:
    Dear $name,
    The party starts at $time.
    Regards,
    $me
    So the bash script defines all three of those variables and needs to read in the letter.skl and pipe it into a new file that contains the "final" output.  How can this be accomplished?
    #!/bin/bash
    name="John"
    time="11 o'clock"
    me="graysky"
    Last edited by graysky (2011-06-18 22:38:33)

    Yeah... this is how I'm doing it now, but it's very clunky.  I need to generate within my build.functions two files:
    1) A build script unique to each arch and cpu package
    2) A queue file for the cluster that will call #1
    I have leveraged the echo method as I said, but its not elegant and very ugly.  What would be far better would be for me to have a skeleton script I can read in, substitute and write out if this is possible natively in bash.
    Example of my "ugly" code:
    # make cluster.pbs
    echo "#!/bin/bash" > $pkgarch-$arch.pbs
    echo "#PBS -l nodes=1,walltime=1:00:00" >> $pkgarch-$arch.pbs
    echo "#PBS -N $arch-$pkgarch" >> $pkgarch-$arch.pbs
    echo " " >> $pkgarch-$arch.pbs
    echo "[[ $arch = \"x86_64\" ]] && $workdir/build-$pkgarch-$arch.sh" >> $pkgarch-$arch.pbs
    echo "[[ $arch = \"i686\" ]] && sudo linux32 chroot /opt/arch32 /bin/bash -c $workdir/build-$pkgarch-$arch.sh ; sleep 1s" >> $pkgarch-$arch.pbs
    # make script it needs if building in chroot
    echo "#!/bin/bash" > $workdir/build-$pkgarch-$arch.sh
    echo ". /home/$me/.credentials" >> $workdir/build-$pkgarch-$arch.sh
    echo "cd $workdir" >> $workdir/build-$pkgarch-$arch.sh
    echo "whatarch=\$(uname -m)" >> $workdir/build-$pkgarch-$arch.sh
    echo "if [ \$whatarch = \"x86_64\" ]; then" >> $workdir/build-$pkgarch-$arch.sh
    echo " makepkg -g >> PKGBUILD && makepkg -sc" >> $workdir/build-$pkgarch-$arch.sh
    echo "else" >> $workdir/build-$pkgarch-$arch.sh
    echo "su -c \"makepkg -g >> PKGBUILD && makepkg -sc\" $me" >> $workdir/build-$pkgarch-$arch.sh
    echo "fi" >> $workdir/build-$pkgarch-$arch.sh
    echo " " >> $workdir/build-$pkgarch-$arch.sh
    echo "for i in PKGBUILD \"\$_config\"; do" >> $workdir/build-$pkgarch-$arch.sh
    echo "mv \$i $des_cluster/repo/$arch/files/\$i.$pkgarch" >> $workdir/build-$pkgarch-$arch.sh
    echo "done" >> $workdir/build-$pkgarch-$arch.sh
    echo " " >> $workdir/build-$pkgarch-$arch.sh
    echo "x=0" >> $workdir/build-$pkgarch-$arch.sh
    echo "for i in \$(ls *.xz); do" >> $workdir/build-$pkgarch-$arch.sh
    echo " array[\$x]=\$i" >> $workdir/build-$pkgarch-$arch.sh
    echo " x=\$(( \$x +1 ))" >> $workdir/build-$pkgarch-$arch.sh
    echo " mv \$i $des_cluster/repo/$arch" >> $workdir/build-$pkgarch-$arch.sh
    echo "done" >> $workdir/build-$pkgarch-$arch.sh
    echo " " >> $workdir/build-$pkgarch-$arch.sh
    echo "files=\$(echo \${array[@]}|sed s'/\ /,/')" >> $workdir/build-$pkgarch-$arch.sh
    echo "if [ \$whatarch = \"x86_64\" ]; then" >> $workdir/build-$pkgarch-$arch.sh
    echo " curl -u \$myusername:\$mypasswd -T $des_cluster/repo/$arch/{\$files} ftp://\$mysite/\$arch/ -s &" >> $workdir/build-$pkgarch-$arch.sh
    echo "else" >> $workdir/build-$pkgarch-$arch.sh
    echo " su -c \"curl -u \$myusername:\$mypasswd -T $des_cluster/repo/$arch/{\$files} ftp://\$mysite/\$arch/ -s & $me" >> $workdir/build-$pkgarch-$arch.sh
    echo "fi" >> $workdir/build-$pkgarch-$arch.sh
    chmod +x $workdir/build-$pkgarch-$arch.sh
    qsub $pkgarch-$arch.pbs > /dev/null

  • Is /bin/sh must link to /usr/bin/bash?

    I'm building Arch Linux on embedded system which CPU is sh4.
    I found there is a problem of bash package.
    It creates /bin/sh as a symbolic link to /usr/bin/bash.
    But my /bin/sh is busybox.
    1. I'm wonder how could I keep /bin/sh to busybox's /bin/sh? Or, it could set on pacman.conf?
    2. Could my root account still use 'sh' as its shell? I wish busybox could still exist as the basement.
    3. Is makepkg or yaourt based on root's shell must be bash?

    Thank you Allan,
    I have this question is because /usr/bin/bash require many dynamic library and I just failed login my embedded system after upgrade bash with pacman -Udd option.
    Am I right of the following assumption (Sorry, I can not 100% understand your meaning, require double confirm.).
    1. I can keep my root's shell as /bin/sh (it's busybox version).
    2. I can config pacman to use /bin/bash for install (I've compiled brand new pacman)
    3. makepkg have forced to use /bin/bash for install
    BTW, I found it is required bash 4.0 (declare function)  My embedded system's original linux only provide bash 3.0.  So, it took me a while to prepare bash 4.0.
    Last edited by dlin (2013-01-31 06:42:22)

  • What is the resource control corresponding to each kernel parameter

    Hi
    I am trying to prepare (i.e. tune) a Solaris 10 instance for an Oracle 10g install using a Solaris 10 project.
    I am new to using Solaris 10 project resource controls so I might get some of this totally wrong.
    I know all of the "old" kernel parameter names: what each represents and its' required value and I know some of the corresponding resource controls but not all of them.
    That is I do not know the resource control corresponding to each and all of the kernel parameters.
    e.g. I know:
    semsys:seminfo_semmsl == process.max-sem-nsems == The maximum number of sempahores that can be in one semaphore set
    shmsys:shminfo_shmmax == project.max-shm-memory == The maximum size(in bytes) of a single shared memory segment
    shmsys:shminfo_shmmni == project.max-shm-ids == The number of shared memory identifiers
    But I do not know, for example, what resource control corresponds to:
    semsys:seminfo_semmns == The number of semaphores in the system
    Is there a list somewhere of the resource control corresponding to each of the kernel parameters ?
    I know I can set some kernel parameters in /etc/system but that should only be used for system - wide kernel parameters, right ?
    I know there are project, process, task and zone classes of resource controls.
    Can a resource control of any and all of these types be set in a project ?
    Are zone resource controls equivalent to system-wide resource controls ?
    Are there corresponding resource controls to all kernel parameters e.g. such as noexec_user_stack ?
    I have set noexec_user_stack in /etc/system.
    And finally - just to be sure - using a project makes the resource control values permanent, right ?
    Thanks
    Brett.

    Hi;
    Please check below which could be helpful for your issue:
    Kernel setup for Solaris 10 using project files [ID 429191.1]
    Regard
    Helios

Maybe you are looking for

  • How to Delete an iCloud Account's Email (Not the Whole Account, Just the Email)

    Hello, A couple of years ago, before iCloud was iCloud and was actually MobileMe, I created my own email on it (an @me.com email) and have had it ever since. Even after it became iCloud, i've kept my @me.com email address and have it to this day. I'v

  • Ipod Car adapter no sound

    I recently got a pioneer sterio installed in my car with the ipod adapter. I plug my ipod in and everything seems fine except there is no sound coming from the speekers. The display is working fine and if i plug headphones into the ipod then i can he

  • Dyanamically determining receivers

    Hi experts, i had an requirement that i have to send the IDOC to multiple receiving system based on certain conditions. Receiver determination should happend dynamically(logical routing) based on mapping content we have send the data either file syst

  • Cannot add groups to new users

    1, I add users in WebLogic 11g. However, in the Parent Groups page, I cannot move any groups to the right dropdown list. 2, I am going to add new users for Oracle SOA Suite worklist. Does anyone know how to do it?

  • Mac os x compatability???

    hello guys was looking at buying a 233mz g3 with 128mb ram would it run osx.4 ???? would it be any good on it ??? cheers carlito